diff options
author | Johannes Doerfert <johannes@jdoerfert.de> | 2020-07-11 19:57:17 +0300 |
---|---|---|
committer | Johannes Doerfert <johannes@jdoerfert.de> | 2020-07-11 19:57:42 +0300 |
commit | 5937434677afc5be47977f8d340ff499589f2ef3 (patch) | |
tree | cb8b70dd51f397f3264b662d821f81ed4a167857 /openmp | |
parent | 5d2c3e031a6861b3e95673d0e238c09938dd9c0d (diff) |
[OpenMP] Silence unused symbol warning with proper ifdefs
Diffstat (limited to 'openmp')
-rw-r--r-- | openmp/libomptarget/deviceRTLs/common/src/reduction.cu | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/openmp/libomptarget/deviceRTLs/common/src/reduction.cu b/openmp/libomptarget/deviceRTLs/common/src/reduction.cu index 0230fa26ac10..7604f024eeb4 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( |