From 734151d20bef56cbedce2ae67945f42cb4e265c8 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Mon, 21 Jan 2019 18:38:21 +0000 Subject: COMPMID-1848: Account alignment in Offset-based pool allocations Change-Id: I061d612341bf951a7d0e7ddd04a42139c8400d41 Reviewed-on: https://review.mlplatform.org/554 Tested-by: Arm Jenkins Reviewed-by: Michalis Spyrou --- arm_compute/runtime/Types.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'arm_compute/runtime/Types.h') diff --git a/arm_compute/runtime/Types.h b/arm_compute/runtime/Types.h index f2607c0204..fece5137f7 100644 --- a/arm_compute/runtime/Types.h +++ b/arm_compute/runtime/Types.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2018 ARM Limited. + * Copyright (c) 2016-2019 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -46,5 +46,17 @@ using MemoryMappings = std::map; /** A map of the groups and memory mappings */ using GroupMappings = std::map; + +/** Meta-data information for each blob */ +struct BlobInfo +{ + BlobInfo(size_t size_ = 0, size_t alignment_ = 0, size_t owners_ = 1) + : size(size_), alignment(alignment_), owners(owners_) + { + } + size_t size; /**< Blob size */ + size_t alignment; /**< Blob alignment */ + size_t owners; /**< Number of owners in parallel of the blob */ +}; } // namespace arm_compute #endif /* __ARM_COMPUTE_RUNTIME_TYPES_H__ */ -- cgit v1.2.1