diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-30 05:38:31 -0400 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-30 05:38:31 -0400 |
| commit | a213fd708dac4494b796bcc9becee1ad4e598b49 (patch) | |
| tree | 28175b548bde0584d78cbfe4ac1d42e3344a416e /tools/test/cuda_drv_test.c | |
| parent | 2a6f1773f487b902a2f9412c8f5e7292187cf550 (diff) | |
| download | open-iov-a213fd708dac4494b796bcc9becee1ad4e598b49.tar.gz open-iov-a213fd708dac4494b796bcc9becee1ad4e598b49.zip | |
guest-diag: cdt CDT_WAIT park-at-end (live memory inspection); run_cycle CDT_WAIT passthrough
Diffstat (limited to 'tools/test/cuda_drv_test.c')
| -rw-r--r-- | tools/test/cuda_drv_test.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/test/cuda_drv_test.c b/tools/test/cuda_drv_test.c index ba8c20c..9501cb3 100644 --- a/tools/test/cuda_drv_test.c +++ b/tools/test/cuda_drv_test.c @@ -135,5 +135,14 @@ int main(void) MARK("cuCtxDestroy"); CHECK(cuCtxDestroy(ctx)); printf("ALL OK\n"); + { + const char *wait = getenv("CDT_WAIT"); + if (wait && atoi(wait) > 0) { + printf("CDT_WAIT: parked %d s (buf=%p back=%p)\n", + atoi(wait), (void *)buf, (void *)back); + fflush(stdout); + sleep((unsigned)atoi(wait)); + } + } return 0; } |
