From e234396f824e73f0d91594bf90a1b4683cdf2617 Mon Sep 17 00:00:00 2001 From: kchristin Date: Fri, 15 Nov 2024 14:38:42 +0200 Subject: [PATCH] Remove builtins meant for BlackScholes demo --- .../clad/Differentiator/BuiltinDerivatives.h | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/include/clad/Differentiator/BuiltinDerivatives.h b/include/clad/Differentiator/BuiltinDerivatives.h index 8b8b4e09a..62296ab92 100644 --- a/include/clad/Differentiator/BuiltinDerivatives.h +++ b/include/clad/Differentiator/BuiltinDerivatives.h @@ -386,28 +386,6 @@ inline void free_pushforward(void* ptr, void* d_ptr) { // NOLINTEND(cppcoreguidelines-owning-memory) // NOLINTEND(cppcoreguidelines-no-malloc) -CUDA_HOST_DEVICE inline void expf_pullback(float a, float d_y, float* d_a) { - *d_a += expf(a) * d_y; -} - -CUDA_HOST_DEVICE inline void fabsf_pullback(float a, float d_y, float* d_a) { - *d_a += (a >= 0) ? d_y : -d_y; -} - -CUDA_HOST_DEVICE inline void logf_pullback(float a, float d_y, float* d_a) { - *d_a += (1.F / a) * d_y; -} - -CUDA_HOST_DEVICE inline void fdividef_pullback(float a, float b, float d_y, - float* d_a, float* d_b) { - *d_a += (1.F / b) * d_y; - *d_b += (-a / (b * b)) * d_y; -} - -CUDA_HOST_DEVICE inline void sqrtf_pullback(float a, float d_y, float* d_a) { - *d_a += (1.F / (2.F * sqrtf(a))) * d_y; -} - // These are required because C variants of mathematical functions are // defined in global namespace. using std::abs_pushforward;