Skip to content

Commit

Permalink
hmm
Browse files Browse the repository at this point in the history
  • Loading branch information
gevtushenko committed May 10, 2023
1 parent 22a96ae commit 474a084
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cub/agent/agent_scan.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ struct AgentScan

// Wait for all threads in the cluster to finish loading / dsmem initialization
cooperative_groups::cluster_group::barrier_wait(std::move(token));
// CTA_SYNC();
CTA_SYNC(); // What, this sync fixes the race

// Perform tile scan
if (tile_idx == 0)
Expand Down
2 changes: 2 additions & 0 deletions cub/agent/single_pass_scan_operators.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,8 @@ struct ClusterTilePrefixCallbackOp
}
exclusive_prefix = Reduce(cta_rank, src_cta, tile_descriptor.value);

// second thread of block 31 reads 2399 instead of 1920

if (__shfl_sync(CUB_DETAIL_CLUSTER_WARP_MASK,
tile_descriptor.status == SCAN_TILE_PARTIAL,
0,
Expand Down

0 comments on commit 474a084

Please sign in to comment.