Error while installing MAGMA installation

Open discussion for MAGMA

Error while installing MAGMA installation

Postby samaraga » Thu Mar 15, 2012 8:09 am

I am installing MAGMA using GOTOBLAS but during the make of /testing directory , the compilation halts.
Initially I had problem with sizeptr, but that is now resolved after seeing post http://icl.cs.utk.edu/magma/forum/viewtopic.php?f=2&t=365&hilit=+sizeptr#p1208.
The configuration file :
GPU_TARGET = 1

CC = gcc
NVCC = nvcc
FORT = gfortran

ARCH = ar
ARCHFLAGS = cr
RANLIB = ranlib

OPTS = -O3 -DADD_
FOPTS = -O3 -DADD_ -x f95-cpp-input
NVOPTS = --compiler-options -fno-strict-aliasing -DUNIX -O3 -DADD_
LDOPTS = -fPIC -Xlinker -zmuldefs

LIB = -lgoto2 -lpthread -lcublas -lcudart -llapack -lm

CUDADIR = /usr/local/cuda

LIBDIR = -L/home/neelima/Downloads/GotoBLAS2 -L/usr/local/cuda/lib64 -L/usr/lib64
INC = -I$(CUDADIR)/include

#LIBMAGMA = $(MAGMA_DIR)/lib/magma.a
#LIBMAGMABLAS = $(MAGMA_DIR)/lib/magmablas.a

The error message being displayed is :
neelima@neelima-System-Product-Name:~/Downloads/magma_1.1.0$ make
( cd control && make )
make[1]: Entering directory `/home/neelima/Downloads/magma_1.1.0/control'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/neelima/Downloads/magma_1.1.0/control'
( cd src && make )
make[1]: Entering directory `/home/neelima/Downloads/magma_1.1.0/src'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/neelima/Downloads/magma_1.1.0/src'
( cd magmablas && make )
make[1]: Entering directory `/home/neelima/Downloads/magma_1.1.0/magmablas'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/neelima/Downloads/magma_1.1.0/magmablas'
( cd testing && make )
make[1]: Entering directory `/home/neelima/Downloads/magma_1.1.0/testing'
gcc -O3 -DADD_ -DGPUSHMEM=200 -I/usr/local/cuda/include -I../include -I../quark/include -c testing_zgemm.cpp -o testing_zgemm.o
gcc -O3 -DADD_ -DGPUSHMEM=200 -fPIC -Xlinker -zmuldefs -DGPUSHMEM=200 testing_zgemm.o -o testing_zgemm lin/liblapacktest.a -L../lib \
-lcuda -lmagma -lmagmablas -lmagma -L/home/neelima/Downloads/GotoBLAS2 -L/usr/local/cuda/lib64 -L/usr/lib64 -lgoto2 -lpthread -lcublas -lcudart -llapack -lm
/usr/bin/ld: cannot find -lcublas
/usr/bin/ld: cannot find -lcudart
collect2: ld returned 1 exit status
make[1]: *** [testing_zgemm] Error 1
rm testing_zgemm.o
make[1]: Leaving directory `/home/neelima/Downloads/magma_1.1.0/testing'
make: *** [test] Error 2

I tried keeping cuda library in LD_LIBRARY_PATH[and without it], but it does not work that way too. I even changed CUDA version , but it is of no avail.Can anyone tell whether the problem with MAGMA or is it some system error and suggest a fix ?
Thanks in advance.
samaraga
 
Posts: 1
Joined: Thu Feb 16, 2012 12:33 am

Re: Error while installing MAGMA installation

Postby mgates3 » Mon Mar 19, 2012 4:53 pm

Can you check that the CUDADIR is correct? I.e., if you list that directory you should see something like:

> ls /usr/local/cuda/lib64/
libcublas.so@ libcufft.so@ libcusparse.so@
libcublas.so.4@ libcufft.so.4@ libcusparse.so.4@
libcublas.so.4.0.17* libcufft.so.4.0.17* libcusparse.so.4.0.17*
libcudart.so@ libcurand.so@ libnpp.so@
libcudart.so.4@ libcurand.so.4@ libnpp.so.4@
libcudart.so.4.0.17* libcurand.so.4.0.17* libnpp.so.4.0.17*

-mark
mgates3
 
Posts: 409
Joined: Fri Jan 06, 2012 2:13 pm


Return to User discussion

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 1 guest