GreenWaves-Technologies / gap_sdk

SDK for Greenwaves Technologies' GAP8 IoT Application Processor
https://greenwaves-technologies.com/en/gap8-the-internet-of-things-iot-application-processor/
Apache License 2.0
138 stars 75 forks source link

Failed to run the benchmarks #393

Open enzoniko opened 1 year ago

enzoniko commented 1 year ago

Hello! I'm trying to evaluate the performance of my GAPuino board. The idea is to see how accelerated the board is compared to my computer. So I've discovered the benchmarks and I've tried to run them, however if fails with this error:

riscv32-unknown-elf-gcc -O2 -g -DRT_FC_STACK_SIZE=2048 -D__PLATFORM_BOARD__ -D__RT_IODEV__=2 -fno-jump-tables -fno-tree-loop-distribute-patterns -fdata-sections -ffunction-sections -march=rv32imcxgap8 -mPE=8 -mFC=1 -D__riscv__ -mnativeomp -D__pulp__ -DCONFIG_GAP -D__PULP_OS__ -MMD -MP -c AllTest.c  -I/home/enzo/gap_riscv_toolchain_ubuntu/gap_sdk/install/GAP8_V3/include  -I/home/enzo/gap_riscv_toolchain_ubuntu/gap_sdk/install/GAP8_V3/include/io  -I/home/enzo/gap_riscv_toolchain_ubuntu/gap_sdk/install/workstation/include  -include /home/enzo/gap_riscv_toolchain_ubuntu/gap_sdk/install/GAP8_V3/include/rt/chips/gap8_revc/config.h -MD -MF /AllTest.d -o /AllTest.o
AllTest.c: In function 'main':
AllTest.c:1251:5: warning: implicit declaration of function 'PMU_set_voltage' [-Wimplicit-function-declaration]
     PMU_set_voltage(1150,0);
     ^~~~~~~~~~~~~~~
AllTest.c: At top level:
AllTest.c:1323:1: fatal error: opening dependency file /AllTest.d: Permission denied
 }
 ^
compilation terminated.
make: *** [/home/enzo/gap_riscv_toolchain_ubuntu/gap_sdk/utils/rules/pulp_rules.mk:220: /AllTest.o] Error 1

Could someone help me with this?

And another thing, do you have any suggestions on how I could compare the performance of these benchmarks with my computer? (For example, running the benchmarks trough gvsoc would do it? Is that even possible?)

Thanks in advance!

gwtsivasiva commented 1 year ago

Hi

This is an api in pulpOS, so you may need:

  1. compile and install pulpOS when install the SDK
  2. compile the example with pulpOS (Seems it's already the case, because -D__PULP_OS__)

Regards, Yao

On Wed, Jul 5, 2023 at 4:01 PM Enzo Nicolás Spotorno Bieger < @.***> wrote:

Hello! I'm trying to evaluate the performance of my GAPuino board. The idea is to see how accelerated the board is compared to my computer. So I've discovered the benchmarks and I've tried to run them, however if fails with this error:

riscv32-unknown-elf-gcc -O2 -g -DRT_FC_STACK_SIZE=2048 -DPLATFORM_BOARD -DRT_IODEV=2 -fno-jump-tables -fno-tree-loop-distribute-patterns -fdata-sections -ffunction-sections -march=rv32imcxgap8 -mPE=8 -mFC=1 -Driscv -mnativeomp -Dpulp -DCONFIG_GAP -D__PULP_OS__ -MMD -MP -c AllTest.c -I/home/enzo/gap_riscv_toolchain_ubuntu/gap_sdk/install/GAP8_V3/include -I/home/enzo/gap_riscv_toolchain_ubuntu/gap_sdk/install/GAP8_V3/include/io -I/home/enzo/gap_riscv_toolchain_ubuntu/gap_sdk/install/workstation/include -include /home/enzo/gap_riscv_toolchain_ubuntu/gap_sdk/install/GAP8_V3/include/rt/chips/gap8_revc/config.h -MD -MF /AllTest.d -o /AllTest.o AllTest.c: In function 'main': AllTest.c:1251:5: warning: implicit declaration of function 'PMU_set_voltage' [-Wimplicit-function-declaration] PMU_set_voltage(1150,0); ^~~~~~~ AllTest.c: At top level: AllTest.c:1323:1: fatal error: opening dependency file /AllTest.d: Permission denied } ^ compilation terminated. make: *** [/home/enzo/gap_riscv_toolchain_ubuntu/gap_sdk/utils/rules/pulp_rules.mk:220: /AllTest.o] Error 1

Could someone help me with this?

And another thing, do you have any suggestions on how I could compare the performance of these benchmarks with my computer? (For example, running the benchmarks trough gvsoc would do it? Is that even possible?)

Thanks in advance!

— Reply to this email directly, view it on GitHub https://github.com/GreenWaves-Technologies/gap_sdk/issues/393, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI6O77KZOGDHMWAAJ66PFKTXOVXSHANCNFSM6AAAAAAZ7ADQVA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

--

Yao ZHANGGlobal Customer Projects Director Tel: 06.82.78.41.71 Mail: @.*** Skype: zhyao930 Wechat: 453115693

[image: https://greenwaves-technologies.com/] https://greenwaves-technologies.com/

enzoniko commented 1 year ago

Hi.

I installed the SDK with make clean all so it should have pulpOS installed already. Can you please be more specific about the fix?

Thanks,