Friday, September 5, 2025

How to find out Intel MKL version

 First, find out your installation:

$ echo $MKLROOT

/opt/intel/oneapi/mkl/2023.0.0

Go there and find the file mkl_version.h :

$ find ./ -name *version*

look there:

#define INTEL_MKL_VERSION      20230000

or, you can write a program to find out:

https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-fortran/2025-1/mkl-get-version-string.html

$ vim mklversion.f90 

!$ use omp_lib

!https://www.intel.com/content/www/us/en/docs/onemkl/developer-reference-fortran/2025-1/mkl-get-version-string.html


character(198)::  buf


call mkl_get_version_string(buf)

write(*,'(a)') buf


end

$ ifort -qmkl mklversion.f90 

$ ./a.out 

Intel(R) oneAPI Math Kernel Library Version 2023.0-Product Build 20221128 for Intel(R) 64 architecture applications