diff options
Diffstat (limited to 'copy_experiments/Makefile')
| -rw-r--r-- | copy_experiments/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/copy_experiments/Makefile b/copy_experiments/Makefile index b2d55c2..ede22dc 100644 --- a/copy_experiments/Makefile +++ b/copy_experiments/Makefile | |||
| @@ -1,12 +1,13 @@ | |||
| 1 | .PHONY: all clean | 1 | .PHONY: all clean |
| 2 | NVCC ?= nvcc | ||
| 2 | 3 | ||
| 3 | all: copy_contender mon_cross_ctx_copies | 4 | all: copy_contender mon_cross_ctx_copies |
| 4 | 5 | ||
| 5 | copy_contender: copy_contender.cu copy_testbench.h ../testbench.h | 6 | copy_contender: copy_contender.cu copy_testbench.h ../testbench.h |
| 6 | /usr/local/cuda/bin/nvcc copy_contender.cu -o $@ -lcuda -g | 7 | $(NVCC) copy_contender.cu -o $@ -lcuda -g |
| 7 | 8 | ||
| 8 | mon_cross_ctx_copies: mon_cross_ctx_copies.cu copy_testbench.h ../testbench.h | 9 | mon_cross_ctx_copies: mon_cross_ctx_copies.cu copy_testbench.h ../testbench.h |
| 9 | /usr/local/cuda/bin/nvcc mon_cross_ctx_copies.cu -o $@ -lcuda -lpthread -g | 10 | $(NVCC) mon_cross_ctx_copies.cu -o $@ -lcuda -lpthread -g |
| 10 | 11 | ||
| 11 | clean: | 12 | clean: |
| 12 | rm -f copy_contender mon_cross_ctx_copies | 13 | rm -f copy_contender mon_cross_ctx_copies |
