can't link to -lmagma and -lmagmablas

Open discussion for MAGMA

can't link to -lmagma and -lmagmablas

Postby Phoenix » Sat May 14, 2011 6:45 pm

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
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/ -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?
Posts: 1
Joined: Sat May 14, 2011 6:26 pm

Re: can't link to -lmagma and -lmagmablas

Postby Boxed Cylon » Wed May 18, 2011 1:09 am

Per an earlier post concerning matlab, the order of the libraries is important. -lmagma and -lmagmablas have to come first, it seems. Perhaps try that?
Boxed Cylon
Posts: 27
Joined: Sat Nov 21, 2009 6:03 pm

Return to User discussion

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests