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

Dynamic linking fftw mkl

hadrien
Beginner
678 Views

Hi everyone,

I'm using ifort 11.1 running on IA-32 with MKL 10.2 and my code calls fftw routines.

I tried a static linking that worked (quit slowly, but it worked) :

MKLPATH2 = /home/intel/lib/32/
MKLINCLUDE = /home/intel/include
LIBS = -Wl,--start-group ${MKLPATH2}/libmkl_intel.a ${MKLPATH2}/libmkl_sequential.a ${MKLPATH2}/libmkl_core.a -Wl,--end-group -lpthread
ifort -o $@ $(OBJS) -L$(MKLPATH2) -I$(MKLINCLUDE) $(LIBS)

But unfortunatly, dynamic linking doesn't let me call FFTW routines and returns a segmentation fault :

MKLPATH2 = /home/intel/lib/32/
MKLINCLUDE = /home/intel/include
LIBS = -lmkl_intel -lmkl_sequential -lmkl_core -lpthread
ifort -o $@ $(OBJS) -L$(MKLPATH2) -I$(MKLINCLUDE) $(LIBS)

I'd like t o use dynamic linking since it's much faster, did you already experienced this problem ?

Hadrien

0 Kudos
1 Reply
Gennady_F_Intel
Moderator
678 Views

Hello,

did you set the LD_LIBRARY_PATH?

--Gennady

0 Kudos
Reply