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