Skip to content

Commit 3dd43fe

Browse files
committed
more cuda 10.1 fix
Signed-off-by: Edward Z. Yang <[email protected]>
1 parent fb4e7c8 commit 3dd43fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packaging/pkg_helpers.bash

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ setup_cuda() {
3636
# Wheel builds need suffixes (but not if they're on OS X, which never has suffix)
3737
if [[ "$BUILD_TYPE" == "wheel" ]] && [[ "$(uname)" != Darwin ]]; then
3838
# The default CUDA has no suffix
39-
if [[ "$CU_VERSION" != "cu100" ]]; then
39+
if [[ "$CU_VERSION" != "cu101" ]]; then
4040
export PYTORCH_VERSION_SUFFIX="+$CU_VERSION"
4141
fi
4242
# Match the suffix scheme of pytorch, unless this package does not have
@@ -208,6 +208,9 @@ setup_conda_cudatoolkit_constraint() {
208208
export CONDA_CUDATOOLKIT_CONSTRAINT=""
209209
else
210210
case "$CU_VERSION" in
211+
cu101)
212+
export CONDA_CUDATOOLKIT_CONSTRAINT="- cudatoolkit >=10.1,<10.2 # [not osx]"
213+
;;
211214
cu100)
212215
export CONDA_CUDATOOLKIT_CONSTRAINT="- cudatoolkit >=10.0,<10.1 # [not osx]"
213216
;;

0 commit comments

Comments
 (0)