xref: /petsc/include/petsc_kokkos.hpp (revision 09b68a49ed2854d1e4985cc2aa6af33c7c4e69b3)
1 #pragma once
2 
3 #include <Kokkos_Core.hpp>
4 
5 /* SUBMANSEC = Sys */
6 
7 extern Kokkos::DefaultExecutionSpace *PetscKokkosExecutionSpacePtr;
8 
9 /*MC
10   PetscGetKokkosExecutionSpace - Return the Kokkos execution space that PETSc is using
11 
12   Level: beginner
13 
14 M*/
PetscGetKokkosExecutionSpace(void)15 inline Kokkos::DefaultExecutionSpace PetscGetKokkosExecutionSpace(void)
16 {
17   return *PetscKokkosExecutionSpacePtr;
18 }
19