From 5937434677afc5be47977f8d340ff499589f2ef3 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Sat, 11 Jul 2020 11:57:17 -0500 Subject: [PATCH] [OpenMP] Silence unused symbol warning with proper ifdefs --- openmp/libomptarget/deviceRTLs/common/src/reduction.cu | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openmp/libomptarget/deviceRTLs/common/src/reduction.cu b/openmp/libomptarget/deviceRTLs/common/src/reduction.cu index 0230fa2..7604f024 100644 --- a/openmp/libomptarget/deviceRTLs/common/src/reduction.cu +++ b/openmp/libomptarget/deviceRTLs/common/src/reduction.cu @@ -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; @@ -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( -- 2.7.4