File tree 3 files changed +4
-4
lines changed
.circleci/unittest/linux/scripts
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 21
21
fi
22
22
echo " Using CUDA $CUDA_VERSION as determined by CU_VERSION"
23
23
version=" $( python -c " print('.'.join(\" ${CUDA_VERSION} \" .split('.')[:2]))" ) "
24
- cudatoolkit=" cudatoolkit=${version} "
24
+ cudatoolkit=" nvidia:: cudatoolkit=${version} "
25
25
fi
26
26
27
27
case " $( uname -s) " in
@@ -33,7 +33,7 @@ printf "Installing PyTorch with %s\n" "${cudatoolkit}"
33
33
if [ " ${os} " == " MacOSX" ]; then
34
34
conda install -y -c " pytorch-${UPLOAD_CHANNEL} " " pytorch-${UPLOAD_CHANNEL} " ::pytorch " ${cudatoolkit} " pytest
35
35
else
36
- conda install -y -c " pytorch-${UPLOAD_CHANNEL} " " pytorch-${UPLOAD_CHANNEL} " ::pytorch[build= " *${version} *" ] " ${cudatoolkit} " pytest
36
+ conda install -y -c " pytorch-${UPLOAD_CHANNEL} " -c nvidia " pytorch-${UPLOAD_CHANNEL} " ::pytorch[build= " *${version} *" ] " ${cudatoolkit} " pytest
37
37
fi
38
38
39
39
printf " * Installing torchvision\n"
Original file line number Diff line number Diff line change 42
42
PYTORCH_MUTEX_CONSTRAINT=' '
43
43
fi
44
44
45
- conda install -yq \p ytorch=$PYTORCH_VERSION $CONDA_CUDATOOLKIT_CONSTRAINT $PYTORCH_MUTEX_CONSTRAINT $MKL_CONSTRAINT numpy -c " pytorch-${UPLOAD_CHANNEL} "
45
+ conda install -yq \p ytorch=$PYTORCH_VERSION $CONDA_CUDATOOLKIT_CONSTRAINT $PYTORCH_MUTEX_CONSTRAINT $MKL_CONSTRAINT numpy -c nvidia -c " pytorch-${UPLOAD_CHANNEL} "
46
46
TORCH_PATH=$( dirname $( python -c " import torch; print(torch.__file__)" ) )
47
47
48
48
if [[ " $( uname) " == Darwin || " $OSTYPE " == " msys" ]]; then
Original file line number Diff line number Diff line change @@ -18,4 +18,4 @@ if [[ "$CU_VERSION" == cu115 ]]; then
18
18
export CUDATOOLKIT_CHANNEL=" conda-forge"
19
19
fi
20
20
21
- conda build -c defaults -c $CUDATOOLKIT_CHANNEL $CONDA_CHANNEL_FLAGS --no-anaconda-upload --python " $PYTHON_VERSION " packaging/torchvision
21
+ conda build -c $CUDATOOLKIT_CHANNEL -c defaults $CONDA_CHANNEL_FLAGS --no-anaconda-upload --python " $PYTHON_VERSION " packaging/torchvision
You can’t perform that action at this time.
0 commit comments