Page 1 of 1

linking with intel mkl

PostPosted: Wed Jun 04, 2014 11:42 am
by gadou
Hi,

I am trying to link magma to intel mkl. I installed magma and testing files are working fine. But when I wrote another program to connect to magma, I got the following errors when I am trying to make my code

Code: Select all
 In function `magma_dgeqrf2_mgpu':
dgeqrf_mgpu.cpp:(.text+0x406): undefined reference to `__svml_idiv4_mask'
dgeqrf_mgpu.cpp:(.text+0x417): undefined reference to `__svml_irem4_mask'
dgeqrf_mgpu.cpp:(.text+0x44c): undefined reference to `__svml_irem4_mask'
/home/mgadou/magma-1.4.1/lib/libmagma.a(dpanel_to_q.o): In function `dq_to_panel':
dpanel_to_q.cpp:(.text+0x870): undefined reference to `_intel_fast_memcpy'
dpanel_to_q.cpp:(.text+0x9d6): undefined reference to `_intel_fast_memcpy'
/home/mgadou/magma-1.4.1/lib/libmagma.a(xerbla.o): In function `magma_xerbla':
xerbla.cpp:(.text+0x2b): undefined reference to `__intel_sse2_strlen'
collect2: ld returned 1 exit status

Re: linking with intel mkl

PostPosted: Wed Jun 04, 2014 2:41 pm
by Stan Tomov
MAGMA requires linking with these libraries:
Code: Select all
-lmkl_core -lmkl_intel_lp64 -lmkl_intel_thread -lcublas -lcudart -lm -liomp5

How is your linking different?
Functions like '_intel_fast_memcpy' are in libirc, so adding '-lirc' may help. Usually this is included automatically by the compiler.
Stan

Re: linking with intel mkl

PostPosted: Thu Jun 05, 2014 10:50 am
by gadou
It compiles now but I got the following error when I am trying to use magma in running time

CUDA runtime error: exclusive-thread device already in use by a different thread (54) in magma_setdevice at interface.cpp:155