Class MemoryManager

Class Documentation

class MemoryManager

Public Functions

template<class T>
T *allocate(std::size_t n)
void release(void *host_ptr) noexcept
void to_device(const void *host_ptr, std::size_t bytes, void *stream = nullptr)
void to_host(const void *host_ptr, std::size_t bytes, void *stream = nullptr)
void *device_ptr(const void *host_ptr) const noexcept
void *host_ptr(const void *maybe_device) const noexcept
bool using_unified_memory() const noexcept
std::size_t debug_count() const noexcept
~MemoryManager()

Public Static Functions

static MemoryManager &instance()