@@ -129,7 +129,7 @@ struct WarpReverseScan {
129129 // / Constructor
130130 explicit __device__ __forceinline__
131131 WarpReverseScan ()
132- : lane_id(cub::LaneId() )
132+ : lane_id(threadIdx .x & 0x1f )
133133 , warp_id(IS_ARCH_WARP ? 0 : (lane_id / LOGICAL_WARP_THREADS ))
134134 , member_mask(cub::WarpMask<LOGICAL_WARP_THREADS >(warp_id))
135135 {
@@ -332,7 +332,7 @@ struct BlockReverseScan {
332332 // Place thread partial into shared memory raking grid
333333 T *placement_ptr = BlockRakingLayout::PlacementPtr (temp_storage.raking_grid , linear_tid);
334334 detail::uninitialized_copy (placement_ptr, input);
335- cub::CTA_SYNC ();
335+ __syncthreads ();
336336 // Reduce parallelism down to just raking threads
337337 if (linear_tid < RAKING_THREADS ) {
338338 WarpReverseScan warp_scan;
@@ -350,7 +350,7 @@ struct BlockReverseScan {
350350 // Exclusive raking downsweep scan
351351 ExclusiveDownsweep (scan_op, downsweep_postfix);
352352 }
353- cub::CTA_SYNC ();
353+ __syncthreads ();
354354 // Grab thread postfix from shared memory
355355 exclusive_output = *placement_ptr;
356356
@@ -382,7 +382,7 @@ struct BlockReverseScan {
382382 // }
383383 // }
384384
385- // cub::CTA_SYNC ();
385+ // __syncthreads ();
386386
387387 // // Incorporate thread block postfix into outputs
388388 // T block_postfix = temp_storage.block_postfix;
0 commit comments