g++ mycode.cc -o myapp -I$MKLROOT/include \ -L$MKLROOT/lib/intel64 \ -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -lmkl_ccg \ -liomp5 -lpthread -lm -ldl -lmkl_ccg must come after the core libraries. Common linking mistake If you forget to link -lmkl_ccg but use ScaLAPACK functions, you will see linker errors like:
Standard Intel MKL includes BLAS, LAPACK, FFT, and vector math routines optimized for a single node (multi-core CPU). The Cluster Kit adds a layer on top of these routines to enable using MPI (Message Passing Interface). libmklccgdll work
Cblacs_gridexit(context); MPI_Finalize(); return 0; g++ mycode