CUDAINC is redundant and '/usr/local/cuda/include' does not exist, at least not on fs5. 'module load cuda91' or some similar adjustment to PATH should suffice.

This commit is contained in:
Hanno Spreeuw 2018-04-26 16:52:24 +02:00
parent 020a44ff87
commit 28daeab055
1 changed files with 2 additions and 3 deletions

View File

@ -5,8 +5,7 @@ CFLAGS= -Wall -O3 -g -DHAVE_CUDA -DHYBRID_CODE -pg
CLIBS= -lm -lpthread
LAPACK=-L/usr/local/OpenBLAS/lib/ -lopenblas -lgfortran -lpthread
CUDAINC=/usr/local/cuda/include
CUDALIB=-L/usr/local/cuda/lib64 -lcuda -lcudart
CUDALIB=-lcuda -lcudart
#NVCC=/usr/local/cuda/bin/nvcc
#NVCFLAGS=-arch=sm_35 -g -G --ptxas-options=-v -O3
NVCFLAGS=-gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=compute_61 -gencode arch=compute_62,code=compute_62 --ptxas-options=-v -O3
@ -19,7 +18,7 @@ GLIBL=-lglib-2.0 -L/usr/lib64
NVML_INC=/usr/include/nvidia/gdk/
NVML_LIB=-lnvidia-ml
INCLUDES= -I. -I$(CUDAINC) -I$(NVML_INC)
INCLUDES= -I. -I$(NVML_INC)
LIBPATH= $(CUDALIB)