add lammps_kokos_finalize() support to various LAMMPS wrappers and document
This commit is contained in:
@ -334,8 +334,8 @@ The MPI standard requires that any MPI application calls
|
||||
do any MPI calls, MPI is still initialized internally to avoid errors
|
||||
accessing any MPI functions. This function should then be called right
|
||||
before exiting the program to wait until all (parallel) tasks are
|
||||
completed and then MPI is cleanly shut down. After this function no
|
||||
more MPI calls may be made.
|
||||
completed and then MPI is cleanly shut down. After calling this
|
||||
function no more MPI calls may be made.
|
||||
|
||||
.. versionadded:: 18Sep2020
|
||||
|
||||
@ -354,6 +354,23 @@ void lammps_mpi_finalize()
|
||||
}
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
/** Shut down the Kokkos library environment.
|
||||
*
|
||||
\verbatim embed:rst
|
||||
|
||||
The Kokkos library may only be initialized once during the execution of
|
||||
a process. This is done automatically the first time Kokkos
|
||||
functionality is used. This requires that the Kokkos environment
|
||||
must be explicitly shut down after any LAMMPS instance using it is
|
||||
closed (to release associated resources).
|
||||
After calling this function no Kokkos functionality may be used.
|
||||
|
||||
.. versionadded:: TBD
|
||||
|
||||
\endverbatim */
|
||||
|
||||
void lammps_kokkos_finalize()
|
||||
{
|
||||
KokkosLMP::finalize();
|
||||
|
||||
Reference in New Issue
Block a user