Skip to content

Commit 992ca12

Browse files
authored
Add cuda11.6 to build script remove old cuda 9.0 (#1015)
1 parent 9a7a224 commit 992ca12

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Diff for: conda/build_pytorch.sh

+5-7
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ cd "$SOURCE_DIR"
230230
if [[ -n "$TORCH_CONDA_BUILD_FOLDER" ]]; then
231231
build_folder="$TORCH_CONDA_BUILD_FOLDER"
232232
else
233-
if [[ "$OSTYPE" == 'darwin'* || "$desired_cuda" == '9.0' ]]; then
233+
if [[ "$OSTYPE" == 'darwin'* ]]; then
234234
build_folder='pytorch'
235235
elif [[ -n "$cpu_only" ]]; then
236236
build_folder='pytorch-cpu'
@@ -267,7 +267,10 @@ else
267267
. ./switch_cuda_version.sh "$desired_cuda"
268268
# TODO, simplify after anaconda fixes their cudatoolkit versioning inconsistency.
269269
# 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
271274
export CONDA_CUDATOOLKIT_CONSTRAINT=" - cudatoolkit >=11.5,<11.6 # [not osx]"
272275
export MAGMA_PACKAGE=" - magma-cuda115 # [not osx and not win]"
273276
elif [[ "$desired_cuda" == "11.3" ]]; then
@@ -282,11 +285,6 @@ else
282285
fi
283286

284287
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-
290288
fi
291289

292290
# Some tricks for sccache with conda builds on Windows

0 commit comments

Comments
 (0)