parallelMNN is the heterogeneous execution engine of HOPE.
First check out MNN from github:
git clone https://github.com/alibaba/MNN.git
Clone this repo:
git clone https://gitee.com/ict_huawei_2020/parallelmnn-patch.git
Our parallelMNN is implemented based on MNN version 0.2.1.6, first we need check out the corresponding version:
cd path/to/MNN
git checkout 0.2.1.6
Copy patch file to the directory of MNN and apply it:
cd path/to/parallelmnn-patch
cp ./parallelmnn.patch path/to/MNN/
cd path/to/MNN
git apply parallelmnn.patch
Then follow the instructions in the MNN repo to build MNN for android.
OS platform: Ubuntu 16.04
or later version.
Build target: the benchmark.out
executable binary file defined in path/to/MNN/benchmark/CMakeList.txt
.
You can use the bench_android.sh
in the benchmark directory.
Detailed instrumentations can be found at compilation-Android and build-benchmark-tool.
For any questions, feel free to send an e-mail to xiachunwei@ict.ac.cn