Skip to content

Commit

Permalink
Remove special versioning suffix rules for CUDA 10.2 (pytorch#4065)
Browse files Browse the repository at this point in the history
* packaging: Remove special versioning priveleges

Adds a version suffix for CUDA 10.2 for ease of installing when
installing from download.pytorch.org

Signed-off-by: Eli Uriegas <[email protected]>

* also include windows cmath fix

Signed-off-by: Eli Uriegas <[email protected]>

* remove comment

Signed-off-by: Eli Uriegas <[email protected]>

* fix indent

Signed-off-by: Eli Uriegas <[email protected]>

* actually add the script

Signed-off-by: Eli Uriegas <[email protected]>
  • Loading branch information
seemethere committed Jun 15, 2021
1 parent 34a8a37 commit 4658f24
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packaging/pkg_helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ setup_cuda() {
export WHEEL_DIR=""
# Wheel builds need suffixes (but not if they're on OS X, which never has suffix)
if [[ "$BUILD_TYPE" == "wheel" ]] && [[ "$(uname)" != Darwin ]]; then
# The default CUDA has no suffix
if [[ "$CU_VERSION" != "cu102" ]]; then
export PYTORCH_VERSION_SUFFIX="+$CU_VERSION"
fi
export PYTORCH_VERSION_SUFFIX="+$CU_VERSION"
# Match the suffix scheme of pytorch, unless this package does not have
# CUDA builds (in which case, use default)
if [[ -z "$NO_CUDA_PACKAGE" ]]; then
Expand Down

0 comments on commit 4658f24

Please sign in to comment.