@@ -230,7 +230,7 @@ cd "$SOURCE_DIR"
230
230
if [[ -n " $TORCH_CONDA_BUILD_FOLDER " ]]; then
231
231
build_folder=" $TORCH_CONDA_BUILD_FOLDER "
232
232
else
233
- if [[ " $OSTYPE " == ' darwin' * || " $desired_cuda " == ' 9.0 ' ]]; then
233
+ if [[ " $OSTYPE " == ' darwin' * ]]; then
234
234
build_folder=' pytorch'
235
235
elif [[ -n " $cpu_only " ]]; then
236
236
build_folder=' pytorch-cpu'
@@ -267,7 +267,10 @@ else
267
267
. ./switch_cuda_version.sh " $desired_cuda "
268
268
# TODO, simplify after anaconda fixes their cudatoolkit versioning inconsistency.
269
269
# see: https://github.com/conda-forge/conda-forge.github.io/issues/687#issuecomment-460086164
270
- if [[ " $desired_cuda " == " 11.5" ]]; then
270
+ if [[ " $desired_cuda " == " 11.6" ]]; then
271
+ export CONDA_CUDATOOLKIT_CONSTRAINT=" - cudatoolkit >=11.6,<11.7 # [not osx]"
272
+ export MAGMA_PACKAGE=" - magma-cuda116 # [not osx and not win]"
273
+ elif [[ " $desired_cuda " == " 11.5" ]]; then
271
274
export CONDA_CUDATOOLKIT_CONSTRAINT=" - cudatoolkit >=11.5,<11.6 # [not osx]"
272
275
export MAGMA_PACKAGE=" - magma-cuda115 # [not osx and not win]"
273
276
elif [[ " $desired_cuda " == " 11.3" ]]; then
@@ -282,11 +285,6 @@ else
282
285
fi
283
286
284
287
build_string_suffix=" cuda${CUDA_VERSION} _cudnn${CUDNN_VERSION} _${build_string_suffix} "
285
- if [[ " $desired_cuda " == ' 9.2' ]]; then
286
- # ATen tests can't build with CUDA 9.2 and the old compiler used here
287
- EXTRA_CAFFE2_CMAKE_FLAGS+=(" -DATEN_NO_TEST=ON" )
288
- fi
289
-
290
288
fi
291
289
292
290
# Some tricks for sccache with conda builds on Windows
0 commit comments