Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/tl_templates/cuda/reduce.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ struct SharedReduceWarp {

unsigned mask = __activemask();
for (int offset = kWarpSize / 2; offset > 0; offset >>= 1) {
T other = __shfl_down_sync(mask, partial, offset);
T other = tl::shfl_down_sync(mask, partial, offset);
partial = Reducer()(partial, other);
}

Expand Down Expand Up @@ -159,7 +159,7 @@ template <int threads, bool reverse = false> struct CumSum1D {

#pragma unroll
for (int off = 1; off < SEG; off <<= 1) {
T n = (T)__shfl_down_sync(MASK, val, off);
T n = (T)tl::shfl_down_sync(MASK, val, off);
if (lane < SEG - off)
val += n;
}
Expand Down
Loading