a simple question about linking dcopy

a simple question about linking dcopy

fenglai's picture

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!!

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Chao Y (Intel)'s picture

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

Login to leave a comment.