Skip to content

Commit bf17723

Browse files
committed
Also handle aarch64
1 parent 11b96a7 commit bf17723

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.ci/docker/common/install_conda.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,17 @@ install_miniconda() {
3131

3232
install_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

0 commit comments

Comments
 (0)