Opm::cuistl::CuOwnerOverlapCopy< field_type, block_size, OwnerOverlapCopyCommunicationType > Class Template Reference CUDA compatiable variant of Dune::OwnerOverlapCopyCommunication. More...
Detailed Descriptiontemplate<class field_type, int block_size, class OwnerOverlapCopyCommunicationType> class Opm::cuistl::CuOwnerOverlapCopy< field_type, block_size, OwnerOverlapCopyCommunicationType > 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 CuVectors
Member Typedef Documentation◆ X
template<class field_type , int block_size, class OwnerOverlapCopyCommunicationType >
Constructor & Destructor Documentation◆ CuOwnerOverlapCopy()
template<class field_type , int block_size, class OwnerOverlapCopyCommunicationType >
Member Function Documentation◆ copyOwnerToAll()
template<class field_type , int block_size, class OwnerOverlapCopyCommunicationType >
copyOwnerToAll will copy source to the CPU, then call OwnerOverlapCopyCommunicationType::copyOwnerToAll on the copied data, and copy the result back to the GPU
◆ dot()
template<class field_type , int block_size, class OwnerOverlapCopyCommunicationType >
dot will carry out the dot product between x and y on the owned indices, then sum up the result across MPI processes.
Referenced by Opm::cuistl::CuOwnerOverlapCopy< field_type, block_size, OwnerOverlapCopyCommunicationType >::norm(). ◆ norm()
template<class field_type , int block_size, class OwnerOverlapCopyCommunicationType >
norm computes the l^2-norm of x across processes. This will compute the dot product of x with itself on owned indices, then sum the result across process and return the square root of the sum. References Opm::cuistl::CuOwnerOverlapCopy< field_type, block_size, OwnerOverlapCopyCommunicationType >::dot(). ◆ project()
template<class field_type , int block_size, class OwnerOverlapCopyCommunicationType >
project will project x to the owned subspace For each component i which is not owned, x_i will be set to 0
The documentation for this class was generated from the following file: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||