xref: /petsc/include/petsc_kokkos.hpp (revision ea9ee2c1d69c9e3cf6d2b3c8a205b9880d3dba39)
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