|
opm-simulators
|
CUDA compatiable variant of Dune::OwnerOverlapCopyCommunication. More...
#include <GpuOwnerOverlapCopy.hpp>
Public Types | |
| using | X = GpuVector<field_type> |
Public Member Functions | |
| GpuOwnerOverlapCopy (std::shared_ptr< GPUSender< field_type, OwnerOverlapCopyCommunicationType > > sender) | |
| void | copyOwnerToAll (const X &source, X &dest) const |
| void | dot (const X &x, const X &y, field_type &output) const |
| field_type | norm (const X &x) const |
| void | project (X &x) const |
| const ::Dune::Communication< MPI_Comm > & | communicator () const |
| communicator returns the MPI communicator used by this GpuOwnerOverlapCopy | |
CUDA compatiable variant of Dune::OwnerOverlapCopyCommunication.
This class can essentially be seen as an adapter around Dune::OwnerOverlapCopyCommunication, and should work as a Dune::OwnerOverlapCopyCommunication on GpuVectors
| field_type | should be a field_type supported by GpuVector (double, float) |
| OwnerOverlapCopyCommunicationType | should mimic Dune::OwnerOverlapCopyCommunication. |
|
inline |
communicator returns the MPI communicator used by this GpuOwnerOverlapCopy