Skip to content

Incorrect display of logs for ARM bulds on FVP #13038

@west9906

Description

@west9906

I'm not sure, but it seems that the ARM GNU compiler (arm-none-eabi-gcc) does not support the c99 input/output format by default. I encountered a problem when I got the following output in FVP after running examples/arm/run.sh --model_name=add2 --target=ethos-u85-2048 --delegate

I [executorch:arm_executor_runner.cpp:zu ()] main
I [executorch:arm_executor_runner.cpp:zu ()] runner_init
I [executorch:arm_executor_runner.cpp:zu ()] runner_init
I [executorch:arm_executor_runner.cpp:zu ()] runner_init
I [executorch:arm_executor_runner.cpp:zu ()] runner_init
I [executorch:arm_executor_runner.cpp:zu ()] runner_init
...

After simply replacing %zu -> %lu in all ET_LOG() in file executorch/examples/arm/executor_runner/arm_executor_runner.cpp, I managed to get the following logs:

I [executorch:arm_executor_runner.cpp:749 main()] PTE in 0x74000000 $ Size: 2208 bytes
I [executorch:arm_executor_runner.cpp:480 runner_init()] PTE Model data loaded. Size: 2208 bytes.
I [executorch:arm_executor_runner.cpp:493 runner_init()] Model buffer loaded, has 1 methods
I [executorch:arm_executor_runner.cpp:500 runner_init()] Running method forward
I [executorch:arm_executor_runner.cpp:511 runner_init()] Setup Method allocator pool. Size: 62914560 bytes.
I [executorch:arm_executor_runner.cpp:528 runner_init()] Setting up planned buffer 0, size 96.

...

cc @digantdesai @freddan80 @per @zingo @oscarandersson8218

Metadata

Metadata

Assignees

No one assigned

    Labels

    module: armIssues related to arm backendpartner: armFor backend delegation, kernels, demo, etc. from the 3rd-party partner, Arm

    Type

    Projects

    Status

    To triage

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions