Skip to content

Commit

Permalink
Merge pull request #6133 from msimberg/hpx-post-apply-compat
Browse files Browse the repository at this point in the history
Silence HPX deprecation warning from HPX
  • Loading branch information
dalg24 authored May 15, 2023
2 parents 336473d + d13cc09 commit 766f00d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/HPX/Kokkos_HPX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,11 @@ void HPX::impl_finalize() {
if (m_hpx_initialized) {
hpx::runtime *rt = hpx::get_runtime_ptr();
if (rt != nullptr) {
#if HPX_VERSION_FULL >= 0x010900
hpx::post([]() { hpx::local::finalize(); });
#else
hpx::apply([]() { hpx::local::finalize(); });
#endif
hpx::local::stop();
} else {
Kokkos::abort(
Expand Down

0 comments on commit 766f00d

Please sign in to comment.