This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cross-Compile ArmNN on x86_64 for arm64

Hi ,

I am looking for someway of using the armNN SDK on a Xilinx Zynq Platform which has Quad-core ARM® CortexTM-A53 MPCoreTM up to 1.5GHz and an ARM MALI 400 MP2 GPU. With ARM Mali GPU noted off in a previous question my next task is to look into if it is possible to run the SDK on the Cortex processor but lloking at the guides I would only be able to cross compile it. So my first question is that is it possible to run it on the ARM A53 on the Zynq Platform and also if tensorflow would run on it as well.

Regards

Fatima

Parents
  • after performing the cmake for armnn build it shows that it cannot find caffe.pb.cc file

    while going through the errors and warnings i saw that the boost library was not build and some files where incomplete to download .

    after making changes in boost library and following the steps properly the error is resolved

    Again performing the cmake command it shows error as

    [ 75%] Linking CXX shared library libarmnn.so
    /usr/bin/ld: /home/bhushan/ComputeLibrary/build/libarm_compute_core-static.a(Error.o): Relocations in generic ELF (EM: 183)
    /usr/bin/ld: /home/bhushan/ComputeLibrary/build/libarm_compute_core-static.a(Error.o): Relocations in generic ELF (EM: 183)
    /usr/bin/ld: /home/bhushan/ComputeLibrary/build/libarm_compute_core-static.a(Error.o): Relocations in generic ELF (EM: 183)
    /usr/bin/ld: /home/bhushan/ComputeLibrary/build/libarm_compute_core-static.a(Error.o): Relocations in generic ELF (EM: 183)
    /usr/bin/ld: /home/bhushan/ComputeLibrary/build/libarm_compute_core-static.a(Error.o): Relocations in generic ELF (EM: 183)
    /home/bhushan/ComputeLibrary/build/libarm_compute_core-static.a: error adding symbols: File in wrong format
    collect2: error: ld returned 1 exit status
    CMakeFiles/armnn.dir/build.make:1704: recipe for target 'libarmnn.so' failed
    make[2]: *** [libarmnn.so] Error 1
    CMakeFiles/Makefile2:113: recipe for target 'CMakeFiles/armnn.dir/all' failed
    make[1]: *** [CMakeFiles/armnn.dir/all] Error 2
    Makefile:127: recipe for target 'all' failed
    make: *** [all] Error 2

    after going through these errors i recompile the computeLibrary but no error while make command

    after that i followed the steps for protobuf no error while make

    ~/Downloads/protobuf$ make
    make  all-recursive
    make[1]: Entering directory '/home/bhushan/Downloads/protobuf'
    Making all in .
    make[2]: Entering directory '/home/bhushan/Downloads/protobuf'
    make[2]: Leaving directory '/home/bhushan/Downloads/protobuf'
    Making all in src
    make[2]: Entering directory '/home/bhushan/Downloads/protobuf/src'
    make[2]: Nothing to be done for 'all'.
    make[2]: Leaving directory '/home/bhushan/Downloads/protobuf/src'
    make[1]: Leaving directory '/home/bhushan/Downloads/protobuf'

    but got errors while make install

    libtool:   error: only absolute run-paths are allowed
    Makefile:2201: recipe for target 'libprotobuf-lite.la' failed
    make[2]: *** [libprotobuf-lite.la] Error 1
    make[2]: Leaving directory '/home/bhushan/Downloads/protobuf/src'
    Makefile:1594: recipe for target 'all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory '/home/bhushan/Downloads/protobuf'
    Makefile:1501: recipe for target 'all' failed
    make: *** [all] Error 2

    How can i solve these error i delete all the previous file and downloaded the new ones but same errors occur as previous one

    can u plz suggest where i am going wrong

    Thanks,

Reply
  • after performing the cmake for armnn build it shows that it cannot find caffe.pb.cc file

    while going through the errors and warnings i saw that the boost library was not build and some files where incomplete to download .

    after making changes in boost library and following the steps properly the error is resolved

    Again performing the cmake command it shows error as

    [ 75%] Linking CXX shared library libarmnn.so
    /usr/bin/ld: /home/bhushan/ComputeLibrary/build/libarm_compute_core-static.a(Error.o): Relocations in generic ELF (EM: 183)
    /usr/bin/ld: /home/bhushan/ComputeLibrary/build/libarm_compute_core-static.a(Error.o): Relocations in generic ELF (EM: 183)
    /usr/bin/ld: /home/bhushan/ComputeLibrary/build/libarm_compute_core-static.a(Error.o): Relocations in generic ELF (EM: 183)
    /usr/bin/ld: /home/bhushan/ComputeLibrary/build/libarm_compute_core-static.a(Error.o): Relocations in generic ELF (EM: 183)
    /usr/bin/ld: /home/bhushan/ComputeLibrary/build/libarm_compute_core-static.a(Error.o): Relocations in generic ELF (EM: 183)
    /home/bhushan/ComputeLibrary/build/libarm_compute_core-static.a: error adding symbols: File in wrong format
    collect2: error: ld returned 1 exit status
    CMakeFiles/armnn.dir/build.make:1704: recipe for target 'libarmnn.so' failed
    make[2]: *** [libarmnn.so] Error 1
    CMakeFiles/Makefile2:113: recipe for target 'CMakeFiles/armnn.dir/all' failed
    make[1]: *** [CMakeFiles/armnn.dir/all] Error 2
    Makefile:127: recipe for target 'all' failed
    make: *** [all] Error 2

    after going through these errors i recompile the computeLibrary but no error while make command

    after that i followed the steps for protobuf no error while make

    ~/Downloads/protobuf$ make
    make  all-recursive
    make[1]: Entering directory '/home/bhushan/Downloads/protobuf'
    Making all in .
    make[2]: Entering directory '/home/bhushan/Downloads/protobuf'
    make[2]: Leaving directory '/home/bhushan/Downloads/protobuf'
    Making all in src
    make[2]: Entering directory '/home/bhushan/Downloads/protobuf/src'
    make[2]: Nothing to be done for 'all'.
    make[2]: Leaving directory '/home/bhushan/Downloads/protobuf/src'
    make[1]: Leaving directory '/home/bhushan/Downloads/protobuf'

    but got errors while make install

    libtool:   error: only absolute run-paths are allowed
    Makefile:2201: recipe for target 'libprotobuf-lite.la' failed
    make[2]: *** [libprotobuf-lite.la] Error 1
    make[2]: Leaving directory '/home/bhushan/Downloads/protobuf/src'
    Makefile:1594: recipe for target 'all-recursive' failed
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory '/home/bhushan/Downloads/protobuf'
    Makefile:1501: recipe for target 'all' failed
    make: *** [all] Error 2

    How can i solve these error i delete all the previous file and downloaded the new ones but same errors occur as previous one

    can u plz suggest where i am going wrong

    Thanks,

Children
No data