Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

Setting MKL Environment

moby
Beginner
351 Views
Hello,
I recently installed the latest version of Intel MKL on MAC OS X. I have a code that utilizes the FFTs and I am having some trouble linking with the appropriate module file as I am receiving the following message when I compile:
error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MKL_DFTI]
USE MKL_DFTI
I compile using the following command:
ifort file.f90 -lmkl_rt
My .bash_profile contains the following:
# set environment variables
source /opt/intel/composerxe/mkl/bin/intel64/mklvars_intel64.sh mod lp64
# set up environment for Intel compiler
source /opt/intel/composerxe/bin/compilervars.sh intel64
What more do I need to link correctly with the DFTI module file? I always seem to have this problem and I don't know why it's not explained in more detail in the documentation.
Thanks,
Moby
0 Kudos
1 Reply
barragan_villanueva_
Valued Contributor I
351 Views
Hi,

Please compile mkl_dfti.f90 file first which is located in $MKLROOT/include directory.
It looks like corresponding mkl_dfti.mod is not yet in product MKL
0 Kudos
Reply