After compiling with success magma and the testing programs, I'm having trouble while trying to use a magma function in my own program (C++ with calls to MAGMA GPU function)
I'm having the folowing error : main.cpp:(.text+0x2c92): undefined reference to `magma_spotrf_gpu'
In my main.cpp, I have the #include <magma.h> to have this magma_spotrf_gpu defined in magma_s.h header.
My Makefile is the folowing one :
- Code: Select all
CC := icpc -DADD_
CFLAGS += -O3 -DMKL_ILP64 -m64 -I$(CUDA_INC) -I$(MKL_INC) -I($MAGMA_ROOT)/include
LDFLAGS := -L$(CUDA_LIB) -L$(MKL_LIB) -L($MAGMA_ROOT)/lib
LDLIBS := -lmagma -lmagmablas -lmagma -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_lapack95_ilp64 -lmkl_core -liomp5 -lpthread -lcublas -lcudart -lm
What am I doing wrong ?
Also, the result of "nm $MAGMAROOT/lib/libmagma.a | grep magma_spotrf_gpu" results in :
- Code: Select all
U magma_spotrf_gpu
U magma_spotrf_gpu
U magma_spotrf_gpu
0000000000000000 T magma_spotrf_gpu
U magma_spotrf_gpu
U magma_spotrf_gpu
Thanks for you help.
Bye
