@@ -61,12 +61,12 @@ INLINE static uint32_t
6161gpu_irregular_simd_reduce (void *reduce_data, kmp_ShuffleReductFctPtr shflFct) {
6262 uint32_t size, remote_id, physical_lane_id;
6363 physical_lane_id = GetThreadIdInBlock () % WARPSIZE;
64- uint32_t lanemask_lt = __kmpc_impl_lanemask_lt ();
65- uint32_t Liveness = __ACTIVEMASK ();
64+ __kmpc_impl_lanemask_t lanemask_lt = __kmpc_impl_lanemask_lt ();
65+ __kmpc_impl_lanemask_t Liveness = __kmpc_impl_activemask ();
6666 uint32_t logical_lane_id = __kmpc_impl_popc (Liveness & lanemask_lt) * 2 ;
67- uint32_t lanemask_gt = __kmpc_impl_lanemask_gt ();
67+ __kmpc_impl_lanemask_t lanemask_gt = __kmpc_impl_lanemask_gt ();
6868 do {
69- Liveness = __ACTIVEMASK ();
69+ Liveness = __kmpc_impl_activemask ();
7070 remote_id = __kmpc_impl_ffs (Liveness & lanemask_gt);
7171 size = __kmpc_impl_popc (Liveness);
7272 logical_lane_id /= 2 ;
@@ -81,7 +81,7 @@ int32_t __kmpc_nvptx_simd_reduce_nowait(int32_t global_tid, int32_t num_vars,
8181 size_t reduce_size, void *reduce_data,
8282 kmp_ShuffleReductFctPtr shflFct,
8383 kmp_InterWarpCopyFctPtr cpyFct) {
84- uint32_t Liveness = __ACTIVEMASK ();
84+ __kmpc_impl_lanemask_t Liveness = __kmpc_impl_activemask ();
8585 if (Liveness == 0xffffffff ) {
8686 gpu_regular_warp_reduce (reduce_data, shflFct);
8787 return GetThreadIdInBlock () % WARPSIZE ==
@@ -142,7 +142,7 @@ static int32_t nvptx_parallel_reduce_nowait(
142142 }
143143 return BlockThreadId == 0 ;
144144#else
145- uint32_t Liveness = __ACTIVEMASK ();
145+ __kmpc_impl_lanemask_t Liveness = __kmpc_impl_activemask ();
146146 if (Liveness == 0xffffffff ) // Full warp
147147 gpu_regular_warp_reduce (reduce_data, shflFct);
148148 else if (!(Liveness & (Liveness + 1 ))) // Partial warp but contiguous lanes
@@ -317,7 +317,7 @@ static int32_t nvptx_teams_reduce_nowait(int32_t global_tid, int32_t num_vars,
317317 ldFct (reduce_data, scratchpad, i, NumTeams, /* Load and reduce*/ 1 );
318318
319319 // Reduce across warps to the warp master.
320- uint32_t Liveness = __ACTIVEMASK ();
320+ __kmpc_impl_lanemask_t Liveness = __kmpc_impl_activemask ();
321321 if (Liveness == 0xffffffff ) // Full warp
322322 gpu_regular_warp_reduce (reduce_data, shflFct);
323323 else // Partial warp but contiguous lanes
0 commit comments