UDO SoftMax Not working on Target SA6155P
Join Date: 24 Feb 20
Posts: 13
Posted: Sun, 2021-07-04 22:01
Dear Sir,
We have build UDO Softmax example with SNPE 1.48 and tested it on PC Host which is working fine.
When we tried to run it on target device SA6155P
it fails both on CPU and DSP.
It throws below error , pleas find it for your reference:
On DSP:
root@sa6155:/data/local/tmp/inception_v3_udo# snpe-net-run --container inception_v3_udo_quantized.dlc --input_list target_raw_list.txt --udo_package_path dsp/libUdoSoftmaxUdoPackageReg.so --use_dsp
error_code=1106; error_message=UDO Package Registration Failed Failed to load registration library dsp/libUdoSoftmaxUdoPackageReg.so. Error: /usr/lib/libc.so: invalid ELF header; error_component=User-def6
On CPU:
root@sa6155:/data/local/tmp/inception_v3_udo# snpe-net-run --container inception_v3_udo.dlc --input_list target_raw_list.txt --udo_package_path cpu/libUdoSoftmaxUdoPackageReg.so
error_code=1106; error_message=UDO Package Registration Failed Failed to load registration library cpu/libUdoSoftmaxUdoPackageReg.so. Error: /usr/lib/libc.so: invalid ELF header; error_component=User-def2
What could be the possible reason for this , please help us to resolve the same.
Thanks and Regards,
Vyom Mishra
Hi vyom.mishra,
I Hope you are not using the same libUdoSoftmaxUdoPackageReg.so file which you have build for x86_64 platform.
The error which you are facing says that the libUdoSoftmaxUdoPackageReg.so file having dependencies of libc.so internally, the ELF header for the same is not valid to be execute on the SA6155P with available libc.so.
Please do cross check with the ELF Header of libUdoSoftmaxUdoPackageReg.so & libc.so which is available in SA6155P.
Please do recompile the source code with required toolchain to match with libc.so and try it again.
Please let me know if this resolve your issue.
Thanks,
Sahil Bandar