pulled -O3 out into CXXFLAGS, refactored CUDA compiler into CUDA_CXX

make variable to cope with clang as CUDA compiler as well
This commit is contained in:
Peter Steinbach 2017-03-17 15:18:13 +01:00
parent 8c7a801a84
commit d8cb7494e0

View File

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