Intel® Math Kernel Library 11.1 Update 3 User's Guide

Examples of Linking a Fortran Application

These examples illustrate linking of an application for Intel MIC Architecture under the following conditions:

See the Intel MKL Release Notes for details of system requirements.

To link with ScaLAPACK for native runs on a cluster of systems based on the Intel MIC architecture, use the following link line:

<path to mpi binaries>/mpiifort -mmic <files to link>  \
   -L$MKLROOT/lib/mic                                  \
   -lmkl_scalapack_lp64                                \
   -lmkl_blacs_intelmpi_lp64                           \
   -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core      \
   -liomp5 -lpthread -lm

To link with Cluster FFT for native runs on a cluster of systems based on the Intel MIC architecture, use the following link line:

<path to mpi binaries>/mpiifort -mmic <files to link>   \
   -Wl,--start-group                                   \
   $MKLROOT/lib/mic/libmkl_cdft_core.a                 \
   $MKLROOT/lib/mic/libmkl_blacs_intelmpi_lp64.a       \
   $MKLROOT/lib/mic/libmkl_intel_lp64.a                \
   $MKLROOT/lib/mic/libmkl_intel_thread.a              \
   $MKLROOT/lib/mic/libmkl_core.a                      \
   -Wl,--end-group                                     \
   -liomp5 -lpthread -lm

See Also


Submit feedback on this help topic