ARM-software / armnn

Arm NN ML Software. The code here is a read-only mirror of https://review.mlplatform.org/admin/repos/ml/armnn
https://developer.arm.com/products/processors/machine-learning/arm-nn
MIT License
1.14k stars 307 forks source link

ARMNN v21.05: Building library using DS-5 toolset #631

Closed supratimc239 closed 2 years ago

supratimc239 commented 2 years ago

Hi,

I have previously built and executed my TF-lite model on ARMNN on Android device. Now I need to port my ARMNN based solution to evaluation board running on Linux.

I was told that the board uses Cortex-A32 and we need to build executable using ARM compiler 6 license from ARM DS-5 tool. While I have ARM compiler 6 license and downloaded already ARM DS IDE 2020.0, I am not sure how to build my model using ARM DS-5 for Cortext-A32 processor.

Any help will be really appreciated.

Kind regards Supratim

supratimc239 commented 2 years ago

Hi,

Could someone please let me know what changes needs to be done in scons/cmake and source code for Compute Library and ARMNN in order to cross compile it for ARM DS-5 for Cortex-A32 processor.

Kind regards Supratim

TeresaARM commented 2 years ago

Have you try to follow the cross compilation guide?: https://arm-software.github.io/armnn/22.02/md__build_guide_cross_compilation.xhtml

or the quick start guide https://arm-software.github.io/armnn/22.02/md_delegate__delegate_quick_start_guide.xhtml

supratimc239 commented 2 years ago

@TeresaARM ,

Thank you for response. I have already used the first link to cross compile. I also now looked into the second link you have shared. But none of them provide information on how to cross compile armnn for ARM DS-5.

Thanks

supratimc239 commented 2 years ago

@TeresaARM https://arm-software.github.io/armnn/22.02/md__build_guide_cross_compilation.xhtml basically cross compiles for arm64. I am trying cross compile ARMNN for armclang. Could you please let me know if there is any link that describe necessary changes?

Thanks

ghost commented 2 years ago

Hi @supratimc239

We don't have a guide specifically for DS-5. Or for compiling for 32bit arm processors at all, the Cortex-A32 predates ArmNN and very few of our optimisations are likely to result in a performance increase. In theory though, if you did want to try and compile ArmNN for your board, you could use the cross compilation guide @TeresaARM linked above, but replace the instances of CXX=aarch64-linux-gnu-g++ CC=aarch64-linux-gnu-gcc with your version of armclang which is included with DS-5. This is likely to run into problems with dependencies and libraries so I make no guarantees.

Sorry for the lack of support in this case. Regards, David

catcor01 commented 2 years ago

Hi @supratimc239,

I am going to close this issue as it has been over one month when the latest activity has occurred. If you are still experiencing problems, please do not hesitate to reopen this ticket or create a new issue.

Kind Regards, Cathal.