Skip to content

Commit

Permalink
[OpenMP] Silence unused symbol warning with proper ifdefs
Browse files Browse the repository at this point in the history
  • Loading branch information
jdoerfert committed Jul 11, 2020
1 parent 5d2c3e0 commit 5937434
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openmp/libomptarget/deviceRTLs/common/src/reduction.cu
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ INLINE static void gpu_irregular_warp_reduce(void *reduce_data,
}
}

#if !defined(__CUDA_ARCH__) || __CUDA_ARCH__ < 700
INLINE static uint32_t
gpu_irregular_simd_reduce(void *reduce_data, kmp_ShuffleReductFctPtr shflFct) {
uint32_t size, remote_id, physical_lane_id;
Expand All @@ -72,6 +73,7 @@ gpu_irregular_simd_reduce(void *reduce_data, kmp_ShuffleReductFctPtr shflFct) {
} while (logical_lane_id % 2 == 0 && size > 1);
return (logical_lane_id == 0);
}
#endif

INLINE
static int32_t nvptx_parallel_reduce_nowait(
Expand Down

0 comments on commit 5937434

Please sign in to comment.