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:
parent
8c7a801a84
commit
d8cb7494e0
@ -1,7 +1,8 @@
|
|||||||
CXXFLAGS?=-O3 -std=c++11
|
CXXFLAGS=-O3
|
||||||
|
CUDA_CXX=nvcc
|
||||||
|
|
||||||
cuda-stream: main.cpp CUDAStream.cu
|
cuda-stream: main.cpp CUDAStream.cu
|
||||||
nvcc $(CXXFLAGS) -DCUDA $^ $(EXTRA_FLAGS) -o $@
|
$(CUDA_CXX) -std=c++11 $(CXXFLAGS) -DCUDA $^ $(EXTRA_FLAGS) -o $@
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user