From 6f92c8e9f8bb38dcf5dccf8deeff5112ecd8e37c Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Wed, 22 Nov 2023 11:41:15 +0000 Subject: Update Doxygen for 23.11 Signed-off-by: Nikhil Raj Change-Id: I47cd933f5002cb94a73aa97689d7b3d9c93cb849 --- ...nd_1_1_cl_backend_custom_allocator_wrapper.html | 299 +++++++++++++++++++++ 1 file changed, 299 insertions(+) create mode 100644 23.11/classarmnn_1_1_cl_backend_1_1_cl_backend_custom_allocator_wrapper.html (limited to '23.11/classarmnn_1_1_cl_backend_1_1_cl_backend_custom_allocator_wrapper.html') diff --git a/23.11/classarmnn_1_1_cl_backend_1_1_cl_backend_custom_allocator_wrapper.html b/23.11/classarmnn_1_1_cl_backend_1_1_cl_backend_custom_allocator_wrapper.html new file mode 100644 index 0000000000..b06566fbc0 --- /dev/null +++ b/23.11/classarmnn_1_1_cl_backend_1_1_cl_backend_custom_allocator_wrapper.html @@ -0,0 +1,299 @@ + + + + + + + + +Arm NN: ClBackend::ClBackendCustomAllocatorWrapper Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  23.11 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ClBackend::ClBackendCustomAllocatorWrapper Class Reference
+
+
+ +

#include <ClBackend.hpp>

+
+Inheritance diagram for ClBackend::ClBackendCustomAllocatorWrapper:
+
+
+
+
[legend]
+
+Collaboration diagram for ClBackend::ClBackendCustomAllocatorWrapper:
+
+
+
+
[legend]
+ + + + + + + + + + +

+Public Member Functions

 ClBackendCustomAllocatorWrapper (std::shared_ptr< ICustomAllocator > alloc)
 
void * allocate (size_t size, size_t alignment) override
 
void free (void *ptr) override
 
std::unique_ptr< arm_compute::IMemoryRegion > make_region (size_t size, size_t alignment) override
 
+

Detailed Description

+
+

Definition at line 97 of file ClBackend.hpp.

+

Constructor & Destructor Documentation

+ +

◆ ClBackendCustomAllocatorWrapper()

+ +
+
+ + + + + +
+ + + + + + + + +
ClBackendCustomAllocatorWrapper (std::shared_ptr< ICustomAllocatoralloc)
+
+inline
+
+ +

Definition at line 100 of file ClBackend.hpp.

+
100  : m_CustomAllocator(alloc)
+
101  {}
+
+
+
+

Member Function Documentation

+ +

◆ allocate()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
void* allocate (size_t size,
size_t alignment 
)
+
+inlineoverride
+
+ +

Definition at line 103 of file ClBackend.hpp.

+
104  {
+
105  auto alloc = m_CustomAllocator->allocate(size, alignment);
+
106  return MapAllocatedMemory(alloc, size, m_CustomAllocator->GetMemorySourceType());
+
107  }
+
+
+
+ +

◆ free()

+ +
+
+ + + + + +
+ + + + + + + + +
void free (void * ptr)
+
+inlineoverride
+
+ +

Definition at line 108 of file ClBackend.hpp.

+
109  {
+
110  auto hostMemPtr = m_AllocatedBufferMappings[ptr];
+
111  clReleaseMemObject(static_cast<cl_mem>(ptr));
+
112  m_CustomAllocator->free(hostMemPtr);
+
113  }
+
+
+
+ +

◆ make_region()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
std::unique_ptr<arm_compute::IMemoryRegion> make_region (size_t size,
size_t alignment 
)
+
+inlineoverride
+
+ +

Definition at line 114 of file ClBackend.hpp.

+
115  {
+
116  auto hostMemPtr = m_CustomAllocator->allocate(size, alignment);
+
117  cl_mem buffer = MapAllocatedMemory(hostMemPtr, size, m_CustomAllocator->GetMemorySourceType());
+
118 
+
119  return std::make_unique<ClBackendCustomAllocatorMemoryRegion>(cl::Buffer(buffer),
+
120  hostMemPtr,
+
121  m_CustomAllocator->GetMemorySourceType());
+
122  }
+
+
+
+
The documentation for this class was generated from the following file: +
+
+ + + + -- cgit v1.2.1