12#include "vecmem/memory/memory_resource.hpp"
13#include "vecmem/vecmem_hip_export.hpp"
An allocator class that wraps a memory resource.
Definition allocator.hpp:37
Memory resource for HIP shared host/device memory.
Definition host_memory_resource.hpp:18
VECMEM_HIP_EXPORT void do_deallocate(void *ptr, std::size_t nbytes, std::size_t alignment) override
Function performing the memory de-allocation.
Definition host_memory_resource.cpp:40
VECMEM_HIP_EXPORT host_memory_resource()
Default constructor.
VECMEM_HIP_EXPORT ~host_memory_resource() noexcept override
Destructor.
VECMEM_HIP_EXPORT bool do_is_equal(const memory_resource &other) const noexcept override
Function comparing two memory resource instances.
Definition host_memory_resource.cpp:53
VECMEM_HIP_EXPORT void * do_allocate(std::size_t nbytes, std::size_t alignment) override
Function performing the memory allocation.
Definition host_memory_resource.cpp:27
Namespace holding types that work on/with ROCm/HIP.
Definition hip_device_atomic_ref.hpp:25