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