Opm::gpuistl::PinnedMemoryHolder< T > Class Template Reference RAII class for pinning host memory using cudaHostRegister. More...
Inheritance diagram for Opm::gpuistl::PinnedMemoryHolder< T >:
![]()
Detailed Descriptiontemplate<class T> class Opm::gpuistl::PinnedMemoryHolder< T > RAII class for pinning host memory using cudaHostRegister. This class registers a given host memory region in its constructor and unregisters it in its destructor. This is useful for speeding up asynchronous memory transfers between host and GPU.
Constructor & Destructor Documentation◆ PinnedMemoryHolder() [1/3]
template<class T >
Constructs a PinnedMemoryHolder and registers the host memory.
References Opm::gpuistl::PinnedMemoryHolder< T >::numberOfElements(), and OPM_GPU_SAFE_CALL. ◆ ~PinnedMemoryHolder()
template<class T >
Destructor. Unregisters the host memory. References OPM_GPU_SAFE_CALL. ◆ PinnedMemoryHolder() [2/3]
template<class T >
◆ PinnedMemoryHolder() [3/3]
template<class T >
Member Function Documentation◆ get()
template<class T >
Gets the pointer to the pinned memory.
◆ numberOfElements()
template<class T >
Gets the number of elements in the pinned memory region.
Referenced by Opm::gpuistl::PinnedMemoryHolder< T >::PinnedMemoryHolder(). ◆ operator=() [1/2]
template<class T >
◆ operator=() [2/2]
template<class T >
References OPM_GPU_SAFE_CALL. The documentation for this class was generated from the following file: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||