sandialabs / compadre

Compadre (Compatible Particle Discretization and Remap)
Other
22 stars 6 forks source link

Refactor KokkosParser class #289

Closed kuberry closed 2 years ago

kuberry commented 2 years ago

KokkosParser was created before Kokkos::ScopeGuard existed. With the development of Kokkos::ScopeGuard, KokkosParser became redundant. This PR updated KokkosParser to use Kokkos::ScopeGuard to achieve the same objective of initializing Kokkos once despite many calls to initialize, and only finalizing once despite many calls to finalize.