[Numpy-discussion] Compiling numpy using icc gets missing library error

Hoyt Koepke hoytak@stat.washington....
Fri Mar 25 18:14:52 CDT 2011

Okay, even better news.  After a little bit of probing around, it
turns out that some of the errors, namely the one in the interpolator,
were due to intel's handling of floating point values at higher
optimization levels.  Thus the two rather important flags, if you wish
to avoid difficult-to-explain segfaults, are

-fp-model strict  ( disables unsafe fp optimizations)
-fno-alias (C & C++, not fortran)

Now here's a summary of the other errors:

-ipo -- okay for linker / c++, but not elsewhere.  For C, it causes
the long_double_representation() function in setup_common() to fail
(I'll note this on the corresponding ticket), and causes f2py to fail
to generate correct wrappers.

-O3 -- okay for C++ / fortran, but not C.  For C, it causes einsum to hang.

Thus the highest optimization levels I could find in which everything
compiled and ran were:

Fortran: -static -DMKL_LP64 -mkl -xHOST -O3 -fPIC  -fp-model strict
C:     -static -DMKL_LP64 -mkl -xHOST -O2 -fno-alias -fPIC -fp-model strict
C++: -static -DMKL_LP64 -mkl -xHOST -O3 -fno-alias -fPIC -fp-model strict
Linker: -DMKL_LP64 -mkl -xHOST -O2 -fno-alias -fPIC -fp-model strict
-openmp -lpthread


On Fri, Mar 25, 2011 at 2:30 PM, Pauli Virtanen <pav@iki.fi> wrote:
> On Fri, 25 Mar 2011 13:46:41 -0700, Hoyt Koepke wrote:
> [clip]
>> Also, I could still not get the CloughTocher2DInterpolator to not
>> segfault.
> Backtrace would be useful here. It's probably best to recompile with
> "-O0" and some debug flags enabled in the compiler to get something
> reasonable out.
> --
> Pauli Virtanen
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion


+ Hoyt Koepke
+ University of Washington Department of Statistics
+ http://www.stat.washington.edu/~hoytak/
+ hoytak@gmail.com

More information about the NumPy-Discussion mailing list