Skip to content

Commit 5bd2828

Browse files
committed
Correctly implement is_initialization_necessary for HPX and Kokkos.
1 parent f8ae480 commit 5bd2828

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/plssvm/environment.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ template <auto is_initialized_function, auto is_finalized_function>
189189
constexpr bool is_initialization_necessary([[maybe_unused]] const backend_type backend) {
190190
// Note: must be implemented for the backends that need environmental setup
191191
// currently false for all available backends
192-
return false;
192+
return backend == backend_type::hpx || backend == backend_type::kokkos;
193193
}
194194

195195
//****************************************************************************//

0 commit comments

Comments
 (0)