Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e9c23cc

Browse files
committed
[azure parallel] Remove cimport openmp and improve comment
1 parent e90ef19 commit e9c23cc

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

build_tools/azure/install.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,11 @@ scikit_learn_install() {
104104
# Without openmp, we use the system clang. Here we use /usr/bin/ar
105105
# instead because llvm-ar errors
106106
export AR=/usr/bin/ar
107-
# delete omp.h
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, on OSX, blas (mkl or openblas) brings in openmp
110+
# so that you end up having the omp.h include inside the conda
111+
# environment.
108112
find $CONDA_PREFIX -name omp.h -delete -print
109113
fi
110114

sklearn/_isotonic.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ cimport numpy as cnp
99
from cython cimport floating
1010

1111
cnp.import_array()
12-
cimport openmp
1312

1413
def _inplace_contiguous_isotonic_regression(floating[::1] y, floating[::1] w):
1514
cdef:

0 commit comments

Comments
 (0)