Intel® Math Kernel Library 11.0.2 User Guide

Examples for Linking a C Application

These examples illustrate linking of an application under the following conditions:

To link with ScaLAPACK for a cluster of systems based on the IA-32 architecture, use the following link line:

mpicc <user files to link>                       \
   -L$MKLPATH                                    \
   -lmkl_scalapack_core                          \
   -lmkl_blacs_intelmpi                          \
   -lmkl_intel -lmkl_intel_thread -lmkl_core     \
   -liomp5 -lpthread

To link with Cluster FFT for a cluster of systems based on the IA-32 architecture, use the following link line:

mpicc <user files to link>                \
   -Wl,--start-group                      \
   $MKLPATH/libmkl_cdft_core.a            \
   $MKLPATH/libmkl_blacs_intelmpi.a       \
   $MKLPATH/libmkl_intel.a                \
   $MKLPATH/libmkl_intel_thread.a         \
   $MKLPATH/libmkl_core.a                 \
   -Wl,--end-group                        \
   -liomp5 -lpthread

See Also


Submit feedback on this help topic