Hello,
I've compiled the library MAGMA and the test examples succesfully. The examples work perfectly.
Then, I want to use the "magma_zhegvx" function in a program. The problem I have is that the compiler doesn't find a reference to "magma_stream" while linking... I paste the error below.
I have linked the executable to -lmagma and -lmagmablas, and in the code where I use "magma_zhegvx" I have included
#include "magma.h"
#include "magma_z.h"
#include "magmablas_z.h"
Do I need to include or link something else?¿
Do you have any idea of what am I doing wrong?¿
Thank you so much in advance for your help.
EDU.
Building target: ../../../bin/inma
Invoking: Intel IA-32 C++ Linker
icpc -L../../../lib -mkl=sequential -o"../../../bin/inma" ./inma.o -lnma -lpdb2 -ltools -lmagma -lmagmablas -lcuda -lcublas -lcudart -L/home/eduardo/MAGMA/magma_1.1.0/install/lib -L/usr/local/cuda/lib64
ipo: warning #11021: unresolved magma_stream
Referenced in libmagmablas.a(zlanhe.cu_o)
Referenced in libmagmablas.a(zlascl.cu_o)
Referenced in libmagmablas.a(zauxiliary.cu_o)
ipo: remark #11000: performing multi-file optimizations
ipo: remark #11006: generating object file /tmp/ipo_icpcw8vesV.o
/home/eduardo/MAGMA/magma_1.1.0/install/lib/libmagmablas.a(zauxiliary.cu_o): In function `magmablas_zsetdiag1subdiag0':
tmpxft_00007074_00000000-1_zauxiliary.cudafe1.cpp:(.text+0x681): undefined reference to `magma_stream'
tmpxft_00007074_00000000-1_zauxiliary.cudafe1.cpp:(.text+0x6c3): undefined reference to `magma_stream'
/home/eduardo/MAGMA/magma_1.1.0/install/lib/libmagmablas.a(zauxiliary.cu_o): In function `zzero_32x32_block':
tmpxft_00007074_00000000-1_zauxiliary.cudafe1.cpp:(.text+0xa5b): undefined reference to `magma_stream'
/home/eduardo/MAGMA/magma_1.1.0/install/lib/libmagmablas.a(zauxiliary.cu_o): In function `zzero_nbxnb_block':
tmpxft_00007074_00000000-1_zauxiliary.cudafe1.cpp:(.text+0xcf0): undefined reference to `magma_stream'
/home/eduardo/MAGMA/magma_1.1.0/install/lib/libmagmablas.a(zauxiliary.cu_o): In function `magmablas_zlaset':
tmpxft_00007074_00000000-1_zauxiliary.cudafe1.cpp:(.text+0xe4d): undefined reference to `magma_stream'
/home/eduardo/MAGMA/magma_1.1.0/install/lib/libmagmablas.a(zauxiliary.cu_o):tmpxft_00007074_00000000-1_zauxiliary.cudafe1.cpp:(.text+0xf23): more undefined references to `magma_stream' follow
make: *** [../../../bin/inma] Error 1
