From e7558cae783002f877acfe8a4168b19f2ba34966 Mon Sep 17 00:00:00 2001 From: Vaibhav Thakkar Date: Wed, 8 May 2024 16:36:53 +0200 Subject: [PATCH] Update GradientCuda.cu --- test/CUDA/GradientCuda.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/CUDA/GradientCuda.cu b/test/CUDA/GradientCuda.cu index 92025a27a..404bfe9c7 100644 --- a/test/CUDA/GradientCuda.cu +++ b/test/CUDA/GradientCuda.cu @@ -74,7 +74,7 @@ __device__ __host__ double gauss(double* x, double* p, double sigma, int dim) { //CHECK-NEXT: double _r_d1 = _d_t; //CHECK-NEXT: _d_t -= _r_d1; //CHECK-NEXT: _d_t += -_r_d1 / _t3; -//CHECK-NEXT: double _r0 = _r_d1 * --t / (_t3 * _t3); +//CHECK-NEXT: double _r0 = _r_d1 * -(-t / (_t3 * _t3)); //CHECK-NEXT: _d_sigma += 2 * _r0 * sigma; //CHECK-NEXT: _d_sigma += 2 * sigma * _r0; //CHECK-NEXT: } @@ -127,4 +127,4 @@ int main(void) { return 1; } -} \ No newline at end of file +}