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_FUNCTION KOKKOS_FUNCTION virtual 40 #ifdef KOKKOS_ENABLE_HIP 41 #define MemSpace ::Kokkos::HIPSpace 42 #define ExecSpace ::Kokkos::HIP 43 #define KOKKOS_VIRTUAL_FUNCTION KOKKOS_FUNCTION virtual 45 #ifdef KOKKOS_ENABLE_SYCL 46 #define MemSpace ::Kokkos::SYCLDeviceUSMSpace 47 #define ExecSpace ::Kokkos::SYCL 48 #define KOKKOS_VIRTUAL_FUNCTION \ 49 KOKKOS_FUNCTION SYCL_EXT_ONEAPI_FUNCTION_PROPERTY( \ 50 sycl::ext::oneapi::experimental::indirectly_callable) virtual 53 #define MemSpace ::Kokkos::HostSpace 54 #define ExecSpace ::Kokkos::OpenMP 55 #undef KOKKOS_FUNCTION 56 #define KOKKOS_FUNCTION 57 #undef KOKKOS_INLINE_FUNCTION 58 #define KOKKOS_INLINE_FUNCTION inline 59 #define KOKKOS_VIRTUAL_FUNCTION KOKKOS_FUNCTION virtual 60 #undef KOKKOS_IF_ON_HOST 61 #define KOKKOS_IF_ON_HOST(code) \ 62 if (!omp_get_level()) \ 66 #undef KOKKOS_IF_ON_DEVICE 67 #define KOKKOS_IF_ON_DEVICE(code) \ 68 if (omp_get_level()) \ constexpr unsigned int MAX_TAG
Maximum tag ID.
constexpr unsigned int MAX_CACHED_DOF
Maximum number of DOFs to cache during residual and Jacobian computation.