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