Skip to content

Commit 36d1abe

Browse files
committed
fix
1 parent 8f71ae5 commit 36d1abe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

accelerated_scan/warp.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ __device__ Tuple load_shifted_tuple(const Tuple* ptr, int index, int limit) {
355355
for (int i = 0; i < Tuple::Size; i++) {
356356
const int idx = index * Tuple::Size + i + offset;
357357
if (idx >= 0 && idx < limit * Tuple::Size) {
358-
x.data[i] = rawPtr[offset];
358+
x.data[i] = rawPtr[idx];
359359
} else {
360360
x.data[i] = 0.0;
361361
}

0 commit comments

Comments
 (0)