[Numpy-discussion] Specifying compiler command line options for numpy.disutils.core

David Cournapeau david@ar.media.kyoto-u.ac...
Sat Jun 16 04:59:34 CDT 2007


Christian Marquardt wrote:
>
> Yes, this is possible - icc does use the standard system libraries. But
> depending on the compiler options, icc will require additional libraries
> from it's own set of libs. For example, with the -x[...] and -ax[...]
> options which exploit the floating point pipelines of the Intel cpus, it's
> using it's very own libsvml (vector math lib or something) which replace
> some of the math versions in the system lib. If the linker - runtime or
> static - doesn't know about these, linking will fail.
>
> Therefore, if an icc object with certain optimisation is linked with gcc
> without specifying the required optimised libraries, linking fails. I
> remember that this also happened for me when building an optimised version
> of numpy and trying to load it from a gcc-compiled and linked version of
> Python. Actually, if I remember correctly, this is even a problem for the
> icc itself; try to link a program from optimised objects with icc without
> giving the same -x[...] options to the linker...
>
> It might be possible that the shared libraries can be told where
> additional required shared libraries are located (--rpath?),
If I understand correctly, that would be --rpath-link. --rpath only 
helps locating libraries for runtime, whereas --rpath-link helps for 
locating libraries for linking. values for --rpath-link may use --rpath 
values, though.

David


More information about the Numpy-discussion mailing list