Skip to content

Commit

Permalink
fix add_down to add_up
Browse files Browse the repository at this point in the history
  • Loading branch information
neilkichler committed Oct 16, 2024
1 parent ac300be commit e531b3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/cutangent/arithmetic/intrinsic_v.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ inline __device__ tangents<double, N> add_up(const tangents<double, N> &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) {
Expand Down

0 comments on commit e531b3a

Please sign in to comment.