I am trying to use the dft examples provided with MKL. I am trying to compile the program basic_dp_complex_dft_1d.f90, which uses MKL_DFTI module. Since Intel doesn't provide with pre-compiled modules, I'm trying tom compile the mkl_dfti.f90 in the /oneapi/mkl/@latest/includes. But I am unable to compile this file and generate a mod file. I keep getting too man errors which look like this:
...
mkl_dfti.f90(359): error #6457: This derived type name has not been declared. [DFTI_DESCRIPTOR]
TYPE(DFTI_DESCRIPTOR), POINTER :: desc
------------^
mkl_dfti.f90(364): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MKL_DFT_TYPE]
USE MKL_DFT_TYPE
-----------^
mkl_dfti.f90(369): error #6683: A kind type parameter must be a compile-time constant. [DFTI_DPKP]
REAL(DFTI_DPKP), INTENT(IN) :: DblVal
------------^
mkl_dfti.f90(771): catastrophic error: Too many errors, exiting
compilation aborted for mkl_dfti.f90 (code 1)
This is probably a very basic question. Please help
I tried using ifx -mkl mkl_dfti.f90
, but it didn't work. I don't know what else to do.