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

a simple question about linking dcopy

fenglai1
Beginner
357 Views
Hello! I use dcopy in the mkl.blas.h and linking with
-limf -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -liomp5 -lpthread -L$(MKL_LIB) -L$(INTEL_MATH_LIB)
with mkl version of 2011.1.107 (included in the suite of compilers).

However, in the running I got the error below:
MKL FATAL ERROR on load the function mkl_blas_xdcopy

So it seems that dcopy is not in the above library. However, I searched the lib dir and found that mkl_blas_xdcopy is just defined in the mkl_core. So that makes me puzzled. Do you have any suggestions?

Thanks!!
0 Kudos
1 Reply
Chao_Y_Intel
Moderator
357 Views

Hello,

Could you please try the following linking line:
-lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -limf
The library order has some problem. Also other environments are not required.
Before running the code, it needs to set the MKL dynamic path,for example:
export LD_LIBRARY_PATH=/opt/intel/composerxe-2011.x.xxx/mkl/lib/intel64:$ LD_LIBRARY_PATH

Thanks,
Chao

0 Kudos
Reply