Skip to content

Commit

Permalink
Arm backend: Set default allocation pool to 20MB
Browse files Browse the repository at this point in the history
This is making memory fit on more targets. The intention is for this
is to be easier to change from the run.sh flow and then this value
will probably be bumped back to the bigger value out of the box again
to make large model testing more convenient.

Signed-off-by: Zingo Andersen <[email protected]>
Change-Id: Id0e5f0d453bddc8e8fb0db65a4fd72bc7c1671ea
  • Loading branch information
zingo authored and freddan80 committed Nov 18, 2024
1 parent e95f171 commit 8526d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/arm/executor_runner/arm_executor_runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ using executorch::runtime::TensorInfo;
* availible memory.
*/
#ifndef ET_ARM_BAREMETAL_METHOD_ALLOCATOR_POOL_SIZE
#define ET_ARM_BAREMETAL_METHOD_ALLOCATOR_POOL_SIZE (60 * 1024 * 1024)
#define ET_ARM_BAREMETAL_METHOD_ALLOCATOR_POOL_SIZE (20 * 1024 * 1024)
#endif
const size_t method_allocation_pool_size =
ET_ARM_BAREMETAL_METHOD_ALLOCATOR_POOL_SIZE;
Expand Down

0 comments on commit 8526d0a

Please sign in to comment.