[CUDA] Merge pull request #28 from psteinb/extra_cuda_make_variable

Allow specifying compiler and flags for build
This commit is contained in:
Tom Deakin 2017-03-17 14:22:37 +00:00 committed by GitHub
commit bf57cf578d

View File

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