10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
cimport openmp
1 parent b3adb34 commit 1075799Copy full SHA for 1075799
build_tools/azure/install.sh
@@ -104,6 +104,12 @@ scikit_learn_install() {
104
# Without openmp, we use the system clang. Here we use /usr/bin/ar
105
# instead because llvm-ar errors
106
export AR=/usr/bin/ar
107
+ # Make sure omp.h is not present in the conda environment, so that
108
+ # using an unprotected "cimport openmp" will make this build fail. At
109
+ # the time of writing (2023-01-13), on OSX, blas (mkl or openblas)
110
+ # brings in openmp so that you end up having the omp.h include inside
111
+ # the conda environment.
112
+ find $CONDA_PREFIX -name omp.h -delete -print
113
fi
114
115
if [[ "$UNAMESTR" == "Linux" ]]; then
0 commit comments