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
139 stars 78 forks source link

CNN_BasicKernels_NE16.c:925: undefined reference to `hal_cl_eu_event_mask_wait_and_clear' #421

Closed gwgknudayanga closed 1 month ago

gwgknudayanga commented 1 month ago

Hi @Pafrak

Could you please help me to solve this issue at the time of generating the project to run on gap8? this happen when i am running the "res = G.execute_on_target( ..." part of the coco_object_detection on gap8 project.

/home/udayanga/Udaya_Research_stuff/2024_GAP8_work/coco_object_detection/test_run/BUILD/GAP8_V3/GCC_RISCV_FREERTOS//home/udayanga/gap_sdk/tools/autotiler_v3/CNN_Libraries_NE16/CNN_BasicKernels_NE16.o: In function KerConvDW3x3Stride1_NE16': /home/udayanga/gap_sdk/tools/autotiler_v3/CNN_Libraries_NE16/CNN_BasicKernels_NE16.c:861: undefined reference tohal_cl_eu_event_mask_wait_and_clear' /home/udayanga/gap_sdk/tools/autotiler_v3/CNN_Libraries_NE16/CNN_BasicKernels_NE16.c :861: undefined reference to hal_cl_eu_event_mask_wait_and_clear' /home/udayanga/Udaya_Research_stuff/2024_GAP8_work/coco_object_detection/test_run/BUILD/GAP8_V3/GCC_RISCV_FREERTOS//home/udayanga/gap_sdk/tools/autotiler_v3/CNN_Libraries_NE16/CNN_BasicKernels_NE16.o: In functionKerConv3x3Stride2_NE16': /home/udayanga/gap_sdk/tools/autotiler_v3/CNN_Libraries_NE16/CNN_BasicKernels_NE16.c:925: undefined reference to hal_cl_eu_event_mask_wait_and_clear' /home/udayanga/gap_sdk/tools/autotiler_v3/CNN_Libraries_NE16/CNN_BasicKernels_NE16.c:925: undefined reference tohal_cl_eu_event_mask_wait_and_clear' /home/udayanga/gap_sdk/tools/autotiler_v3/CNN_Libraries_NE16/CNN_BasicKernels_NE16.c:925: undefined reference to hal_cl_eu_event_mask_wait_and_clear' /home/udayanga/Udaya_Research_stuff/2024_GAP8_work/coco_object_detection/test_run/BUILD/GAP8_V3/GCC_RISCV_FREERTOS//home/udayanga/gap_sdk/tools/autotiler_v3/CNN_Libraries_NE16/CNN_BasicKernels_NE16.o:/home/udayanga/gap_sdk/tools/autotiler_v3/CNN_Libraries_NE16/CNN_BasicKernels_NE16.c:925: more undefined references tohal_cl_eu_event_mask_wait_and_clear' follow

collect2: error: ld returned 1 exit status

Thanks and Rgds, Udayanga

marco-fariselli commented 1 month ago

Hi !! It seems you are using the NE16 feature on GAP8. That piece of HW is available only on GAP9. I suggest you to remove the use_ne16=True from the quantization options.

gwgknudayanga commented 1 month ago

Yes It worked. Thank you so much.