magma 'make test' fails
Posted: Wed Dec 17, 2014 8:57 am
Hello,
My name is Laurentiu and I am new to MAGMA.
I have made a make.inc and tried to compile MAGMA with command 'make lib' and it seemed that it worked.
Here is my make.inc:
#------------------------------------------
GPU_TARGET = Fermi
CC = gcc
CXX = g++
NVCC = nvcc
FORT = gfortran
ARCH = ar
ARCHFLAGS = cr
RANLIB = ranlib
CFLAGS = -O3 -DADD_ -Wall -fno-strict-aliasing -DMAGMA_SETAFFINITY
FFLAGS = -O3 -DADD_ -Wall
F90FLAGS = -O3 -DADD_ -Wall -x f95-cpp-input
NVCCFLAGS = -O3 -DADD_ -Xcompiler -fno-strict-aliasing
#LDFLAGS = -fopenmp
LIB = -lcublas -lcudart -lstdc++ -lm
# define library directories preferably in your environment, or here.
#OPENBLASDIR ?= /usr/local/openblas
CUDADIR = /opt/tools/libraries/cuda-6.0
#-include make.check-openblas
-include make.check-cuda
LIBDIR = -L$(CUDADIR)/lib64
INC = -I$(CUDADIR)/include
#------------------------------------------
Then I tried to do 'make test' and the following error appears:
...
g++ -O3 -DADD_ -Wall -fno-strict-aliasing -DMAGMA_SETAFFINITY -DHAVE_CUBLAS -DMIN_CUDA_ARCH=200 -DHAVE_CUBLAS -DMIN_CUDA_ARCH=200 -I/opt/tools/libraries/cuda-6.0/include -I../include -I../control -I../sparse-iter/include -c testing_zgemm.cpp -o testing_zgemm.o
gcc testing_zgemm.o -o testing_zgemm \
libtest.a lin/liblapacktest.a -L../lib -lmagma \
-L/opt/tools/libraries/cuda-6.0/lib64 \
-lcublas -lcudart -lstdc++ -lm
testing_zgemm.o: In function `main':
testing_zgemm.cpp:(.text+0xec): undefined reference to `dlamch_'
testing_zgemm.cpp:(.text+0x216): undefined reference to `zlange_'
testing_zgemm.cpp:(.text+0x24a): undefined reference to `zaxpy_'
testing_zgemm.cpp:(.text+0x268): undefined reference to `zlange_'
testing_zgemm.cpp:(.text+0x671): undefined reference to `zlarnv_'
testing_zgemm.cpp:(.text+0x691): undefined reference to `zlarnv_'
testing_zgemm.cpp:(.text+0x6b1): undefined reference to `zlarnv_'
testing_zgemm.cpp:(.text+0xb27): undefined reference to `zgemm_'
testing_zgemm.cpp:(.text+0xb9f): undefined reference to `zlange_'
testing_zgemm.cpp:(.text+0xbce): undefined reference to `zaxpy_'
testing_zgemm.cpp:(.text+0xbec): undefined reference to `zlange_'
testing_zgemm.cpp:(.text+0xc28): undefined reference to `zaxpy_'
testing_zgemm.cpp:(.text+0xc46): undefined reference to `zlange_'
collect2: ld returned 1 exit status
make[1]: *** [testing_zgemm] Error 1
make[1]: Leaving directory `/export/home/acs/prof/laurentiu.duca/magma-1.6.0-noopenmp/testing'
make: *** [test] Error 2
I have also tried a very simple test (find max from a vector) that worked and some more complicated (Ax=b solver) that failed.
I appreciate any help.
Thank you,
Laurentiu
My name is Laurentiu and I am new to MAGMA.
I have made a make.inc and tried to compile MAGMA with command 'make lib' and it seemed that it worked.
Here is my make.inc:
#------------------------------------------
GPU_TARGET = Fermi
CC = gcc
CXX = g++
NVCC = nvcc
FORT = gfortran
ARCH = ar
ARCHFLAGS = cr
RANLIB = ranlib
CFLAGS = -O3 -DADD_ -Wall -fno-strict-aliasing -DMAGMA_SETAFFINITY
FFLAGS = -O3 -DADD_ -Wall
F90FLAGS = -O3 -DADD_ -Wall -x f95-cpp-input
NVCCFLAGS = -O3 -DADD_ -Xcompiler -fno-strict-aliasing
#LDFLAGS = -fopenmp
LIB = -lcublas -lcudart -lstdc++ -lm
# define library directories preferably in your environment, or here.
#OPENBLASDIR ?= /usr/local/openblas
CUDADIR = /opt/tools/libraries/cuda-6.0
#-include make.check-openblas
-include make.check-cuda
LIBDIR = -L$(CUDADIR)/lib64
INC = -I$(CUDADIR)/include
#------------------------------------------
Then I tried to do 'make test' and the following error appears:
...
g++ -O3 -DADD_ -Wall -fno-strict-aliasing -DMAGMA_SETAFFINITY -DHAVE_CUBLAS -DMIN_CUDA_ARCH=200 -DHAVE_CUBLAS -DMIN_CUDA_ARCH=200 -I/opt/tools/libraries/cuda-6.0/include -I../include -I../control -I../sparse-iter/include -c testing_zgemm.cpp -o testing_zgemm.o
gcc testing_zgemm.o -o testing_zgemm \
libtest.a lin/liblapacktest.a -L../lib -lmagma \
-L/opt/tools/libraries/cuda-6.0/lib64 \
-lcublas -lcudart -lstdc++ -lm
testing_zgemm.o: In function `main':
testing_zgemm.cpp:(.text+0xec): undefined reference to `dlamch_'
testing_zgemm.cpp:(.text+0x216): undefined reference to `zlange_'
testing_zgemm.cpp:(.text+0x24a): undefined reference to `zaxpy_'
testing_zgemm.cpp:(.text+0x268): undefined reference to `zlange_'
testing_zgemm.cpp:(.text+0x671): undefined reference to `zlarnv_'
testing_zgemm.cpp:(.text+0x691): undefined reference to `zlarnv_'
testing_zgemm.cpp:(.text+0x6b1): undefined reference to `zlarnv_'
testing_zgemm.cpp:(.text+0xb27): undefined reference to `zgemm_'
testing_zgemm.cpp:(.text+0xb9f): undefined reference to `zlange_'
testing_zgemm.cpp:(.text+0xbce): undefined reference to `zaxpy_'
testing_zgemm.cpp:(.text+0xbec): undefined reference to `zlange_'
testing_zgemm.cpp:(.text+0xc28): undefined reference to `zaxpy_'
testing_zgemm.cpp:(.text+0xc46): undefined reference to `zlange_'
collect2: ld returned 1 exit status
make[1]: *** [testing_zgemm] Error 1
make[1]: Leaving directory `/export/home/acs/prof/laurentiu.duca/magma-1.6.0-noopenmp/testing'
make: *** [test] Error 2
I have also tried a very simple test (find max from a vector) that worked and some more complicated (Ax=b solver) that failed.
I appreciate any help.
Thank you,
Laurentiu