From 92e048848f77e855fb66c2779c9c568322d55433 Mon Sep 17 00:00:00 2001 From: kchristin Date: Sun, 17 Nov 2024 16:31:33 +0200 Subject: [PATCH] Fix format --- include/clad/Differentiator/BuiltinDerivativesCUDA.cuh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/clad/Differentiator/BuiltinDerivativesCUDA.cuh b/include/clad/Differentiator/BuiltinDerivativesCUDA.cuh index 9179a7856..ef5ec9df8 100644 --- a/include/clad/Differentiator/BuiltinDerivativesCUDA.cuh +++ b/include/clad/Differentiator/BuiltinDerivativesCUDA.cuh @@ -13,7 +13,7 @@ __device__ inline void __logf_pullback(float a, float d_y, float* d_a) { } __device__ inline void __fdividef_pullback(float a, float b, float d_y, - float* d_a, float* d_b) { + float* d_a, float* d_b) { *d_a += (1.F / b) * d_y; *d_b += (-a / (b * b)) * d_y; } @@ -24,9 +24,9 @@ __device__ inline void rsqrtf_pullback(float a, float d_y, float* d_a) { } __device__ inline void make_float2_pullback(float a, float b, float2 d_y, - float* d_a, float* d_b) { + float* d_a, float* d_b) { *d_a += d_y.x; *d_b += d_y.y; } -} -} +} // namespace custom_derivatives +} // namespace clad