I was installing MAGMA 2.2.0, and I got this error:
Code: Select all
/usr/local/cuda-8.0/include/surface_functions.h(134): error: expected a ";"
/usr/local/cuda-8.0/include/surface_functions.h(135): error: expected a ";"
/usr/local/cuda-8.0/include/surface_functions.h(136): error: expected a ";"
...
Error limit reached.
100 errors detected in the compilation of "/tmp/tmpxft_00002fea_00000000-13_zaxpycp.compute_35.cpp1.ii".
Compilation terminated.
Makefile:585: recipe for target 'magmablas/zaxpycp.o' failed
make: *** [magmablas/zaxpycp.o] Error 4Code: Select all
# --------------------
# programs
CC = gcc
CXX = g++
NVCC = nvcc
FORT = gfortran
ARCH = ar
ARCHFLAGS = cr
RANLIB = ranlib
# --------------------
# flags
# Use -fPIC to make shared (.so) and static (.a) library;
# can be commented out if making only static library.
FPIC = -fPIC
CFLAGS = -O3 $(FPIC) -DADD_ -Wall -fopenmp
FFLAGS = -O3 $(FPIC) -DADD_ -Wall -Wno-unused-dummy-argument
F90FLAGS = -O3 $(FPIC) -DADD_ -Wall -Wno-unused-dummy-argument -x f95-cpp-input
NVCCFLAGS = -O3 -DADD_ -Xcompiler "$(FPIC)"
LDFLAGS = $(FPIC) -fopenmp
# C++11 (gcc >= 4.7) is not required, but has benefits like atomic operations
CXXFLAGS := $(CFLAGS) -std=c++11
CFLAGS += -std=c99
# --------------------
# libraries
# gcc with OpenBLAS (includes LAPACK)
LIB = -lopenblas
LIB += -lcublas -lcusparse -lcudart
# --------------------
# directories
# define library directories preferably in your environment, or here.
OPENBLASDIR = /home/hlu10/OpenBLAS_install
CUDADIR = /usr/local/cuda-8.0
-include make.check-openblas
-include make.check-cuda
LIBDIR = -L$(CUDADIR)/lib64 \
-L$(OPENBLASDIR)/lib
INC = -I$(CUDADIR)/includeThanks very much for reply.