PinnedMemoryHolder.hpp
Go to the documentation of this file.
56 PinnedMemoryHolder(T* ptr, std::size_t numberOfElements, unsigned int flags = cudaHostRegisterDefault)
RAII class for pinning host memory using cudaHostRegister. Definition: PinnedMemoryHolder.hpp:46 T * get() const Gets the pointer to the pinned memory. Definition: PinnedMemoryHolder.hpp:111 PinnedMemoryHolder(T *ptr, std::size_t numberOfElements, unsigned int flags=cudaHostRegisterDefault) Constructs a PinnedMemoryHolder and registers the host memory. Definition: PinnedMemoryHolder.hpp:56 PinnedMemoryHolder(const PinnedMemoryHolder &)=delete ~PinnedMemoryHolder() Destructor. Unregisters the host memory. Definition: PinnedMemoryHolder.hpp:69 PinnedMemoryHolder & operator=(PinnedMemoryHolder &&other) noexcept Definition: PinnedMemoryHolder.hpp:88 PinnedMemoryHolder & operator=(const PinnedMemoryHolder &)=delete PinnedMemoryHolder(PinnedMemoryHolder &&other) noexcept Definition: PinnedMemoryHolder.hpp:80 std::size_t numberOfElements() const Gets the number of elements in the pinned memory region. Definition: PinnedMemoryHolder.hpp:120 #define OPM_GPU_SAFE_CALL(expression) OPM_GPU_SAFE_CALL checks the return type of the GPU expression (function call) and throws an exceptio... Definition: gpu_safe_call.hpp:150 Definition: blackoilboundaryratevector.hh:39 |