Skip to content

Commit dcc58c3

Browse files
malfetatalman
authored andcommitted
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 17c6661 commit dcc58c3

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
@@ -178,7 +178,7 @@ if [[ $desired_python != "3.8" ]]; then
178178
else
179179
retry conda install ${EXTRA_CONDA_INSTALL_FLAGS} -yq "numpy${NUMPY_PINNED_VERSION}"
180180
fi
181-
retry conda install ${EXTRA_CONDA_INSTALL_FLAGS} -yq nomkl cmake ninja "setuptools${SETUPTOOLS_PINNED_VERSION}" "pyyaml${PYYAML_PINNED_VERSION}" typing_extensions requests
181+
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
182182
retry pip install -qr "${pytorch_rootdir}/requirements.txt" || true
183183

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

0 commit comments

Comments
 (0)