OAID / Tengine

Tengine is a lite, high performance, modular inference engine for embedded device
Apache License 2.0
4.61k stars 998 forks source link

No serializer found for tengine for arm cortex A7 #551

Open gihyunkim opened 3 years ago

gihyunkim commented 3 years ago

Hi, I have been through some problems below. and hope you can help me out from this error.

tengine-lite library version: 1.2-dev Tengine: No available device. no serializer found for tengine Create graph failed. errno: 0

This is my cross compile environment

I tried your some examples and it worked well on above environment with no cross compile. The build and make is successful but if I load it to device, the error happens. I added the flags -mfpu=neon-vfpv4 -mfloat-abi=softfp -march=armv7-a as well, actually it had been used already.

Please help me to figure it out this problem. Thank you.

gihyunkim commented 3 years ago

I did get rid of the error "No Serializer found for tengine" by adding src codes in Serializer folder from your structure to our structure But I get error "Tengine: No available device" still. For running our code with tengine in Arm environment, what am I supposed to do? I'm confused which source file needs to be included or not. Plz Let me know thank you

BUG1989 commented 3 years ago

Hi @gihyunkim which A7 device havd you tried it?

gihyunkim commented 3 years ago

Hi Thank you for responding. I've tried AllWinner A40 device.

gihyunkim commented 3 years ago

Hi @gihyunkim which A7 device havd you tried it? @BUG1989 I've drawed files in /src/cpu/ as well this time because I supposed it cause "no device support". And I got this error below.

deconv_kernel_arm.c:(.text+0x788): undefined reference to sgemm_4x12_deconv_a17' deconv_kernel_arm.c:(.text+0x7b0): undefined reference tosgemm_4x12_deconv_a17' deconv_kernel_arm.c:(.text+0x1c0a): undefined reference to sgemm_4x4_deconv_a17' deconv_kernel_arm.c:(.text+0x1ca0): undefined reference tosgemm_4x4_deconv_a17' deconv_kernel_arm.c:(.text+0x1d16): undefined reference to `sgemm_4x4_deconv_a17' ...

I might guess it happens because I assembled all files in src/lib, src/dev to one folder.(Because I don't know which files i need) I hope you can give me an answer to fix this error, Thank you.

kalcohol commented 3 years ago

Hi @gihyunkim which A7 device havd you tried it? @BUG1989 I've drawed files in /src/cpu/ as well this time because I supposed it cause "no device support". And I got this error below.

deconv_kernel_arm.c:(.text+0x788): undefined reference to sgemm_4x12_deconv_a17' deconv_kernel_arm.c:(.text+0x7b0): undefined reference tosgemm_4x12_deconv_a17' deconv_kernel_arm.c:(.text+0x1c0a): undefined reference to sgemm_4x4_deconv_a17' deconv_kernel_arm.c:(.text+0x1ca0): undefined reference tosgemm_4x4_deconv_a17' deconv_kernel_arm.c:(.text+0x1d16): undefined reference to `sgemm_4x4_deconv_a17' ...

I might guess it happens because I assembled all files in src/lib, src/dev to one folder.(Because I don't know which files i need) I hope you can give me an answer to fix this error, Thank you.

Sorry for the late reply, src/CMakeList.cmake show how conditions Tengine based and how to gather the source files for different target. Such as ARM, X86 or MIPS.