Make Kokkos init/finalize calls safer

This commit is contained in:
Stan Gerald Moore
2021-06-24 13:25:35 -06:00
parent ddac9c21dc
commit 2d5e8f050a
6 changed files with 39 additions and 15 deletions

View File

@ -356,7 +356,7 @@ void lammps_mpi_finalize()
void lammps_kokkos_finalize()
{
if (Kokkos::is_initialized()) Kokkos::finalize();
KokkosLMP::finalize();
}
// ----------------------------------------------------------------------