12#include "vecmem/memory/memory_resource.hpp"
13#include "vecmem/vecmem_hip_export.hpp"
39 std::size_t alignment)
override final;
44 std::size_t alignment)
override final;
49 const memory_resource&
other)
const noexcept override final;
Memory resource for a specific HIP device.
Definition device_memory_resource.hpp:19
VECMEM_HIP_EXPORT ~device_memory_resource()
Destructor.
virtual VECMEM_HIP_EXPORT void do_deallocate(void *ptr, std::size_t nbytes, std::size_t alignment) override final
Function performing the memory de-allocation.
Definition device_memory_resource.cpp:46
virtual VECMEM_HIP_EXPORT bool do_is_equal(const memory_resource &other) const noexcept override final
Function comparing two memory resource instances.
Definition device_memory_resource.cpp:61
static constexpr int INVALID_DEVICE
Invalid/default device identifier.
Definition device_memory_resource.hpp:23
virtual VECMEM_HIP_EXPORT void * do_allocate(std::size_t nbytes, std::size_t alignment) override final
Function performing the memory allocation.
Definition device_memory_resource.cpp:30
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