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

fortran example code

mdelavauuniv-lr_fr
506 Views
Hello,
I've just install mkl10.1.1.019 on em64t hardware.

I'm trying to compile example inintel/mkl/10.1.1.019/examples/fftw2xf
when I do :make libem64t PRECISION=MKL_DOUBLE complex_1d_double_ex1 compiler=intel threading_name=parallel

I havesource/complex_1d_double_ex1.f:(.text+0x88): undefined reference to `init_complex_vector_z_'
source/complex_1d_double_ex1.f:(.text+0x146): undefined reference to `fftw_f77_create_plan_'
source/complex_1d_double_ex1.f:(.text+0x1a0): undefined reference to `fftw_f77_one_'
source/complex_1d_double_ex1.f:(.text+0x2f0): undefined reference to `fftw_f77_destroy_plan_'
source/complex_1d_double_ex1.f:(.text+0x34f): undefined reference to `fftw_f77_create_plan_'
source/complex_1d_double_ex1.f:(.text+0x3a9): undefined reference to `fftw_f77_one_'
source/complex_1d_double_ex1.f:(.text+0x4f9): undefined reference to `fftw_f77_destroy_plan_'
source/complex_1d_double_ex1.f:(.text+0x75b): undefined reference to `check_result_z_'


Can you help me ?
0 Kudos
3 Replies
ArturGuzik
Valued Contributor I
506 Views
Hello,
I've just install mkl10.1.1.019 on em64t hardware.

I'm trying to compile example inintel/mkl/10.1.1.019/examples/fftw2xf
when I do :make libem64t PRECISION=MKL_DOUBLE complex_1d_double_ex1 compiler=intel threading_name=parallel

I havesource/complex_1d_double_ex1.f:(.text+0x88): undefined reference to `init_complex_vector_z_'
source/complex_1d_double_ex1.f:(.text+0x146): undefined reference to `fftw_f77_create_plan_'
source/complex_1d_double_ex1.f:(.text+0x1a0): undefined reference to `fftw_f77_one_'
source/complex_1d_double_ex1.f:(.text+0x2f0): undefined reference to `fftw_f77_destroy_plan_'
source/complex_1d_double_ex1.f:(.text+0x34f): undefined reference to `fftw_f77_create_plan_'
source/complex_1d_double_ex1.f:(.text+0x3a9): undefined reference to `fftw_f77_one_'
source/complex_1d_double_ex1.f:(.text+0x4f9): undefined reference to `fftw_f77_destroy_plan_'
source/complex_1d_double_ex1.f:(.text+0x75b): undefined reference to `check_result_z_'


Can you help me ?
Hi,

(1) it looks as if you're trying to use FFTW library wrappers. As far as I know, they are delivered in MKL as source code, and you need to build them prior to using. The source and makefiles are in .interfacesfftw2xf subdirectory in the Intel MKL directory. Did you do that? (see docs if don't).

(2) are you planning to use the FFTW or you just started with this example while actually going to use MKL for FFT?

A.


0 Kudos
Dmitry_B_Intel
Employee
506 Views

Hi,

Could you post a bit more of the make output. In particular, what was the link line that produced these undefined references?

Thanks,
Dima
0 Kudos
mdelavauuniv-lr_fr
506 Views
Hello,
I've just install mkl10.1.1.019 on em64t hardware.

I'm trying to compile example inintel/mkl/10.1.1.019/examples/fftw2xf
when I do :make libem64t PRECISION=MKL_DOUBLE complex_1d_double_ex1 compiler=intel threading_name=parallel

I havesource/complex_1d_double_ex1.f:(.text+0x88): undefined reference to `init_complex_vector_z_'
source/complex_1d_double_ex1.f:(.text+0x146): undefined reference to `fftw_f77_create_plan_'
source/complex_1d_double_ex1.f:(.text+0x1a0): undefined reference to `fftw_f77_one_'
source/complex_1d_double_ex1.f:(.text+0x2f0): undefined reference to `fftw_f77_destroy_plan_'
source/complex_1d_double_ex1.f:(.text+0x34f): undefined reference to `fftw_f77_create_plan_'
source/complex_1d_double_ex1.f:(.text+0x3a9): undefined reference to `fftw_f77_one_'
source/complex_1d_double_ex1.f:(.text+0x4f9): undefined reference to `fftw_f77_destroy_plan_'
source/complex_1d_double_ex1.f:(.text+0x75b): undefined reference to `check_result_z_'


Can you help me ?
I've forgot to compile interfaces.
Thanks
0 Kudos
Reply