Skip to content

Commit

Permalink
Apply deprecation markings uniformly
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpowelsnl committed Jan 30, 2024
1 parent 853313e commit 1f52f07
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/src/HPX/Kokkos_HPX.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down Expand Up @@ -1293,10 +1291,10 @@ class ParallelScan<FunctorType, Kokkos::RangePolicy<Traits...>,
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
Expand Down

0 comments on commit 1f52f07

Please sign in to comment.