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

num_devices: returns the number of devices available to Kokkos

device_id: returns the id of the device used by Kokkos

initialize: initializes the Kokkos execution environment

InitializationSettings: settings for initializing Kokkos