aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Verhaard <louis.verhaard@arm.com>2022-02-23 14:13:07 +0100
committerpatrik.gustavsson <patrik.gustavsson@arm.com>2022-03-14 08:54:21 +0000
commit5c8f1e598748c0429a88aa35a1f12c731892f9b1 (patch)
tree64d1fec20cd95ecf8162242441122369cc32212d
parent77b448fa6a63e472928276cfe4e092da1c1395b4 (diff)
downloadethos-u-vela-5c8f1e598748c0429a88aa35a1f12c731892f9b1.tar.gz
MLBEDSW-6245: Bug fix fast storage allocator
Fast storage allocator did not always return an optimal allocation. Signed-off-by: Louis Verhaard <louis.verhaard@arm.com> Change-Id: Ic758b6c4a82dc2633c4752b0c204a27ed36f651b
-rw-r--r--ethosu/vela/scheduler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethosu/vela/scheduler.py b/ethosu/vela/scheduler.py
index 3ef0d7f..284848f 100644
--- a/ethosu/vela/scheduler.py
+++ b/ethosu/vela/scheduler.py
@@ -1152,7 +1152,7 @@ class FastStorageComponentAllocator:
if ix >= len(self.lrs):
if alloc_size > self.best_allocated_size:
self.best_allocated_size = alloc_size
- self.evicted = self.curr_evicted
+ self.evicted = self.curr_evicted.copy()
return
lr = self.lrs[ix]