Skip to content

Commit

Permalink
[CUDA] Merge pull request #28 from psteinb/extra_cuda_make_variable
Browse files Browse the repository at this point in the history
Allow specifying compiler and flags for build
  • Loading branch information
tomdeakin authored Mar 17, 2017
2 parents 703eb94 + d8cb749 commit bf57cf5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CUDA.make
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
CXXFLAGS=-O3
CUDA_CXX=nvcc

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
clean:
Expand Down

0 comments on commit bf57cf5

Please sign in to comment.