12#include "vecmem/memory/memory_resource.hpp"
13#include "vecmem/vecmem_hip_export.hpp"
39 virtual void*
do_allocate(std::size_t, std::size_t)
override final;
43 std::size_t)
override final;
47 const memory_resource&
other)
const noexcept override final;
Memory resource that wraps managed HIP allocation.
Definition managed_memory_resource.hpp:23
VECMEM_HIP_EXPORT managed_memory_resource()
Default constructor.
virtual VECMEM_HIP_EXPORT void do_deallocate(void *p, std::size_t, std::size_t) override final
De-allocate a previously allocated managed memory block.
Definition managed_memory_resource.cpp:41
VECMEM_HIP_EXPORT ~managed_memory_resource()
Destructor.
virtual VECMEM_HIP_EXPORT bool do_is_equal(const memory_resource &other) const noexcept override final
Compares *this for equality with other.
Definition managed_memory_resource.cpp:54
virtual VECMEM_HIP_EXPORT void * do_allocate(std::size_t, std::size_t) override final
Allocate HIP managed memory.
Definition managed_memory_resource.cpp:28
Namespace holding types that work on/with ROCm/HIP.
Definition hip_device_atomic_ref.hpp:25
std::vector< T, vecmem::polymorphic_allocator< T > > vector
Alias type for vectors with our polymorphic allocator.
Definition vector.hpp:35