Install Intel MKL Scalapack library

less than 1 minute read

Intel MKL has Scalapack, which is installed when you select “Cluster Support” for C and/or Fortran from the Intel Compiler/MKL installer. The files installed under $MKLROOT=/opt/intel/mkl are


Cmake Intel MKL Scalapack

Inside your CMakeLists.txt file, you will need the lines

include_directories(${MKL_INCLUDE_DIRS})   # this will include $MKLROOT/include

list(APPEND FLIBS mkl_scalapack_lp64 mkl_intel_lp64 mkl_intel_thread mkl_core mkl_blacs_openmpi_lp64 iomp5 pthread dl m)

add_executable(myexe myprogram.f90)
target_link_libraries(myexe PRIVATE ${FLIBS})

Leave a Comment