Skip to content

Commit 115d226

Browse files
malfetfacebook-github-bot
authored andcommitted
Pin NumPy version on MacOS testers to 1.18.5 (#42409)
Summary: Otherwise numba linking by clang-9 fails with: ``` ld: in /Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/numpy/core/lib/libnpymath.a(npy_math.o), could not parse object file /Users/distiller/workspace/miniconda3/lib/python3.7/site-packages/numpy/core/lib/libnpymath.a(npy_math.o): 'Unknown attribute kind (61) (Producer: 'LLVM10.0.0' Reader: 'LLVM APPLE_1_902.0.39.2_0')', using libLTO version 'LLVM version 9.1.0, (clang-902.0.39.2)' for architecture x86_64 ``` Because conda's numpy-1.19.1 is compiled with clang-10 This should fix MacOS regressions in CIrcleCI Pull Request resolved: #42409 Reviewed By: xw285cornell Differential Revision: D22887683 Pulled By: malfet fbshipit-source-id: d58ee9bf53772b57c59e18f71151916d4f0a3c7d
1 parent 2912390 commit 115d226

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.jenkins/pytorch/macos-common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if [ ! -d "${WORKSPACE_DIR}/miniconda3" ]; then
2020
fi
2121
export PATH="${WORKSPACE_DIR}/miniconda3/bin:$PATH"
2222
source ${WORKSPACE_DIR}/miniconda3/bin/activate
23-
retry conda install -y mkl mkl-include numpy pyyaml=5.3 setuptools=46.0.0 cmake cffi ninja
23+
retry conda install -y mkl mkl-include numpy=1.18.5 pyyaml=5.3 setuptools=46.0.0 cmake cffi ninja
2424

2525
# The torch.hub tests make requests to GitHub.
2626
#

0 commit comments

Comments
 (0)