From 5d85927599c3b5e4ac5652d3a7f27a5ee327d518 Mon Sep 17 00:00:00 2001 From: Amy Powell Date: Tue, 30 Jan 2024 15:17:24 -0700 Subject: [PATCH] Put deprecation markings around braced clauses --- core/src/HPX/Kokkos_HPX.hpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/core/src/HPX/Kokkos_HPX.hpp b/core/src/HPX/Kokkos_HPX.hpp index c15c6ac425a..e444f746e7a 100644 --- a/core/src/HPX/Kokkos_HPX.hpp +++ b/core/src/HPX/Kokkos_HPX.hpp @@ -1290,17 +1290,17 @@ class ParallelScan, const WorkRange range(m_policy, t, num_worker_threads); 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 - barrier.arrive_and_wait(); + barrier.arrive_and_wait(); #endif - } if (t == 0) { final_reducer.init(reinterpret_cast( @@ -1322,17 +1322,17 @@ class ParallelScan, } } +#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 - barrier.arrive_and_wait(); + barrier.arrive_and_wait(); #endif - } reference_type update_base = Analysis::Reducer::reference(reinterpret_cast( @@ -1413,17 +1413,17 @@ class ParallelScanWithTotal, const WorkRange range(m_policy, t, num_worker_threads); 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 - barrier.arrive_and_wait(); + barrier.arrive_and_wait(); #endif - } if (t == 0) { final_reducer.init(reinterpret_cast( @@ -1445,17 +1445,17 @@ class ParallelScanWithTotal, } } +#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 - barrier.arrive_and_wait(); + barrier.arrive_and_wait(); #endif - } reference_type update_base = Analysis::Reducer::reference(reinterpret_cast(