Kokkos::num_threads#
Defined in header <Kokkos_Core.hpp>
[[nodiscard]] int num_threads() noexcept; // (since 4.1)
Returns the number of concurrent threads that are used by DefaultHostExecutionSpace.
See also
device_id: returns the id of the device used by Kokkos
initialize: initializes the Kokkos execution environment
InitializationSettings: settings for initializing Kokkos