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

dfti: Incorrect status and Invalid configuration parameters

jr3_1416
Beginner
1,027 Views

Dear all,

I recently downloaded the ifort compiler and the mkl library
for evaluation on a 2xE5520 system, SUSE Linux Enterprise
Server 11, x86 64-bit. I got the compiler to work well and it's
quite impressive. However, I cannot get the most basic dfti
call to work. I hope you may have an idea of what I'm doing
wrong?

Jon

PROGRAM test
use mkl_dfti
implicit none

type(DFTI_DESCRIPTOR), pointer :: desc
integer :: ierror

ierror=DftiCreateDescriptor(desc,DFTI_DOUBLE,DFTI_COMPLEX,1,32)

print*,DFTI_DOUBLE,DFTI_COMPLEX,'ierror=',ierror,DftiErrorMessage(ierror)
END PROGRAM test

jr@sv:~> f95 -c mkl_dfti.f90
jr@sv:~> f95 -free -c test.f
jr@sv:~> f95 test.o -o f -Wl, --start-group /home/jr/intel/mkl/10.2.4.032/lib/em64t/libmkl_intel_ilp64.a /home/jr/intel/mkl/10.2.4.032/lib/em64t/libmkl_intel_thread.a /home/jr/intel/mkl/10.2.4.032/lib/em64t/libmkl_core.a /home/jr/intel/mkl/10.2.4.032/lib/em64t/libiomp5.a -Wl,--end-group
jr@sv:~> ./f

36 32 ierror= 2

MKL DFTI ERROR: Incorrect status

jr@sv:~> ./f

36 32 ierror= 2

MKL DFTI ERROR: Invalid configuration parameters

jr@sv:~>

0 Kudos
4 Replies
ArturGuzik
Valued Contributor I
1,027 Views
Hi,

code is OK. The commands you're using are strange (if you say you're using Intel compiler) (is this G95 compiler you're invoking?). ifort is what you normally use. Are all libraries and include(s) correct?

A.
0 Kudos
Dmitry_B_Intel
Employee
1,027 Views
Hi,

Since you are linking with ILP64 interface, you should use compiler option that makes default integer 8-byte. For gnu fortran compiler it is -fdefault-integer-8, for ifort it is -i8.

To avoid various incompatibilities in future, it is better to use mkl_gf_ilp6 + mkl_gnu_thread with GNU fortran compiler, and use mkl_intel_ilp64 + mkl_intel_thread with Intel fortran compiler. With your testcase, ifort vs f95 should make no difference.

Thanks
Dima
0 Kudos
jr3_1416
Beginner
1,027 Views
Hi,

I'm using ifort through a link f95 -> /home/jrotvig/intel/Compiler/11.1/069/bin/intel64/ifort.
The libraries seem to be ok.

Jon
0 Kudos
jr3_1416
Beginner
1,027 Views
Hi,

I use the link f95 -> /home/jrotvig/intel/Compiler/11.1/069/bin/intel64/ifort.
You are right, it was the -i8 that was missing. It now works well.

Thanks,
Jon
0 Kudos
Reply