24.02.1
|
OpenCL implementation of memory object. More...
#include <CLMemory.h>
Public Member Functions | |
CLMemory () | |
Default Constructor. More... | |
CLMemory (const std::shared_ptr< ICLMemoryRegion > &memory) | |
Default Constructor. More... | |
CLMemory (ICLMemoryRegion *memory) | |
Default Constructor. More... | |
CLMemory (const CLMemory &)=default | |
Allow instances of this class to be copied. More... | |
CLMemory & | operator= (const CLMemory &)=default |
Allow instances of this class to be copy assigned. More... | |
CLMemory (CLMemory &&) noexcept=default | |
Allow instances of this class to be moved. More... | |
CLMemory & | operator= (CLMemory &&) noexcept=default |
Allow instances of this class to be move assigned. More... | |
ICLMemoryRegion * | cl_region () |
OpenCL Region accessor. More... | |
ICLMemoryRegion * | cl_region () const |
OpenCL Region accessor. More... | |
IMemoryRegion * | region () final |
Region accessor. More... | |
IMemoryRegion * | region () const final |
Region accessor. More... | |
void | set_region (IMemoryRegion *region) final |
Sets a memory region. More... | |
void | set_owned_region (std::unique_ptr< IMemoryRegion > region) final |
Sets a memory region. More... | |
Public Member Functions inherited from IMemory | |
virtual | ~IMemory ()=default |
Virtual default destructor. More... | |
OpenCL implementation of memory object.
Definition at line 37 of file CLMemory.h.
CLMemory | ( | ) |
Default Constructor.
Definition at line 32 of file CLMemory.cpp.
CLMemory | ( | const std::shared_ptr< ICLMemoryRegion > & | memory | ) |
Default Constructor.
[in] | memory | Memory to be imported |
Definition at line 36 of file CLMemory.cpp.
CLMemory | ( | ICLMemoryRegion * | memory | ) |
Default Constructor.
[in] | memory | Memory to be imported |
Definition at line 42 of file CLMemory.cpp.
ICLMemoryRegion * cl_region | ( | ) |
OpenCL Region accessor.
Definition at line 47 of file CLMemory.cpp.
Referenced by CLTensorAllocator::cl_data(), CLTensorAllocator::map(), CLTensorAllocator::set_associated_memory_group(), CLMemory::set_region(), and CLTensorAllocator::unmap().
ICLMemoryRegion* cl_region | ( | ) | const |
OpenCL Region accessor.
Allow instances of this class to be move assigned.
|
finalvirtual |
|
finalvirtual |
Region accessor.
Implements IMemory.
Definition at line 57 of file CLMemory.cpp.
Referenced by CLTensorAllocator::cl_data(), CLTensorAllocator::map(), CLTensorAllocator::set_associated_memory_group(), CLMemory::set_owned_region(), CLMemory::set_region(), and CLTensorAllocator::unmap().
|
finalvirtual |
Sets a memory region.
region | Memory region |
Implements IMemory.
Definition at line 74 of file CLMemory.cpp.
References CLMemory::region().
Referenced by CLTensorAllocator::allocate(), and CLTensorAllocator::import_memory().
|
finalvirtual |
Sets a memory region.
region | Memory region |
Implements IMemory.
Definition at line 67 of file CLMemory.cpp.
References CLMemory::cl_region(), and CLMemory::region().
Referenced by CLTensorAllocator::free().