Skip to content

Commit 47a8e4b

Browse files
authored
Install llvm-openmp for M1 PyTorch builds
Otherwise the binary will be super slow Also drop `nomkl` as there were never mkl on Apple silicon
1 parent 719a738 commit 47a8e4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wheel/build_wheel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ if [[ $desired_python != "3.8" ]]; then
177177
else
178178
retry conda install ${EXTRA_CONDA_INSTALL_FLAGS} -yq "numpy${NUMPY_PINNED_VERSION}"
179179
fi
180-
retry conda install ${EXTRA_CONDA_INSTALL_FLAGS} -yq nomkl cmake ninja "setuptools${SETUPTOOLS_PINNED_VERSION}" "pyyaml${PYYAML_PINNED_VERSION}" typing_extensions requests
180+
retry conda install ${EXTRA_CONDA_INSTALL_FLAGS} -yq llvm-openmp=14.0.6 cmake ninja "setuptools${SETUPTOOLS_PINNED_VERSION}" "pyyaml${PYYAML_PINNED_VERSION}" typing_extensions requests
181181
retry pip install -qr "${pytorch_rootdir}/requirements.txt" || true
182182

183183
# For USE_DISTRIBUTED=1 on macOS, need libuv and pkg-config to find libuv.

0 commit comments

Comments
 (0)