vecmem 1.18.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
vecmem::hip::managed_memory_resource Class Referencefinal

Memory resource that wraps managed HIP allocation. More...

#include <vecmem/memory/hip/managed_memory_resource.hpp>

Inheritance diagram for vecmem::hip::managed_memory_resource:

Public Member Functions

VECMEM_HIP_EXPORT managed_memory_resource ()
 Default constructor.
 
VECMEM_HIP_EXPORT ~managed_memory_resource () noexcept override
 Destructor.
 

Private Member Functions

Function(s) implementing @c vecmem::memory_resource
VECMEM_HIP_EXPORT voiddo_allocate (std::size_t, std::size_t) override
 Allocate HIP managed memory.
 
VECMEM_HIP_EXPORT void do_deallocate (void *p, std::size_t, std::size_t) override
 De-allocate a previously allocated managed memory block.
 
VECMEM_HIP_EXPORT bool do_is_equal (const memory_resource &other) const noexcept override
 Compares *this for equality with other.
 

Detailed Description

Memory resource that wraps managed HIP allocation.

This is an allocator-type memory resource that allocates managed HIP memory, which is accessible directly to devices as well as to the host.


The documentation for this class was generated from the following files: