diff options
| author | Joshua Bakita <jbakita@cs.unc.edu> | 2024-02-26 20:33:25 -0500 |
|---|---|---|
| committer | Joshua Bakita <jbakita@cs.unc.edu> | 2024-02-26 20:33:25 -0500 |
| commit | d1576765658fc866bed806cbde969d39cc6a8dd8 (patch) | |
| tree | 0235aa2cf81fb58f4d0137ffdfafac008408b2ad /copy_experiments/Makefile | |
| parent | 340457bd5dae3624d4c92a02b84fb8206c0348a9 (diff) | |
Add gl_copies benchmark and make target
=> Uploads a large texture to the GPU on every frame
=> Requires the freeglut library (freeglut3-dev on Ubuntu)
=> Due to special requirements, not built by default
=> Written for Anderson and Bakita RTAS'24 paper
Diffstat (limited to 'copy_experiments/Makefile')
| -rw-r--r-- | copy_experiments/Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/copy_experiments/Makefile b/copy_experiments/Makefile index ede22dc..5adda53 100644 --- a/copy_experiments/Makefile +++ b/copy_experiments/Makefile | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | .PHONY: all clean | 1 | .PHONY: all clean |
| 2 | NVCC ?= nvcc | 2 | NVCC ?= nvcc |
| 3 | CC ?= gcc | ||
| 3 | 4 | ||
| 4 | all: copy_contender mon_cross_ctx_copies | 5 | all: copy_contender mon_cross_ctx_copies |
| 5 | 6 | ||
| @@ -9,5 +10,8 @@ copy_contender: copy_contender.cu copy_testbench.h ../testbench.h | |||
| 9 | mon_cross_ctx_copies: mon_cross_ctx_copies.cu copy_testbench.h ../testbench.h | 10 | mon_cross_ctx_copies: mon_cross_ctx_copies.cu copy_testbench.h ../testbench.h |
| 10 | $(NVCC) mon_cross_ctx_copies.cu -o $@ -lcuda -lpthread -g | 11 | $(NVCC) mon_cross_ctx_copies.cu -o $@ -lcuda -lpthread -g |
| 11 | 12 | ||
| 13 | gl_copies: gl_copies.c | ||
| 14 | $(CC) gl_copies.c -o $@ -lGL -lglut -g | ||
| 15 | |||
| 12 | clean: | 16 | clean: |
| 13 | rm -f copy_contender mon_cross_ctx_copies | 17 | rm -f copy_contender mon_cross_ctx_copies gl_copies |
