Giter Site home page Giter Site logo

Comments (3)

kris-himax avatar kris-himax commented on May 18, 2024 1

Hi,
Yes, I use https://pytorch.org/executorch/stable/executorch-arm-delegate-tutorial.html#download-and-install-the-arm-gnu-aarch32-bare-metal-toolchain about 'https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/12.3.rel1/binrel/arm-gnu-toolchain-12.3.rel1-x86_64-arm-none-eabi.tar.xz'.
And I use command

cd executorch
mkdir build_arm_test
cd build_arm_test
export PATH="/home/kris/Desktop/2023_11_1_executorch_py_3_10/executorch/third-party/flatbuffers/cmake-out:${PATH}"
/home/kris/Desktop/2023_11_1_executorch_py_3_10/executorch/build/install_flatc.sh
toolchain_cmake=../examples/arm/ethos-u-setup/arm-none-eabi-gcc.cmake
cmake                                                     -DBUCK2="/tmp/buck2"                                      -DEXECUTORCH_BUILD_XNNPACK=OFF                        -DEXECUTORCH_BUILD_GFLAGS=OFF                         -DEXECUTORCH_BUILD_EXECUTOR_RUNNER=OFF                -DEXECUTORCH_BUILD_HOST_TARGETS=OFF                   -DEXECUTORCH_BUILD_ARM_BAREMETAL=ON                   -DCMAKE_BUILD_TYPE=Release                            -DEXECUTORCH_ENABLE_LOGGING=ON                        -DEXECUTORCH_SELECT_OPS_LIST="aten::_softmax.out"     -DFLATC_EXECUTABLE="$(which flatc)"                   -DCMAKE_TOOLCHAIN_FILE="${toolchain_cmake}"           ../

cmake --build . -- -j8

face build error.

But I use

./examples/arm/run.sh '/home/kris/Desktop/2023_11_1_executorch_py_3_10/executorch/examples/arm/ethos-u-scratch' 

It can build success, run example smoothly.

from executorch.

digantdesai avatar digantdesai commented on May 18, 2024 1

Glad you have the version with the script working. 👍

Can you check the compiler flags for that object, I suspect either something is missing or different, here is what I have,

# a snipped from a build with VERBOSE=1 
arm-none-eabi-g++                                                                     \
        -DET_ENABLE_PROGRAM_VERIFICATION=0                                            \
        -DNDEBUG                                                                      \
        -I<home>/executorch/..                                                        \
        -Os                                                                           \
        -ffunction-sections                                                           \
        -fdata-sections                                                               \
        -fno-exceptions                                                               \
        -fno-rtti                                                                     \
        -s                                                                            \
        -mcpu=cortex-m55                                                              \
        -mthumb                                                                       \
        -fno-unwind-tables                                                            \
        -fno-rtti                                                                     \
        -fno-exceptions                                                               \
        -fdata-sections                                                               \
        -ffunction-sections                                                           \
        -mfloat-abi=hard                                                              \
        -Wno-psabi                                                                    \
        -Wno-deprecated-declarations                                                  \
        -fPIC                                                                         \
        -std=gnu++14                                                                  \
        -MD                                                                           \
        -MT kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_remainder.cpp.obj \
        -MF CMakeFiles/portable_kernels.dir/cpu/op_remainder.cpp.obj.d                \
        -o CMakeFiles/portable_kernels.dir/cpu/op_remainder.cpp.obj                   \
        -c <home>/executorch/kernels/portable/cpu/op_remainder.cpp
# builds successfully

# inspecting the generated obj file for op_remainder.cpp
arm-none-eabi-objdump -dw <build>/kernels/portable/CMakeFiles/portable_kernels.dir/cpu/op_remainder.cpp.obj | grep "vcvtne.f64.f32"
40:   eeb7 0ac0       vcvtne.f64.f32  d0, s0 # the instruction which was failing for you

from executorch.

digantdesai avatar digantdesai commented on May 18, 2024

hmm, I am assuming you are using the armv7 baremetal toolchain from here - https://pytorch.org/executorch/stable/executorch-arm-delegate-tutorial.html#download-and-install-the-arm-gnu-aarch32-bare-metal-toolchain

Also can you share full compiler cmdline for generating this object file? Thanks!

from executorch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.