diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-30 00:06:42 -0400 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-30 00:06:42 -0400 |
| commit | 2c001647e47455544739fc8f4e841c6b93cbe32f (patch) | |
| tree | 4121924eb52aa18d8b0a614320e830edb4e45951 /tools/test/cuda_drv_test.c | |
| parent | 6d380a3c3f5cc3cac1fb3bea913b18bbfb1f3a13 (diff) | |
| download | open-iov-2c001647e47455544739fc8f4e841c6b93cbe32f.tar.gz open-iov-2c001647e47455544739fc8f4e841c6b93cbe32f.zip | |
gsprm: reply-latency logging + param dump cap; guest-diag: CDT_PAUSE, watcher reaping, wider CE stream window
Diffstat (limited to 'tools/test/cuda_drv_test.c')
| -rw-r--r-- | tools/test/cuda_drv_test.c | 8 |
1 files changed, 8 insertions, 0 deletions
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); |
