diff options
-rw-r--r-- | applications/message_handler_openamp/main.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/applications/message_handler_openamp/main.cpp b/applications/message_handler_openamp/main.cpp index 2aad224..9d3c074 100644 --- a/applications/message_handler_openamp/main.cpp +++ b/applications/message_handler_openamp/main.cpp @@ -20,6 +20,7 @@ * Includes *****************************************************************************/ +#include <cinttypes> #include <memory> #include <stdio.h> @@ -61,7 +62,7 @@ constexpr size_t arenaSize = TENSOR_ARENA_SIZE; *****************************************************************************/ extern "C" { -__attribute__((section(".resource_table"))) ResourceTable resourceTable(8, sizeof(arenaSize *NUM_PARALLEL_TASKS)); +__attribute__((section(".resource_table"))) ResourceTable resourceTable(8, arenaSize *NUM_PARALLEL_TASKS); } /***************************************************************************** @@ -98,6 +99,11 @@ int main() { auto rproc = std::make_shared<RProc>(mailbox, resourceTable.table, sizeof(resourceTable), *mem); auto messageHandler = std::make_shared<MessageHandler>(*rproc, "ethos-u-0.0"); + printf("TFLM arena. pa=%" PRIx32 ", da=%" PRIx32 ", len=%" PRIx32 "\n", + resourceTable.carveout.da, + resourceTable.carveout.pa, + resourceTable.carveout.len); + std::array<std::shared_ptr<InferenceRunner>, NUM_PARALLEL_TASKS> inferenceRunner; for (size_t i = 0; i < NUM_PARALLEL_TASKS; i++) { |