Quantcast
Channel: Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 2652

Static linking error: undefined reference to `MKLMPI_Get_wrappers'

$
0
0

I am able to dynamically link the intel libraries and my application runs perfectly. But when I try to statically link, l I receive the error:

/opt/intel/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64/libmkl_core.a(mkl_get_mpi_wrappers_static.o): In function `mkl_serv_get_mpi_wrappers':
mkl_get_mpi_wrappers.c:(.text+0x4b): undefined reference to `MKLMPI_Get_wrappers'

I followed the link advisor and my link line looks like:

mpiifort -w -O3 -qopenmp -i8 -I/opt/intel/compilers_and_libraries_2017.0.098/linux/mkl/include -static-intel -nofor-main -o ccx_2.11_MT ccx_2.11.o ccx_2.11_MT.a ../../../ARPACK/libarpack_INTEL.a -Wl,--start-group /opt/intel/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64/libmkl_intel_ilp64.a /opt/intel/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64/libmkl_core.a /opt/intel/compilers_and_libraries_2017.0.098/linux/mkl/lib/intel64/libmkl_intel_thread.a -Wl,--end-group -lpthread -lm -ldl

Any suggestions on where the issue may be?

 

 

 

 

 


Viewing all articles
Browse latest Browse all 2652

Trending Articles