File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,17 @@ install_miniconda() {
3131
3232install_python () {
3333 pushd /opt/conda
34- # Install the select Python version for CI jobs. Conda mkl is needed to build PyTorch
35- # from source for optimal performance on x86 CPU
34+ # Install the select Python version for CI jobs
3635 as_ci_user conda create -n " py_${PYTHON_VERSION} " -y --file /opt/conda/conda-env-ci.txt \
3736 python=" ${PYTHON_VERSION} " \
38- mkl=2021.4.0 \
39- mkl-include=2021.4.0
37+
38+ # From https://github.com/pytorch/pytorch/blob/main/.ci/docker/common/install_conda.sh
39+ if [[ $( uname -m) == " aarch64" ]]; then
40+ conda_install " openblas==0.3.28=*openmp*"
41+ else
42+ conda_install " mkl=2021.4.0 mkl-include=2021.4.0"
43+ fi
44+
4045 popd
4146}
4247
You can’t perform that action at this time.
0 commit comments