- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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:~>
Link copiado
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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.
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
- Marcar como novo
- Marcador
- Subscrever
- Silenciar
- Subscrever fonte RSS
- Destacar
- Imprimir
- Denunciar conteúdo inapropriado
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
- Subscrever fonte RSS
- Marcar tópico como novo
- Marcar tópico como lido
- Flutuar este Tópico para o utilizador atual
- Marcador
- Subscrever
- Página amigável para impressora