Comments (3)
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.
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.
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)
- Android app - Loading model - Failed parsing tensor at index 0: 0x12 HOT 10
- Does executorch support qat quant for qualcomm qnn backend?
- Remove Arm SDK step from docker image
- Qualcomm AI Engine Direct - support 4bit quantization HOT 1
- buck2 build failure HOT 7
- Unable to run the iOS demo app HOT 4
- ImportError: cannot import name '_transform' from 'executorch.exir.program._program' HOT 3
- AttributeError: module 'mpmath' has no attribute 'rational' HOT 1
- How do you get executorch to run within Mbed OS? HOT 3
- mpmath package version
- ExecuTorch: Failed to install inmemoryfs extension. HOT 2
- How to analyze executorch .pte file performance? HOT 6
- Operator torch._ops.quantized_decomposed.quantize_per_tensor.default is not Aten Canonical HOT 4
- Move Arm bare-metal platform builds to C++17, and include arm builds and aot flow in standard precommits HOT 1
- ’xnn_executor_runner' is missing in the documentation 'Building and Running ExecuTorch with XNNPACK Backend'
- Unknown target `generated_lib_all_ops` from package `root//kernels/portable`.
- The core has been dumped after alternately reasoning three times about the two preloaded models
- ExecuTorch main branch setup fails while stable branch works HOT 4
- nn.BatchNorm2d is not supported at exir.to_edge HOT 9
- How to perform inference and gathering accuracy metrics on executorch model
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from executorch.