Skip to content

Commit b0dda93

Browse files
Arm backend: Decrease scratch buffer for Dedicated_Sram (#12891)
For Dedicated_Sram, both ET_ARM_BAREMETAL_METHOD_ALLOCATOR_POOL and ET_ARM_BAREMETAL_SCRATCH_TEMP_ALLOCATOR_POOL shares the DDR memory area with the parameters of the network. The DDR is 256MiB, so if we allocate 60MiB + 128MiB for buffers, that only leaves 68Mib for the parameters, severely limiting the size of network we are able to run. Signed-off-by: Adrian Lundell <[email protected]>
1 parent a70b7a8 commit b0dda93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/arm/executor_runner/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ else()
135135
endif()
136136

137137
# By default, use 2MB of temporary scratch buffer
138-
# For Dedicated_Sram, use 128MB for the temporary scratch buffer and
138+
# For Dedicated_Sram, use 64MB for the temporary scratch buffer and
139139
# 384KB for the fast scratch buffer(the cache, applicable only for Ethos-U65 and Ethos-U85)
140140
set(ET_ARM_BAREMETAL_SCRATCH_TEMP_ALLOCATOR_POOL_SIZE 0x200000)
141141
if(MEMORY_MODE MATCHES "Dedicated_Sram")
142-
set(ET_ARM_BAREMETAL_SCRATCH_TEMP_ALLOCATOR_POOL_SIZE 0x8000000)
142+
set(ET_ARM_BAREMETAL_SCRATCH_TEMP_ALLOCATOR_POOL_SIZE 0x4000000)
143143
set(ET_ARM_BAREMETAL_FAST_SCRATCH_TEMP_ALLOCATOR_POOL_SIZE 0x60000)
144144
endif()
145145
message(STATUS "ET_ARM_BAREMETAL_SCRATCH_TEMP_ALLOCATOR_POOL_SIZE = ${ET_ARM_BAREMETAL_SCRATCH_TEMP_ALLOCATOR_POOL_SIZE}")

0 commit comments

Comments
 (0)