Skip to content

Commit

Permalink
Conditionally use hpx::post instead of hpx::apply based on HPX version
Browse files Browse the repository at this point in the history
  • Loading branch information
msimberg committed May 15, 2023
1 parent c62a42e commit d13cc09
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 d13cc09

Please sign in to comment.