|
rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
|
Abstract description of a physical memory region. More...
#include <rexlib/core/hardware/memory_resource.hpp>
Public Member Functions | |
| memory_resource (const memory_resource &other)=delete | |
| memory_resource (memory_resource &&other)=delete | |
| memory_resource & | operator= (const memory_resource &other)=delete |
| memory_resource & | operator= (memory_resource &&other)=delete |
| virtual memory_resource_kind | get_kind () const noexcept=0 |
| Get the kind of memory this resource represents. | |
| virtual std::shared_ptr< memory_allocator > | create_allocator () const =0 |
| Create an allocator that produces buffers on this resource. | |
Abstract description of a physical memory region.
|
pure virtual |
Create an allocator that produces buffers on this resource.
Some implementations may choose to always return the same allocator object (singleton-like).
|
pure virtualnoexcept |
Get the kind of memory this resource represents.
The returned value is constant over the lifetime of the resource and determines the host/device accessibility of the buffers allocated from it (see is_host_accessible and is_device_accessible).