1: #ifndef PETSC_KOKKOS_HPP
2: #define PETSC_KOKKOS_HPP
4: #include <Kokkos_Core.hpp>
6: /* SUBMANSEC = Sys */
8: extern Kokkos::DefaultExecutionSpace *PetscKokkosExecutionSpacePtr;
10: /*MC
11: PetscGetKokkosExecutionSpace - Return the Kokkos execution space that petsc is using
13: Level: beginner
15: M*/
16: inline Kokkos::DefaultExecutionSpace &PetscGetKokkosExecutionSpace(void)
17: {
18: return *PetscKokkosExecutionSpacePtr;
19: }
21: #endif