17#ifndef OPM_IS_GPU_OPERATOR_HEADER
18#define OPM_IS_GPU_OPERATOR_HEADER
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;
51static constexpr bool is_gpu_operator_v = is_gpu_operator<T>::value;
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;
79 static constexpr bool is_gpu_matrix_v = is_gpu_matrix<T>::value;
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:64
Check if a given operator is a GPU operator.
Definition is_gpu_operator.hpp:38