From e531b3a6037444c2a9ad486d7bf44c0ada1e8b1d Mon Sep 17 00:00:00 2001 From: Neil Kichler Date: Wed, 16 Oct 2024 17:46:29 +0200 Subject: [PATCH] fix add_down to add_up --- include/cutangent/arithmetic/intrinsic_v.cuh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cutangent/arithmetic/intrinsic_v.cuh b/include/cutangent/arithmetic/intrinsic_v.cuh index 3063510..03dae30 100644 --- a/include/cutangent/arithmetic/intrinsic_v.cuh +++ b/include/cutangent/arithmetic/intrinsic_v.cuh @@ -90,7 +90,7 @@ inline __device__ tangents add_up(const tangents &a, const // multiple mccormick relaxations in one block int gid = blockIdx.x * blockDim.x + threadIdx.x; for (int i = gid % N; i < N; i += blockDim.x * gridDim.x) { - res.ds[i] = add_down(a.ds[i], b.ds[i]); + res.ds[i] = add_up(a.ds[i], b.ds[i]); } // if (threadIdx.x == 0) {