From 89b7996d04ff5d12d2a46e3adcbf312ab0a9ac28 Mon Sep 17 00:00:00 2001 From: kchristin Date: Fri, 15 Nov 2024 14:47:52 +0200 Subject: [PATCH] Clarify the changes made to the original file --- 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 25a137a08..83311b489 100644 --- a/demos/CUDA/BlackScholes/BlackScholes.cu +++ b/demos/CUDA/BlackScholes/BlackScholes.cu @@ -33,8 +33,12 @@ /* * DISCLAIMER: The following file has been slightly modified to ensure - * compatibility with Clad and serve the purpose of a Clad demo. The original - * file is available in NVIDIA's cuda-samples repository on GitHub. + * compatibility with Clad and to serve as a Clad demo. Specifically, parts of + * the original `main` function have been moved to a separate function to use + * `clad::gradient` on. Furthermore, original print statements have been removed + * and new helper functions are now included in the file to verify the + * gradient's results. 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