From 2c001647e47455544739fc8f4e841c6b93cbe32f Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Wed, 30 Sep 2026 00:06:42 -0400 Subject: gsprm: reply-latency logging + param dump cap; guest-diag: CDT_PAUSE, watcher reaping, wider CE stream window --- tools/test/cuda_drv_test.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tools/test') diff --git a/tools/test/cuda_drv_test.c b/tools/test/cuda_drv_test.c index 8995a55..f3ee02f 100644 --- a/tools/test/cuda_drv_test.c +++ b/tools/test/cuda_drv_test.c @@ -99,6 +99,14 @@ int main(void) printf("device 0 = %d\n", dev); MARK("cuCtxCreate"); + { + const char *pause = getenv("CDT_PAUSE"); + if (pause && atoi(pause) > 0) { + printf("CDT_PAUSE: sleeping %d s before cuCtxCreate\n", atoi(pause)); + fflush(stdout); + sleep((unsigned)atoi(pause)); + } + } CHECK(cuCtxCreate(&ctx, 0, dev)); printf("context = %p\n", ctx); -- cgit v1.2.3