diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2017-09-18 18:33:07 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | 511347a7282b948bddfc071e9a8fa08e79da25b4 (patch) | |
tree | fc1d9aea0c6679ff758407da5bd32a954b578d6e /arm_compute/runtime/ILifetimeManager.h | |
parent | 96880cf00707d394938ec7fe31c21c79a2ac3f0c (diff) | |
download | ComputeLibrary-511347a7282b948bddfc071e9a8fa08e79da25b4.tar.gz |
COMPMID-485: Offset-based memory manager support.
Adds support for offset-based memory mappings used from CPU system
memory and SVM based allocations.
Change-Id: Ibee6a3c02a61df9b11fe8878cfe40dc6fd9a4be0
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/88307
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'arm_compute/runtime/ILifetimeManager.h')
-rw-r--r-- | arm_compute/runtime/ILifetimeManager.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arm_compute/runtime/ILifetimeManager.h b/arm_compute/runtime/ILifetimeManager.h index 4f9af6f535..6f2c68d372 100644 --- a/arm_compute/runtime/ILifetimeManager.h +++ b/arm_compute/runtime/ILifetimeManager.h @@ -28,7 +28,7 @@ #include "arm_compute/runtime/Types.h" #include <cstddef> -#include <vector> +#include <memory> namespace arm_compute { @@ -58,6 +58,11 @@ public: * @param[in] size Size of the given object at given time */ virtual void end_lifetime(void *obj, void **handle, size_t size) = 0; + /** Checks if the lifetime of the registered object is complete + * + * @return True if all object lifetimes are finalized else false. + */ + virtual bool are_all_finalized() const = 0; /** Creates a memory pool depending on the memory requirements * * @param allocator Allocator to use @@ -65,16 +70,11 @@ public: * @return A memory pool */ virtual std::unique_ptr<IMemoryPool> create_pool(IAllocator *allocator) = 0; - /** Checks if the lifetime of the registered object is complete - * - * @return True if all object lifetimes are finalized else false. - */ - virtual bool are_all_finalized() const = 0; /** Returns the type of mappings that the lifetime manager returns * * @return Mapping type of the lifetime manager */ virtual MappingType mapping_type() const = 0; }; -} // arm_compute +} // namespace arm_compute #endif /* __ARM_COMPUTE_ILIFETIMEMANAGER_H__ */ |