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 25 #include <opm/simulators/linalg/gpuistl_hip/GpuVector.hpp> 27 #include <opm/simulators/linalg/gpuistl/GpuVector.hpp> 46 static constexpr
bool value
47 = std::is_same_v<typename T::domain_type, Opm::gpuistl::GpuVector<typename T::field_type>>;
50 static constexpr
bool value =
false;
71 static constexpr
bool value
72 = std::is_same_v<T, Opm::gpuistl::GpuSparseMatrix<typename T::field_type>>
73 || std::is_same_v<T, Opm::gpuistl::GpuSparseMatrixWrapper<typename T::field_type>>
74 || std::is_same_v<T, Opm::gpuistl::GpuSparseMatrixWrapper<typename T::field_type, true>>
75 || std::is_same_v<T, Opm::gpuistl::GpuSparseMatrixGeneric<typename T::field_type>>;
78 static constexpr
bool value =
false;
87 #endif // OPM_IS_GPU_OPERATOR_HEADER Structs needed for tpfalinearizer and its gpuparams struct extracted to be defined in one place that ...
Definition: blackoilbioeffectsmodules.hh:45
Check if a given operator is a GPU matrix.
Definition: is_gpu_operator.hpp:67
Check if a given operator is a GPU operator.
Definition: is_gpu_operator.hpp:41