diff options
author | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-05-05 12:11:52 +0200 |
---|---|---|
committer | Kristofer Jonsson <kristofer.jonsson@arm.com> | 2022-05-09 20:03:59 +0200 |
commit | a739d21efeb9a5e79bc3454c4badad6477235969 (patch) | |
tree | 351efd6145756056e7f238bb6d1cd8c2313cdedc /applications/message_handler/main.cpp | |
parent | 5a68ca5a6f2379babfbda0f847e78021005088fa (diff) | |
download | ethos-u-core-platform-a739d21efeb9a5e79bc3454c4badad6477235969.tar.gz |
Update documentation
Add documentation about how base addresses are used by the driver
unit tests.
Update message handler application to use TENSOR_ARENA_SIZE the
same way as the FreeRTOS application.
Add documenation about Corstone-310.
Change-Id: I08a315b95ca757ce3449cb7af104b8f1ac7f8865
Diffstat (limited to 'applications/message_handler/main.cpp')
-rw-r--r-- | applications/message_handler/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/message_handler/main.cpp b/applications/message_handler/main.cpp index b527840..8db9e0b 100644 --- a/applications/message_handler/main.cpp +++ b/applications/message_handler/main.cpp @@ -52,14 +52,14 @@ using namespace MessageHandler; ****************************************************************************/ // Nr. of tasks to process inferences with, reserves driver & runs inference (Normally 1 per NPU, but not a must) -#if defined(ETHOSU_NPU_COUNT) +#if defined(ETHOSU) && defined(ETHOSU_NPU_COUNT) && ETHOSU_NPU_COUNT > 0 constexpr size_t NUM_PARALLEL_TASKS = ETHOSU_NPU_COUNT; #else constexpr size_t NUM_PARALLEL_TASKS = 1; #endif // TensorArena static initialisation -constexpr size_t arenaSize = TENSOR_ARENA_SIZE / NUM_PARALLEL_TASKS; +constexpr size_t arenaSize = TENSOR_ARENA_SIZE; __attribute__((section(".bss.tensor_arena"), aligned(16))) uint8_t tensorArena[NUM_PARALLEL_TASKS][arenaSize]; |