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.
KokkosParser
was created beforeKokkos::ScopeGuard
existed. With the development ofKokkos::ScopeGuard
,KokkosParser
became redundant. This PR updatedKokkosParser
to useKokkos::ScopeGuard
to achieve the same objective of initializing Kokkos once despite many calls to initialize, and only finalizing once despite many calls to finalize.