Add required ARCH flag for RAJA on GPUs

This commit is contained in:
James Price 2017-02-23 17:49:46 +00:00
parent f3abd66578
commit cdea91abc6

View File

@ -24,7 +24,11 @@ endif
else ifeq ($(TARGET), GPU)
COMP = nvcc
CFLAGS = --expt-extended-lambda -O3 -std=c++11 -x cu -Xcompiler -fopenmp
ifndef ARCH
$(error No ARCH defined. Specify target GPU architecture (e.g. ARCH=sm_35))
endif
CFLAGS = --expt-extended-lambda -O3 -std=c++11 -x cu -Xcompiler -fopenmp -arch $(ARCH)
endif
raja-stream: main.cpp RAJAStream.cpp