KokkosExecutionSpace
KokkosExecutionSpace is the execution-space abstraction in the Kokkos library that represents the backend on which parallel work is executed. It models where and how kernels run, independent of the data they operate on. An ExecutionSpace corresponds to a specific backend such as Serial, OpenMP, Threads, CUDA, HIP, or SYCL, enabling performance portability across diverse hardware without changing the core algorithms.
In typical use, kernels are launched via parallel_for, parallel_reduce, or parallel_scan with a policy that specifies
The design allows the same code to run on different architectures by simply selecting a different ExecutionSpace,
Kokkos provides a set of predefined ExecutionSpace types and mechanisms to customize execution and memory configuration.