From 5ba80e14efb595688a3dc3d49c212bc393840513 Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Fri, 9 Jun 2023 19:38:01 -0400 Subject: Add constant_cycles_kernel benchmark + header split and Makefile Benchmark supports: => Looping on the GPU for a specified number of iterations => Looping infinitely on the GPU => Logging the sum time (ns and ms) for all iterations to complete Also splits `testbench.h` out of `copy_testbench.h` for use in other benchmarks. --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index e81353d..7eaf03d 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,9 @@ -.PHONY: copy_experiments +.PHONY: all copy_experiments + +all: constant_cycles_kernel copy_experiments + +constant_cycles_kernel: constant_cycles_kernel.cu testbench.h + nvcc constant_cycles_kernel.cu -o constant_cycles_kernel copy_experiments: $(MAKE) -C $@ -- cgit v1.2.2