File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
.circleci/unittest/linux/scripts Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2121 fi
2222 echo " Using CUDA $CUDA_VERSION as determined by CU_VERSION"
2323 version=" $( python -c " print('.'.join(\" ${CUDA_VERSION} \" .split('.')[:2]))" ) "
24- cudatoolkit=" cudatoolkit=${version} "
24+ cudatoolkit=" nvidia:: cudatoolkit=${version} "
2525fi
2626
2727case " $( uname -s) " in
@@ -33,7 +33,7 @@ printf "Installing PyTorch with %s\n" "${cudatoolkit}"
3333if [ " ${os} " == " MacOSX" ]; then
3434 conda install -y -c " pytorch-${UPLOAD_CHANNEL} " " pytorch-${UPLOAD_CHANNEL} " ::pytorch " ${cudatoolkit} " pytest
3535else
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
3737fi
3838
3939printf " * Installing torchvision\n"
Original file line number Diff line number Diff line change 4242 PYTORCH_MUTEX_CONSTRAINT=' '
4343fi
4444
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} "
4646TORCH_PATH=$( dirname $( python -c " import torch; print(torch.__file__)" ) )
4747
4848if [[ " $( uname) " == Darwin || " $OSTYPE " == " msys" ]]; then
Original file line number Diff line number Diff line change @@ -18,4 +18,4 @@ if [[ "$CU_VERSION" == cu115 ]]; then
1818 export CUDATOOLKIT_CHANNEL=" conda-forge"
1919fi
2020
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