- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I installed mkl wrappers for fftw i.e. fftw3xc, fftw3xf, fftw3x_cdft with
make libintel64 INSTALL_DIR=$MKLROOT/lib/intel64
and I am sourcing
$MKLROOT/bin/mklvars.sh intel64 $INTELPATH/compilervars.sh intel64
but I end up getting the following undefined error. Can anyone help?
obj/fftw3_mpi.o: In function `fftw3_mpi_mp_create_fftw3_plans_': fftw3_mpi.f90:(.text+0x9ce): undefined reference to `fftw_mpi_plan_dft_r2c_2d_f03' fftw3_mpi.f90:(.text+0x13fb): undefined reference to `fftw_mpi_plan_dft_c2r_2d_f03' obj/fftw3_mpi.o: In function `fftw3_mpi_mp_fft_': fftw3_mpi.f90:(.text+0x20df): undefined reference to `fftw_mpi_execute_dft_c2r' fftw3_mpi.f90:(.text+0x2eb4): undefined reference to `fftw_mpi_execute_dft_r2c' obj/fftw3_mpi.o: In function `fftw3_mpi_mp_init_fftw3_': fftw3_mpi.f90:(.text+0x3578): undefined reference to `fftw_mpi_init' fftw3_mpi.f90:(.text+0x359b): undefined reference to `fftw_mpi_local_size_2d_f03'
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is a linking error. Can you post the link command?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Juergen R. wrote:
This is a linking error. Can you post the link command?
Yes I figured that out. Had to link using -lfftw3x_cdft_lp64 -lfftw3xf_intel -mkl instead of -mkl.
It now compiles but on runline runtime shows the following error.
Intel MKL FATAL ERROR: Cannot load symbol MKLMPI_Get_wrappers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you sure that the directory where your linked libraries are located, is in the DYLD_LIBRARY_PATH?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Juergen R. wrote:
Are you sure that the directory where your linked libraries are located, is in the DYLD_LIBRARY_PATH?
Okay this is new. I never knew of any such variable, but I did set it up and I get the same error.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page