Skip to content

Commit 225ea27

Browse files
committed
Remove HPX Scope Guard as now obsolete
1 parent 96fa596 commit 225ea27

2 files changed

Lines changed: 1 addition & 32 deletions

File tree

include/plssvm/backends/HPX/detail/utility.hpp

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -33,34 +33,4 @@ using boost::atomic_ref;
3333
*/
3434
[[nodiscard]] std::string get_hpx_version();
3535

36-
/**
37-
* @brief Start the runtime of the HPX backend.
38-
*/
39-
void start_hpx_runtime();
40-
41-
/**
42-
* @brief Stop the runtime of the HPX backend.
43-
*/
44-
void stop_hpx_runtime();
45-
46-
/**
47-
* @brief Scope Guard that leverages RAII to start and correctly teardown the HPX runtime even in case of exceptions.
48-
*/
49-
struct scope_guard {
50-
/**
51-
* @brief Scope Guard constructor that starts the runtime of the HPX backend.
52-
*/
53-
scope_guard() {
54-
start_hpx_runtime();
55-
}
56-
57-
/**
58-
* @brief Scope Guard destructor that stops the runtime of the HPX backend.
59-
*/
60-
~scope_guard() {
61-
stop_hpx_runtime();
62-
}
63-
};
64-
} // namespace plssvm::hpx::detail
65-
6636
#endif // PLSSVM_BACKENDS_HPX_DETAIL_UTILITY_HPP_

include/plssvm/environment.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
#include "plssvm/detail/utility.hpp" // plssvm::detail::contains
1919

2020
#if defined(PLSSVM_HAS_HPX_BACKEND)
21-
#include "hpx/runtime.hpp" // ::hpx::{is_running, is_stopped}
22-
21+
#include <hpx/runtime.hpp> // ::hpx::{is_running, is_stopped}
2322
#include <hpx/execution.hpp> // ::hpx::post
2423
#include <hpx/hpx_start.hpp> // ::hpx::{start, stop, finalize}
2524
#endif

0 commit comments

Comments
 (0)