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 39 #ifdef KOKKOS_ENABLE_HIP 40 #define MemSpace ::Kokkos::HIPSpace 41 #define ExecSpace ::Kokkos::HIP 43 #ifdef KOKKOS_ENABLE_SYCL 44 #define MemSpace ::Kokkos::SYCLDeviceUSMSpace 45 #define ExecSpace ::Kokkos::SYCL 48 #define MemSpace ::Kokkos::HostSpace 49 #define ExecSpace ::Kokkos::OpenMP 50 #undef KOKKOS_FUNCTION 51 #define KOKKOS_FUNCTION 52 #undef KOKKOS_INLINE_FUNCTION 53 #define KOKKOS_INLINE_FUNCTION inline 54 #undef KOKKOS_IF_ON_HOST 55 #define KOKKOS_IF_ON_HOST(code) \ 56 if (!omp_get_level()) \ 60 #undef KOKKOS_IF_ON_DEVICE 61 #define KOKKOS_IF_ON_DEVICE(code) \ 62 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.
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...