diff options
author | Narumol Prangnawarat <narumol.prangnawarat@arm.com> | 2020-02-11 12:19:14 +0000 |
---|---|---|
committer | Narumol Prangnawarat <narumol.prangnawarat@arm.com> | 2020-02-12 10:02:25 +0000 |
commit | 9a87e45d135f1e049870275b19c0a034c60abb9e (patch) | |
tree | 6fe6b6f210f4345d5283d06c61239ae243e5ed50 /src/dynamic/README.md | |
parent | 13757bd8149d948ae79a778b404626a621f18573 (diff) | |
download | armnn-9a87e45d135f1e049870275b19c0a034c60abb9e.tar.gz |
IVGCVSW-4403 Update readme for sample standalone dynamic backend
and remove standalone dynamic reference backend
Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com>
Change-Id: I33bc82d8b07450a9c3f6c5dc415eda8427aec57b
Diffstat (limited to 'src/dynamic/README.md')
-rw-r--r-- | src/dynamic/README.md | 40 |
1 files changed, 35 insertions, 5 deletions
diff --git a/src/dynamic/README.md b/src/dynamic/README.md index ccdb668e73..d0e4d778d2 100644 --- a/src/dynamic/README.md +++ b/src/dynamic/README.md @@ -10,14 +10,38 @@ The details of how to add dynamic backends can be found in [src/backends/README. ## Standalone dynamic backend example -The source code includes an example that is used to generate a dynamic implementation of the reference backend -is provided at +The source code includes an example that is used to generate a simple dynamic backend and is provided at -[RefDynamicBackend.hpp](./reference/RefDynamicBackend.hpp) -[RefDynamicBackend.cpp](./reference/RefDynamicBackend.cpp) +[SampleDynamicBackend.hpp](./sample/SampleDynamicBackend.hpp) +[SampleDynamicBackend.cpp](./sample/SampleDynamicBackend.cpp) + +The details of how to create backends can be found in [src/backends/README.md](../backends/README.md). The makefile used for building the standalone reference dynamic backend is also provided: -[CMakeLists.txt](./reference/CMakeLists.txt) +[CMakeLists.txt](./sample/CMakeLists.txt) + +### Standalone dynamic backend build + +The easiest way to build a standalone sample dynamic backend is to build using environment configured compiler +and specify the Arm NN path and Boost path to the CMake command: + +```shell +cd ${DYNAMIC_BACKEND_DIR} +mkdir build +cd build +cmake -DBOOST_ROOT=${BOOST_PATH} \ + -DBoost_SYSTEM_LIBRARY=${BOOST_PATH}/lib/libboost_system.a \ + -DBoost_FILESYSTEM_LIBRARY=${BOOST_PATH}/lib/libboost_filesystem.a \ + -DARMNN_PATH=${ARMNN_PAH}/libarmnn.so .. +``` + +Then run the build + +```shell +make +``` + +The library will be created in ${DYNAMIC_BACKEND_DIR}/build. ## Dynamic backend loading paths @@ -30,4 +54,10 @@ A list of (absolute) paths can be specified at compile-time by setting a define -DDYNAMIC_BACKEND_PATHS="PATH_1:PATH_2...:PATH_N" ``` +Example for setting the path to the sample standalone dynamic backend built from the previous step: + +```shell +-DDYNAMIC_BACKEND_PATHS=${DYNAMIC_BACKEND_DIR}/build +``` + The paths will be processed in the same order as they are indicated in the macro. |