Actual source code: petsc_kokkos.hpp

  1: #pragma once

  3: #include <Kokkos_Core.hpp>

  5: /* SUBMANSEC = Sys */

  7: extern Kokkos::DefaultExecutionSpace *PetscKokkosExecutionSpacePtr;

  9: /*MC
 10:   PetscGetKokkosExecutionSpace - Return the Kokkos execution space that petsc is using

 12:   Level: beginner

 14: M*/
 15: inline Kokkos::DefaultExecutionSpace &PetscGetKokkosExecutionSpace(void)
 16: {
 17:   return *PetscKokkosExecutionSpacePtr;
 18: }