12#ifndef MOOSE_KOKKOS_SCOPE
13#error Kokkos header was included in a source file which is not in the Kokkos compilation scope
18#define PETSC_SKIP_CXX_COMPLEX_FIX 1
21#include "Kokkos_Core.hpp"
22#include "Kokkos_StdAlgorithms.hpp"
31#include "MooseConfig.h"
34#ifdef MOOSE_ENABLE_KOKKOS_GPU
35#ifdef KOKKOS_ENABLE_CUDA
36#define MemSpace ::Kokkos::CudaSpace
37#define ExecSpace ::Kokkos::Cuda
38#define KOKKOS_VIRTUAL virtual
39#define KOKKOS_OVERRIDE override
41#ifdef KOKKOS_ENABLE_HIP
42#define MemSpace ::Kokkos::HIPSpace
43#define ExecSpace ::Kokkos::HIP
44#define KOKKOS_VIRTUAL virtual
45#define KOKKOS_OVERRIDE override
47#ifdef KOKKOS_ENABLE_SYCL
48#define MemSpace ::Kokkos::SYCLDeviceUSMSpace
49#define ExecSpace ::Kokkos::SYCL
51#define KOKKOS_OVERRIDE
54#define MemSpace ::Kokkos::HostSpace
55#define ExecSpace ::Kokkos::OpenMP
57#define KOKKOS_FUNCTION
58#undef KOKKOS_INLINE_FUNCTION
59#define KOKKOS_INLINE_FUNCTION inline
60#define KOKKOS_VIRTUAL virtual
61#define KOKKOS_OVERRIDE override
62#undef KOKKOS_IF_ON_HOST
63#define KOKKOS_IF_ON_HOST(code) \
64 if (!omp_get_level()) \
68#undef KOKKOS_IF_ON_DEVICE
69#define KOKKOS_IF_ON_DEVICE(code) \
70 if (omp_get_level()) \
constexpr unsigned int MAX_CACHED_DOF
Maximum number of DOFs to cache during residual and Jacobian computation.
constexpr unsigned int MAX_TAG
Maximum tag ID.