From 1f52f078c41d77490aef0459b9cc45189b3bca42 Mon Sep 17 00:00:00 2001 From: Amy Powell Date: Tue, 30 Jan 2024 13:54:55 -0700 Subject: [PATCH] Apply deprecation markings uniformly --- core/src/HPX/Kokkos_HPX.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/HPX/Kokkos_HPX.hpp b/core/src/HPX/Kokkos_HPX.hpp index a12ea5967f3..c15c6ac425a 100644 --- a/core/src/HPX/Kokkos_HPX.hpp +++ b/core/src/HPX/Kokkos_HPX.hpp @@ -223,9 +223,7 @@ class HPX { impl_not_in_parallel_scope &operator=(impl_not_in_parallel_scope const &) = delete; }; -#endif -#ifdef KOKKOS_ENABLE_DEPRECATED_CODE_4 KOKKOS_DEPRECATED static bool in_parallel(HPX const & = HPX()) noexcept { return impl_get_in_parallel(); } @@ -1293,10 +1291,10 @@ class ParallelScan, execute_chunk(range.begin(), range.end(), update_sum, false); { -#ifdef KOKKOS_ENABLE_DEPRECATED_CODE_4 // Since arrive_and_wait may yield and resume on another worker thread we // set in_parallel = false on the current thread before suspending and set // it again to true when we resume. +#ifdef KOKKOS_ENABLE_DEPRECATED_CODE_4 Kokkos::Experimental::HPX::impl_not_in_parallel_scope p; barrier.arrive_and_wait(); #else