File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed
.circleci/unittest/linux/scripts Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 35
35
fi
36
36
printf " Installing PyTorch with %s\n" " ${cudatoolkit} "
37
37
(
38
+ if [ " ${os} " == MacOSX ] ; then
39
+ # TODO: this can be removed as soon as linking issue could be resolved
40
+ # see https://github.com/pytorch/pytorch/issues/62424 from details
41
+ MKL_CONSTRAINT=' mkl==2021.2.0'
42
+ else
43
+ MKL_CONSTRAINT=' '
44
+ fi
38
45
set -x
39
- conda install ${CONDA_CHANNEL_FLAGS:- } -y -c " pytorch-${UPLOAD_CHANNEL} " " pytorch-${UPLOAD_CHANNEL} ::pytorch" ${cudatoolkit}
46
+ conda install ${CONDA_CHANNEL_FLAGS:- } -y -c " pytorch-${UPLOAD_CHANNEL} " $MKL_CONSTRAINT " pytorch-${UPLOAD_CHANNEL} ::pytorch" ${cudatoolkit}
40
47
)
41
48
42
49
# 2. Install torchaudio
Original file line number Diff line number Diff line change @@ -238,6 +238,11 @@ setup_conda_pytorch_constraint() {
238
238
export CONDA_PYTORCH_BUILD_CONSTRAINT=" - pytorch==${PYTORCH_VERSION}${PYTORCH_VERSION_SUFFIX} "
239
239
export CONDA_PYTORCH_CONSTRAINT=" - pytorch==${PYTORCH_VERSION}${PYTORCH_VERSION_SUFFIX} "
240
240
fi
241
+ # TODO: Remove me later, see https://github.com/pytorch/pytorch/issues/62424 for more details
242
+ if [[ " $( uname) " == Darwin ]]; then
243
+ # Use less than equal to avoid version conflict in python=3.6 environment
244
+ export CONDA_EXTRA_BUILD_CONSTRAINT=" - mkl<=2021.2.0"
245
+ fi
241
246
}
242
247
243
248
# Translate CUDA_VERSION into CUDA_CUDATOOLKIT_CONSTRAINT
Original file line number Diff line number Diff line change @@ -17,12 +17,13 @@ requirements:
17
17
- cmake
18
18
- ninja
19
19
- defaults::numpy >=1.11
20
- {{ environ.get('CONDA_PYTORCH_BUILD_CONSTRAINT') }}
20
+ {{ environ.get('CONDA_PYTORCH_BUILD_CONSTRAINT', 'pytorch') }}
21
+ {{ environ.get('CONDA_EXTRA_BUILD_CONSTRAINT', '') }}
21
22
22
23
run :
23
24
- python
24
25
- defaults::numpy >=1.11
25
- {{ environ.get('CONDA_PYTORCH_CONSTRAINT') }}
26
+ {{ environ.get('CONDA_PYTORCH_CONSTRAINT', 'pytorch' ) }}
26
27
27
28
build :
28
29
string : py{{py}}
You can’t perform that action at this time.
0 commit comments