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

Simple problem: Can't get 2d DFTs to compile in MKL 9.0. Help.

david_heim
Beginner
386 Views
Here's a trivial problem. What am I missing? Your suggestions would be greatly appreciated.

Thanks,
Dave

1d DFTs work fine. But when I try to compile the simplest, default 2d real DFT, I get the following error message from the compiler, which results from the DftiComputeForward statement.

"There is no matching specific function for this generic function reference. [DFTICOMPUTEFORWARD]"

My program is:

type(DFTI_DESCRIPTOR), pointer :: descriptor
real(8), dimension(1024,1024) :: a_in
integer, dimension(2) :: dfti_len
dfti_len(1)=16
dfti_len(2)=8

status=DftiCreateDescriptor(descriptor,DFTI_DOUBLE,DFTI_REAL,2,dfti_len)
status=DftiCommitDescriptor(descriptor)
status=DftiComputeForward(descriptor,a_in)

I compile/link with

ifort tst.f90 mkl_c.lib libguide40.lib




0 Kudos
1 Reply
david_heim
Beginner
386 Views
O.K. I can now compile by looking at an example in the appendix of the reference manual.
0 Kudos
Reply