Skip to content

Commit 7b5ef56

Browse files
committed
quick ptt update
1 parent 0d3305d commit 7b5ef56

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cuslines/cuda_c/ptt.cu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,14 +366,14 @@ __device__ int get_direction_ptt_d(
366366

367367
int winning_lane = -1; // -1 indicates nobody won
368368
if (IS_INIT) {
369-
float max_support = __shfl_sync(WMASK, this_support, 0);
369+
float max_support = __shfl_sync(WMASK, this_support, 0, BDIM_X);
370370
float tmp_support = this_support;
371371
#pragma unroll
372372
for (int jj = BDIM_X/2; jj > 0; jj /= 2) {
373-
const float other = __shfl_down_sync(WMASK, tmp_support, jj);
373+
const float other = __shfl_down_sync(WMASK, tmp_support, jj, BDIM_X);
374374
tmp_support = fmaxf(tmp_support, other);
375375
}
376-
max_support = __shfl_sync(WMASK, tmp_support, 0);
376+
max_support = __shfl_sync(WMASK, tmp_support, 0, BDIM_X);
377377

378378
int __msk = __ballot_sync(WMASK, (this_support == max_support) && (max_support >= PROBE_QUALITY * PMF_THRESHOLD_P));
379379
if (__msk != 0) {

0 commit comments

Comments
 (0)