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.
