These examples illustrate linking of an application whose main module is in Fortran under the following conditions:
To link with ScaLAPACK for a cluster of systems based on the Intel® 64 architecture, use the following link line:
/opt/intel/mpi/3.0/bin/mpiifort
<user files to link> \
-L$MKLPATH \
-lmkl_scalapack_lp64 \
-lmkl_blacs_intelmpi_lp64 \
-lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core \
-liomp5 -lpthread
To link with Cluster FFT for a cluster of systems based on the Intel® 64 architecture, use the following link line:
/opt/intel/mpi/3.0/bin/mpiifort
<user files to link> \
-Wl,--start-group \
$MKLPATH/libmkl_cdft_core.a \
$MKLPATH/libmkl_blacs_intelmpi_ilp64.a \
$MKLPATH/libmkl_intel_ilp64.a \
$MKLPATH/libmkl_intel_thread.a \
$MKLPATH/libmkl_core.a \
-Wl,--end-group \
-liomp5 -lpthread