Skip to content

Commit e2e4542

Browse files
authored
Fix cuda version in nightly (#1261)
1 parent 2c77a0c commit e2e4542

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conda/build_pytorch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ else
266266
# TODO, simplify after anaconda fixes their cudatoolkit versioning inconsistency.
267267
# see: https://github.com/conda-forge/conda-forge.github.io/issues/687#issuecomment-460086164
268268
if [[ "$desired_cuda" == "11.8" ]]; then
269-
export CONDA_CUDATOOLKIT_CONSTRAINT=" - pytorch-cuda >=11.9,<12.0 # [not osx]"
269+
export CONDA_CUDATOOLKIT_CONSTRAINT=" - pytorch-cuda >=11.8,<11.9 # [not osx]"
270270
export MAGMA_PACKAGE=" - magma-cuda118 # [not osx and not win]"
271271
elif [[ "$desired_cuda" == "11.7" ]]; then
272272
export CONDA_CUDATOOLKIT_CONSTRAINT=" - pytorch-cuda >=11.7,<11.8 # [not osx]"

0 commit comments

Comments
 (0)