I experience problems with linking my program to magma libs. I have built the library and test examples work fine.
But when I try to link my own program to magma libs it says: 'undefined reference to `magmablas_dgemm'. I can successfully link to any other library (cublas, mkl etc.)
I've tried it with both gcc and icc but with no improvements.
Here are the options I use:
CC = mpiicc
LINKER = $(CC)
CUDA_INSTALL_PATH = /usr/local/cuda
CUDASDK_INSTALL_PATH = /usr/local/cudasdk
MAGMA_LIB_DIR = /home/mezentsev/magma_1.0.0-rc5/lib
CCFLAGS = -O3 -openmp -Wall -fPIC -DMPI
INCS = -I$(CUDA_INSTALL_PATH)/include -I/home/mezentsev/magma_1.0.0-rc5/include
LIBS = -Lcuda -ldgemm -L/opt/intel/mkl/10.2.5.035/lib/em64t -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread \
-L$(CUDA_INSTALL_PATH)/lib64 -lcublas -L$(MAGMA_LIB_DIR) -lmagma -lmagmablas
I've examined makefiles provided with magma and tests in particular, but didn't discover any options which would help.
So what is the problem?