From 7f08b95a899116d01ac73d8f13f1c1ceeb14a953 Mon Sep 17 00:00:00 2001 From: Damien L-G Date: Fri, 20 Jan 2023 15:35:53 -0600 Subject: [PATCH 1/2] Desul atomics cleanup remove unused Impl::eliminate_warning_for_lock_array() --- tpls/desul/include/desul/atomics/Lock_Array_CUDA.hpp | 1 - tpls/desul/include/desul/atomics/Lock_Array_HIP.hpp | 1 - 2 files changed, 2 deletions(-) diff --git a/tpls/desul/include/desul/atomics/Lock_Array_CUDA.hpp b/tpls/desul/include/desul/atomics/Lock_Array_CUDA.hpp index e0e4e129ac..6984ae34a7 100644 --- a/tpls/desul/include/desul/atomics/Lock_Array_CUDA.hpp +++ b/tpls/desul/include/desul/atomics/Lock_Array_CUDA.hpp @@ -128,7 +128,6 @@ namespace desul { namespace Impl { namespace { static int lock_array_copied = 0; -inline int eliminate_warning_for_lock_array() { return lock_array_copied; } } // namespace #ifdef __CUDACC_RDC__ diff --git a/tpls/desul/include/desul/atomics/Lock_Array_HIP.hpp b/tpls/desul/include/desul/atomics/Lock_Array_HIP.hpp index 1ab9544eb4..1ce7673225 100644 --- a/tpls/desul/include/desul/atomics/Lock_Array_HIP.hpp +++ b/tpls/desul/include/desul/atomics/Lock_Array_HIP.hpp @@ -131,7 +131,6 @@ namespace desul { namespace Impl { namespace { static int lock_array_copied = 0; -inline int eliminate_warning_for_lock_array() { return lock_array_copied; } } // namespace } // namespace Impl } // namespace desul From 9f09e2b1700a130743559d2bd0c300aab951d084 Mon Sep 17 00:00:00 2001 From: Damien L-G Date: Fri, 20 Jan 2023 15:36:46 -0600 Subject: [PATCH 2/2] Drop unused Kokkos::Impl::eliminate_warning_for_lock_array CUDA/HIP functions --- core/src/Cuda/Kokkos_Cuda_Locks.hpp | 1 - core/src/HIP/Kokkos_HIP_Locks.hpp | 1 - 2 files changed, 2 deletions(-) diff --git a/core/src/Cuda/Kokkos_Cuda_Locks.hpp b/core/src/Cuda/Kokkos_Cuda_Locks.hpp index 3916ae2c53..4c17997fe2 100644 --- a/core/src/Cuda/Kokkos_Cuda_Locks.hpp +++ b/core/src/Cuda/Kokkos_Cuda_Locks.hpp @@ -119,7 +119,6 @@ namespace Kokkos { namespace Impl { namespace { static int lock_array_copied = 0; -inline int eliminate_warning_for_lock_array() { return lock_array_copied; } } // namespace #ifdef KOKKOS_ENABLE_CUDA_RELOCATABLE_DEVICE_CODE diff --git a/core/src/HIP/Kokkos_HIP_Locks.hpp b/core/src/HIP/Kokkos_HIP_Locks.hpp index fbed4afd3f..0d46d74074 100644 --- a/core/src/HIP/Kokkos_HIP_Locks.hpp +++ b/core/src/HIP/Kokkos_HIP_Locks.hpp @@ -111,7 +111,6 @@ namespace Kokkos { namespace Impl { namespace { static int lock_array_copied = 0; -inline int eliminate_warning_for_lock_array() { return lock_array_copied; } } // namespace } // namespace Impl } // namespace Kokkos