vecmem 1.14.0
|
SYCL memory resource base class. More...
#include <vecmem/memory/sycl/details/memory_resource_base.hpp>
Public Member Functions | |
VECMEM_SYCL_EXPORT | memory_resource_base (const queue_wrapper &queue={}) |
Constructor on top of a user-provided queue. | |
VECMEM_SYCL_EXPORT | ~memory_resource_base () |
Destructor. | |
Protected Attributes | |
queue_wrapper | m_queue |
The queue that the allocations are made for/on. | |
Private Member Functions | |
Function(s) implemented from @c vecmem::memory_resource | |
virtual VECMEM_SYCL_EXPORT void | do_deallocate (void *ptr, std::size_t nbytes, std::size_t alignment) override final |
Function performing the memory de-allocation. | |
virtual VECMEM_SYCL_EXPORT bool | do_is_equal (const memory_resource &other) const noexcept override final |
Function comparing two memory resource instances. | |
SYCL memory resource base class.
This class is used as base by all of the oneAPI/SYCL memory resource classes. It holds functionality that those classes all need.