Dear there,
recently I would like to run some example codes of Intel@ MKL to learn the usage of it. I use the Microsoft Visual Studio Community 2019+Intel Parallel Studio XE 2019 as my develop environment. The first example I tried is the "basic_dp_complex_dft_1d.f90" uncompressed and copied from the directory ".../examples_core_f/dftf/source". After setting the link to MKL via operations: Project Property Pages->Fortran->Libraries->Use Intel Math Kernel Library-> Parallel (/Qmkl:parallel), the Build was failed with serval error messages reported. Among those errors, the first one "error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MKL_DFTI]" seems to be the root cause of others. Module file mkl_dfti.f90 needed by the source file could not be found.
According to the MKL documentation, it is enough to link with the application via turning on the Use Intel Math Kernel Library switch. But in this case, it seems does not work. I also tried to add the directory where the module file mkl_dfti.f90 exists to the include path via operations: Project Property Pages->Fortran->General->Additional Include Directories, but it failed as well.
Finally I tried to add the file mkl_dfti.f90 directlyto the project, via operations: right click on the project->Add->Existing Item->navigate to the directory and choose it. The Build process was successfully finished.
I can't understand the reason and think the last way which makes it is very inconvenient(You have to know the positions of every module files that needed). Could you give me some explanation about this or recommend some other better ways to use the MKL?
Thanks a lot~