File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed
Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -228,6 +228,7 @@ inline void finalize_backend([[maybe_unused]] const backend_type backend) {
228228#if defined(PLSSVM_HAS_HPX_BACKEND)
229229 if (backend == backend_type::hpx) {
230230 ::hpx::post ([] { ::hpx::finalize (); });
231+ ::hpx::stop ();
231232 }
232233#endif
233234}
Original file line number Diff line number Diff line change @@ -51,15 +51,10 @@ void ensure_finalization() {
5151int main (int argc, char **argv) {
5252 ::testing::InitGoogleTest (&argc, argv);
5353
54- #if defined(PLSSVM_HAS_HPX_BACKEND)
55- // initialize environments
56- plssvm::environment::initialize ();
57- #else
5854 // initialize environments and manage lifetime with Scope Guard
5955 const plssvm::environment::scope_guard environment_guard{};
6056 // Note: necessary for Kokkos::SYCL
6157 [[maybe_unused]] const int ret = std::atexit (ensure_finalization);
62- #endif
6358
6459 // prevent problems with fork() in the presence of multiple threads
6560 // https://github.com/google/googletest/blob/main/docs/advanced.md#death-tests-and-threads
You can’t perform that action at this time.
0 commit comments