From e415e282be53a3d8264b67d22b4b15b518f71099 Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Thu, 6 Jul 2023 11:45:59 -0400 Subject: Add preemption_logger benchmark, make target, and fix d82c60c Benchmark supports: => Spinning on-GPU until some number of preemptions have occured => Monitoring GPU scheduling by logging preempt and resume times => Logging the above as raw GPU, or converted CPU, times => Measuring launch overheads Also imports task_host_utilities.cu from cuda_scheduling_examiner as of commit 9fc0ca898ef64b82cbc3734c60405723650bc66f. This is needed for timing logic used in both preemption_logger and mon_cross_ctx_copies, thus the latter would not compile prior to this commit. Also adds a new testbench helper, and a .gitignore for binaries. --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 16e17dd..9f6da4d 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,16 @@ .PHONY: all copy_experiments clean -all: constant_cycles_kernel copy_experiments +all: constant_cycles_kernel preemption_logger copy_experiments constant_cycles_kernel: constant_cycles_kernel.cu testbench.h nvcc constant_cycles_kernel.cu -o constant_cycles_kernel +preemption_logger: task_host_utilities.cu preemption_logger.cu testbench.h + nvcc preemption_logger.cu -o preemption_logger -g + copy_experiments: $(MAKE) -C $@ clean: - rm -f constant_cycles_kernel + rm -f constant_cycles_kernel preemption_logger $(MAKE) -C copy_experiments clean -- cgit v1.2.2