Open discussion for MAGMA library (Matrix Algebra on GPU and Multicore Architectures)
-
gadou
- Posts: 7
- Joined: Mon May 12, 2014 12:38 pm
Post
by gadou » Wed Jun 04, 2014 11:42 am
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
-
Stan Tomov
- Posts: 264
- Joined: Fri Aug 21, 2009 10:39 pm
Post
by Stan Tomov » Wed Jun 04, 2014 2:41 pm
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
-
gadou
- Posts: 7
- Joined: Mon May 12, 2014 12:38 pm
Post
by gadou » Thu Jun 05, 2014 10:50 am
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