Skip to content

Commit

Permalink
Explicitly check the warp id
Browse files Browse the repository at this point in the history
  • Loading branch information
gevtushenko committed May 25, 2023
1 parent e1f501c commit e94f1cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/device/example_device_decoupled_look_back.cu
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ __global__ void decoupled_look_back_kernel(cub::ScanTileState<MessageT> tile_sta
else
{
// Only the first warp in the block can perform the look back
if (tid < threads_in_warp)
const unsigned int warp_id = tid / threads_in_warp;

if (warp_id == 0)
{
MessageT exclusive_prefix = prefix(block_aggregate);

Expand Down

0 comments on commit e94f1cc

Please sign in to comment.