20#ifndef WELLCONTRIBUTIONS_OPENCL_HEADER_INCLUDED
21#define WELLCONTRIBUTIONS_OPENCL_HEADER_INCLUDED
23#include <opm/simulators/linalg/bda/WellContributions.hpp>
25#include <opm/simulators/linalg/bda/opencl/opencl.hpp>
26#include <opm/simulators/linalg/bda/opencl/openclKernels.hpp>
38 void setOpenCLEnv(cl::Context *context_, cl::CommandQueue *queue_);
40 void apply_stdwells(cl::Buffer d_x, cl::Buffer d_y);
41 void apply_mswells(cl::Buffer d_x, cl::Buffer d_y);
42 void apply(cl::Buffer d_x, cl::Buffer d_y);
51 Scalar* values,
unsigned int val_size)
override;
54 cl::CommandQueue* queue;
55 std::vector<cl::Event> events;
57 std::unique_ptr<cl::Buffer> d_Cnnzs_ocl, d_Dnnzs_ocl, d_Bnnzs_ocl;
58 std::unique_ptr<cl::Buffer> d_Ccols_ocl, d_Bcols_ocl;
59 std::unique_ptr<cl::Buffer> d_val_pointers_ocl;
61 std::vector<Scalar> h_x;
62 std::vector<Scalar> h_y;
Definition openclWellContributions.hpp:36
void APIaddMatrix(MatrixType type, int *colIndices, Scalar *values, unsigned int val_size) override
Api specific upload of matrix.
Definition openclWellContributions.cpp:92
void APIalloc() override
Allocate memory for the StandardWells.
Definition openclWellContributions.cpp:155
This class serves to eliminate the need to include the WellContributions into the matrix (with –matri...
Definition StandardWellEval.hpp:41
MatrixType
StandardWell has C, D and B matrices that need to be copied.
Definition WellContributions.hpp:59
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilboundaryratevector.hh:37