@@ -525,7 +525,7 @@ public:
|
||||
|
||||
// Broadcast the warp_id computed by lane 0 to ensure dependent code
|
||||
// is compiled as warp-uniform.
|
||||
int warp_idx = __shfl_sync(0xffffffff, threadIdx.x / 32, 0);
|
||||
int warp_idx = canonical_warp_idx();
|
||||
|
||||
int lane_idx = threadIdx.x % 32;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user