mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-23 22:13:38 +00:00
Update Dockerfile for ARM build and the build instruction (#93)
* Update Dockerfile for ARM build and build description * Update BUILD.md for ARM build * Fix typo * Kezhan/renaming graph_base.h to graph.h (#95) * rename graph.h to graph_viewer.h * rename graph_base.h to graph.h * Implement StringNormalizer (#69) * Imlpement StringNormalizer Add mixed language tests, test case insentive path. * Create a locale on the fly. Default locale does not seem to create well. * Add CI language-pack-en to make default locale available. Catch and translate locale creation exception to make the message meaningful. * Make sure locales are configured on Ubuntu. * Split the CI pipelines (#94) * Add the split build badges (#96) * Split the CI pipelines * Update build bdge display table in README * Revert Softmax optimizations using openmp. (#97) Revert "Simpler unused parameter in #if defined() switch." This reverts commit6b00e6bb4d. Revert "Better opemmp parallel group count calculation in Softmax parallel running." This reverts commitc530064ebe. Revert "Optimize softmax cpu by parallel using openmp." This reverts commite7bdfa00db. * Delete logo as per marketing requirements (#98) * Update Dockerfile for ARM build and build description * Update BUILD.md for ARM build * Fix typo
This commit is contained in:
parent
c8ae91251e
commit
eeb862ab1a
2 changed files with 8 additions and 5 deletions
10
BUILD.md
10
BUILD.md
|
|
@ -178,9 +178,13 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
|
|||
5. append "-DCMAKE_TOOLCHAIN_FILE=path/to/tool.cmake" to your cmake args, run cmake and make to build it.
|
||||
|
||||
### Native compiling on Linux (SLOWER)
|
||||
Please see [ARM docker file](dockerfiles/Dockerfile.arm32v7). Note that
|
||||
to build in ACR-Build (Azure Container Registry), you may want to split it to two files and run them one by one.
|
||||
If you run this Dockerfile directly in ACR-Build, it is likely to hit their timeout limitation (8 hours).
|
||||
|
||||
Please see [ARM docker file](dockerfiles/Dockerfile.arm32v7). Docker build runs on a Raspberry Pi 3B with Raspbian Stretch Lite OS (Desktop version will run out memory when linking the .so file) will take 8-9 hours in total. If you want to use [Azure Container Registry Tasks](https://docs.microsoft.com/en-us/azure/container-registry/container-registry-tasks-overview) to build the Docker image in cloud, you may want to split this Dockerfile to two steps:
|
||||
|
||||
1. Build environment image creation: steps before onnxruntime repo clone
|
||||
2. ONNX Runtime and Python binding creation: the rest of steps in the original Dockerfile with step 1 output as base image.
|
||||
|
||||
By doing this, you could avoid hit the ACR-Tasks build timeout (8 hours)
|
||||
|
||||
### Cross compiling on Windows
|
||||
(TODO)
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@ RUN make
|
|||
RUN sudo make install
|
||||
|
||||
# Prepare onnxruntime Repo
|
||||
# WORKDIR /code/onnxruntime
|
||||
# RUN git clone --recursive https://github.com/Microsoft/onnxruntime
|
||||
RUN git clone --recursive https://github.com/Microsoft/onnxruntime
|
||||
|
||||
WORKDIR /code/onnxruntime
|
||||
ARG BUILDTYPE=Debug
|
||||
|
|
|
|||
Loading…
Reference in a new issue