Developer Guide for Intel® oneAPI Math Kernel Library for Linux*
Fortran 95 Interfaces to LAPACK and BLAS
Fortran 95 interfaces are compiler-dependent. Intel® oneAPI Math Kernel Library (oneMKL) provides the interface libraries and modules precompiled with the Intel® Fortran compiler. Additionally, the Fortran 95 interfaces and wrappers are delivered as sources. (For more information, see Compiler-dependent Functions and Fortran 90 Modules ). If you are using a different compiler, build the appropriate library and modules with your compiler and link the library as a user’s library:
Go to the respective directory <mkl_directory>/share/mkl/interfaces/blas95 or <mkl_directory>/share/mkl/interfaces/lapack95
Go to the respective directory <mkl_directory>sharemklinterfacesblas95 or <mkl_directory>sharemklinterfaceslapack95
make libintel64 [interface=lp64|ilp64] INSTALL_DIR = <user_dir>
As a result, the required library is built and installed in the <user_dir>/lib directory, and the .mod files are built and installed in the <user_dir>/include/mkl/intel64/{lp64|ilp64} directory.
By default, the ifx compiler is assumed. You may change the compiler to gfortran with an additional parameter of FC=gfortran . For example:
make libintel64 INSTALL_DIR=<user_dir> FC=gfortran
To delete the library from the building directory, enter the following:
make clean INSTALL_DIR=<user_dir>
Even if you have administrative rights, avoid setting install_dir=..\..\..\.. or install_dir=<mkl_directory> in a build or clean command above because these settings replace or delete the Intel® oneAPI Math Kernel Library (oneMKL) prebuilt Fortran 95 library and modules.