Initialize and FinalizeΒΆ

The following functions and classes manage the Kokkos execution environment environment and resource cleanup:

initialize

Initializes Kokkos internal objects and all enabled Kokkos backends.

finalize

Shutdown Kokkos execution environment and release internally managed resources.

InitializationSettings

A class representing control knobs of the runtime behavior (such as thread counts or device ID).

ScopeGuard

RAII-based approach to ensure initialization and finalization are handled correctly.

push_finalize_hook

Register a function to be called on finalize() invocation.

is_initialized and is_finalized

Query initialization status of Kokkos