my first post. I'm trying to get my head round Magma.
I compiled 1.4.0 for the atlas blas and lapack okay.
then tried OpenBLAS version -- still with atlas lapack.
I got the following error:
gcc -O3 -DADD_ -DGPUSHMEM=200 -DHAVE_CUBLAS -DMAGMA_WITH_PLASMA -I/usr/local/cuda/include -I/usr/local/include -I../include -I../control -c zgetrf_incpiv_gpu.cpp -o zgetrf_incpiv_gpu.o
In file included from ../include/magmablas_z.h:14:0,
../include/magma_types.h:465:13: error: expected primary-expression before ‘int’
../include/magma_types.h:465:13: error: expected ‘]’ before ‘int’
../include/magma_types.h:465:13: error: expected initializer before ‘int’
the line in question is:
const char* lapack_const ( int magma_const );
which looks fine to me;
I've gotten the same compile error with both 1.4.0 and with 1.4.1 which I just downloaded.
My make.inc is:
GPU_TARGET = Fermi
CC = gcc
NVCC = nvcc
FORT = gfortran
ARCH = ar
ARCHFLAGS = cr
RANLIB = ranlib
OPTS = -O3 -DADD_
F77OPTS = -O3 -DADD_
FOPTS = -O3 -DADD_ -x f95-cpp-input
NVOPTS = -O3 -DADD_ --compiler-options -fno-strict-aliasing -DUNIX
LDOPTS = -fPIC -Xlinker -zmuldefs
LIB = -lopenblas -lpthread -lcublas -lcudart -llapack -lm
CUDADIR = /usr/local/cuda
LIBDIR = -L/usr/local/OpenBLAS -L/usr/local/cuda/lib64 -L/usr/lib64 -L/usr/local/atlas/lib/
INC = -I$(CUDADIR)/include
System is an i7, running Debian, kernel 3.10-2, building with gcc 4.7 and gfortran, CUDA 5.5
BTW thanks for all the work. Magma is a very cool project, I'm learning - lots!