Struct AMSAllocator

Inheritance Relationships

Derived Types

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