Struct AMSAllocator¶
Defined in File resource_manager.hpp
Inheritance Relationships¶
Derived Types¶
public ams::AMSDefaultDeviceAllocator(Struct AMSDefaultDeviceAllocator)public ams::AMSDefaultHostAllocator(Struct AMSDefaultHostAllocator)public ams::AMSDefaultPinnedAllocator(Struct AMSDefaultPinnedAllocator)
Struct Documentation¶
-
struct AMSAllocator¶
A “utility” class that provides a unified interface to the umpire library for memory allocations and data movements/copies.
Subclassed by ams::AMSDefaultDeviceAllocator, ams::AMSDefaultHostAllocator, ams::AMSDefaultPinnedAllocator
Public Functions
-
inline AMSAllocator(std::string &alloc_name)¶
-
virtual ~AMSAllocator() = default¶
-
virtual void *allocate(size_t num_bytes, size_t alignment) = 0¶
-
virtual void deallocate(void *ptr) = 0¶
-
const std::string getName() const¶
Public Members
-
std::string name¶
-
inline AMSAllocator(std::string &alloc_name)¶