17 #ifndef OPM_IS_GPU_OPERATOR_HEADER 18 #define OPM_IS_GPU_OPERATOR_HEADER 20 #include <type_traits> 22 #if HAVE_CUDA // Avoid including GpuVector.hpp if CUDA 24 #include <opm/simulators/linalg/gpuistl/GpuVector.hpp> 42 static constexpr
bool value
43 = std::is_same_v<typename T::domain_type, Opm::gpuistl::GpuVector<typename T::field_type>>;
46 static constexpr
bool value =
false;
67 static constexpr
bool value
68 = std::is_same_v<T, Opm::gpuistl::GpuSparseMatrix<typename T::field_type>>
69 || std::is_same_v<T, Opm::gpuistl::GpuSparseMatrixWrapper<typename T::field_type>>
70 || std::is_same_v<T, Opm::gpuistl::GpuSparseMatrixWrapper<typename T::field_type, true>>
71 || std::is_same_v<T, Opm::gpuistl::GpuSparseMatrixGeneric<typename T::field_type>>;
74 static constexpr
bool value =
false;
83 #endif // OPM_IS_GPU_OPERATOR_HEADER This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: blackoilbioeffectsmodules.hh:45
Check if a given operator is a GPU matrix.
Definition: is_gpu_operator.hpp:63
Check if a given operator is a GPU operator.
Definition: is_gpu_operator.hpp:37