Closed dssgabriel closed 3 months ago
I think it would be nice to have
KokkosComm::ScopeGuard
that is similar toKokkos::ScopeGuard
Should this and other utilities (e.g. is_initialized
) be added here or in another PR?
Should this and other utilities (e.g.
is_initialized
) be added here or in another PR?
Easier in a different PR to keep the PR size small.
Last thing we need to think about is: do we abort if we failed to get the desired thread support level?
It was decided not to continue and to provide stubs for users to initialize correctly.
This PR implements a very basic initialization and finalization for KokkosComm (closes #82).
Users should now only call
KokkosComm::initialize
andKokkosComm::finalize
, no more manual MPI and Kokkos initialization. Using these functions ensures MPI is correctly initialized/finalized (with multiple thread support) before Kokkos is initialized/finalized.To-do before merging:
KokkosComm
when initializing/finalizing a Kokkos + MPI application