Skip to content
Snippets Groups Projects
Commit 03bcdf14 authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Fix excess size

parent da2cf573
No related branches found
No related tags found
2 merge requests!318[Upd] release verision 0.5.0,!298[Fix] autoconcat size computation in Scheduler
Pipeline #63028 passed
...@@ -738,6 +738,13 @@ Aidge::MemoryManager Aidge::Scheduler::generateMemoryAutoConcat(bool incProducer ...@@ -738,6 +738,13 @@ Aidge::MemoryManager Aidge::Scheduler::generateMemoryAutoConcat(bool incProducer
concatOffset += parentSize; concatOffset += parentSize;
} }
} }
// Size in reallocate() is counted from the offset, not from 0,
// meaning the offset must be substracted to obtain the correct
// total size without excess.
if (concatOffset > 0) {
concatSize -= concatOffset;
}
} }
// MemoryPlane to (re)use // MemoryPlane to (re)use
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment