From 162464ef9d77f0b7611621cdc410e496090fba97 Mon Sep 17 00:00:00 2001 From: kchristin Date: Fri, 22 Nov 2024 20:27:25 +0200 Subject: [PATCH] Update disclaimer with timer note --- demos/CUDA/BlackScholes/BlackScholes.cu | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/demos/CUDA/BlackScholes/BlackScholes.cu b/demos/CUDA/BlackScholes/BlackScholes.cu index 28949797b..e5ec574bf 100644 --- a/demos/CUDA/BlackScholes/BlackScholes.cu +++ b/demos/CUDA/BlackScholes/BlackScholes.cu @@ -79,8 +79,12 @@ const float VOLATILITY = 0.30f; * `clad::gradient` on. Furthermore, Clad cannot clone checkCudaErrors * successfully, so these calls have been omitted. The same applies to the * cudaDeviceSynchronize function. New helper functions are included in another - * file and invoked here to verify the gradient's results. The original file is - * available in NVIDIA's cuda-samples repository on GitHub. + * file and invoked here to verify the gradient's results. Since Clad cannot + * handle timers at the moment, the time measurement is included in + * `main` and doesn't time exclusively the original kernel execution, but the + * whole `launch` function and its gradient are timed in this version. + * + * The original file is available in NVIDIA's cuda-samples repository on GitHub. * * Relevant documentation regarding the problem at hand can be found in NVIDIA's * cuda-samples repository. Using Clad, we compute some of the Greeks