Intel® oneAPI Math Kernel Library (oneMKL) providesthree methods for getting information about the library version:
using predefined preprocessor symbols (see Using Predefined Preprocessor Symbols for Intel® oneMKL Version-Dependent Compilation)
getting a version string using the mkl_get_version_string function
using the mkl_get_version function to obtain an MKLVersion structure that contains the version information