added EXTRA_FLAGS variable to CUDA Makefile to provide the freedom to specify debug flags or gencode flags

This commit is contained in:
Peter Steinbach 2017-03-13 14:41:16 +01:00
parent 94e0900377
commit ea12f2a9a1

View File

@ -1,6 +1,7 @@
EXTRA_FLAGS?=-O3
cuda-stream: main.cpp CUDAStream.cu
nvcc -std=c++11 -O3 -DCUDA $^ $(EXTRA_FLAGS) -o $@
nvcc -std=c++11 -DCUDA $^ $(EXTRA_FLAGS) -o $@
.PHONY: clean
clean: