Opm::gpuistl::GPUSender< field_type, OwnerOverlapCopyCommunicationType > Class Template Referenceabstract GPUSender is a wrapper class for classes which will implement copOwnerToAll This is implemented with the intention of creating communicators with generic GPUSender To hide implementation that will either use GPU aware MPI or not. More...
Inheritance diagram for Opm::gpuistl::GPUSender< field_type, OwnerOverlapCopyCommunicationType >:
Detailed Descriptiontemplate<class field_type, class OwnerOverlapCopyCommunicationType> class Opm::gpuistl::GPUSender< field_type, OwnerOverlapCopyCommunicationType > GPUSender is a wrapper class for classes which will implement copOwnerToAll This is implemented with the intention of creating communicators with generic GPUSender To hide implementation that will either use GPU aware MPI or not.
Member Typedef Documentation◆ X
template<class field_type , class OwnerOverlapCopyCommunicationType >
Constructor & Destructor Documentation◆ GPUSender()
template<class field_type , class OwnerOverlapCopyCommunicationType >
Member Function Documentation◆ copyOwnerToAll()
template<class field_type , 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
Implemented in Opm::gpuistl::GPUObliviousMPISender< field_type, block_size, OwnerOverlapCopyCommunicationType >, and Opm::gpuistl::GPUAwareMPISender< field_type, block_size, OwnerOverlapCopyCommunicationType >. ◆ dot()
template<class field_type , 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.
References Opm::gpuistl::GPUSender< field_type, OwnerOverlapCopyCommunicationType >::initIndexSet(), Opm::gpuistl::GPUSender< field_type, OwnerOverlapCopyCommunicationType >::m_cpuOwnerOverlapCopy, Opm::gpuistl::GPUSender< field_type, OwnerOverlapCopyCommunicationType >::m_indicesOwner, and Opm::gpuistl::GPUSender< field_type, OwnerOverlapCopyCommunicationType >::m_initializedIndices. Referenced by Opm::gpuistl::GPUSender< field_type, OwnerOverlapCopyCommunicationType >::norm(). ◆ initIndexSet()
template<class field_type , class OwnerOverlapCopyCommunicationType >
◆ norm()
template<class field_type , 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::gpuistl::GPUSender< field_type, OwnerOverlapCopyCommunicationType >::dot(). ◆ project()
template<class field_type , 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
References Opm::gpuistl::GPUSender< field_type, OwnerOverlapCopyCommunicationType >::initIndexSet(), Opm::gpuistl::GPUSender< field_type, OwnerOverlapCopyCommunicationType >::m_indicesCopy, and Opm::gpuistl::GPUSender< field_type, OwnerOverlapCopyCommunicationType >::m_initializedIndices. Member Data Documentation◆ m_cpuOwnerOverlapCopy
template<class field_type , class OwnerOverlapCopyCommunicationType >
Referenced by Opm::gpuistl::GPUObliviousMPISender< field_type, block_size, OwnerOverlapCopyCommunicationType >::copyOwnerToAll(), Opm::gpuistl::GPUAwareMPISender< field_type, block_size, OwnerOverlapCopyCommunicationType >::copyOwnerToAll(), and Opm::gpuistl::GPUSender< field_type, OwnerOverlapCopyCommunicationType >::dot(). ◆ m_indicesCopy
template<class field_type , class OwnerOverlapCopyCommunicationType >
◆ m_indicesOwner
template<class field_type , class OwnerOverlapCopyCommunicationType >
◆ m_initializedIndices
template<class field_type , class OwnerOverlapCopyCommunicationType >
The documentation for this class was generated from the following file: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||