diff options
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; } |
