diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2019-01-21 18:38:21 +0000 |
---|---|---|
committer | Georgios Pinitas <georgios.pinitas@arm.com> | 2019-01-23 11:45:28 +0000 |
commit | 734151d20bef56cbedce2ae67945f42cb4e265c8 (patch) | |
tree | b51f5fb5ead440e0f7a5f38785f2f2564442d0f5 /arm_compute/runtime/Types.h | |
parent | e8c0c4397a508169282e5859410d5d6cdc87edbe (diff) | |
download | ComputeLibrary-734151d20bef56cbedce2ae67945f42cb4e265c8.tar.gz |
COMPMID-1848: Account alignment in Offset-based pool allocations
Change-Id: I061d612341bf951a7d0e7ddd04a42139c8400d41
Reviewed-on: https://review.mlplatform.org/554
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com>
Diffstat (limited to 'arm_compute/runtime/Types.h')
-rw-r--r-- | arm_compute/runtime/Types.h | 14 |
1 files changed, 13 insertions, 1 deletions
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<IMemory *, size_t>; /** A map of the groups and memory mappings */ using GroupMappings = std::map<size_t, MemoryMappings>; + +/** 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__ */ |