Intel® Fortran Compiler 16.0 User and Reference Guide

Math Libraries

The Intel® Fortran Compiler includes these math libraries:

Library name

Description

libimf.a (Linux* and OS X* )

Intel® Math Libraries, in addition to libm.a, the math library provided with gcc*

Both of these libraries are linked in by default because certain math functions supported by the GNU* math library are not available in the Intel® Math Library. This linking arrangement allows the GNU* users to have all functions available when using ifort, with Intel optimized versions available when supported.

libimf.a is linked in before libm.a. If you link in libm.a first, it will change the versions of the math functions that are used.

Many routines in the libimf library are more highly optimized for Intel® microprocessors than for non-Intel microprocessors.

libm.lib (static library) and libmmd.dll (the DLL version) (Windows*)

Math Libraries provided by Intel.

Many routines in the libimf library are more highly optimized for Intel® microprocessors than for non-Intel microprocessors.

Note

It is strongly recommended to use the default rounding mode (round-to-nearest-even) when calling math library transcendental functions and compiling with default optimization or higher. Faster implementations (in terms of latency and/or throughput) of these functions are validated under the default round-to-nearest-even mode. Using other rounding modes may make results generated by these faster implementations less accurate, or set unexpected floating-point status flags. This behavior may be avoided by -no-fast-transcendentals, which disables calls to the faster implementations of math functions, or by -fp-model strict, which warns the compiler that it cannot assume default settings for the floating-point environment.

Many routines in the Intel® Math Library are more highly optimized for Intel® microprocessors than for non-Intel microprocessors.

Intel® Math Kernel Library (Intel® MKL)

Math library of Fortran routines and functions that perform a wide variety of operations on vectors and matrices. The library also includes fast Fourier transform (fft) functions, as well as vector mathematical and vector statistical functions. For more information, see Using Intel® Performance Libraries and the Intel® Math Kernel Library documentation.

IMSL* Fortran Numerical Library (Windows*)

Libraries provided only with certain editions of the Intel® Visual Fortran product. The IMSL* libraries provide a large collection of mathematical and statistical functions accessible from the visual and command line development environments. For more information, see Using the IMSL* Mathematical and Statistical Libraries Overview.

Optimization Notice

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804