From 3f61bc8718b90d3bc888ee542f28f22599962958 Mon Sep 17 00:00:00 2001 From: zhanghb97 Date: Fri, 17 Mar 2023 21:56:51 +0800 Subject: [PATCH] [thirdparty] Add OpenCV as thirdparty dependency. --- .gitmodules | 3 +++ README.md | 21 ++++++++++++++++++++- thirdparty/opencv | 1 + 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .gitmodules create mode 160000 thirdparty/opencv diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..37745930 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "thirdparty/opencv"] + path = thirdparty/opencv + url = https://github.com/opencv/opencv.git diff --git a/README.md b/README.md index 1e0c39a8..a1882ac6 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,23 @@ Clone the project: $ git clone git@github.com:buddy-compiler/buddy-benchmark.git ``` +## Choose and Build Dependencies + +### Choose Submodules + +``` +$ git submodule update --init +``` + +### Build OpenCV + +``` +$ cd buddy-benchmark/thirdparty/opencv +$ mkdir build && cd build +$ cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Release +$ ninja +``` + ## Image Processing Benchmark Currently, the image processing benchmark includes the following frameworks or optimizers: @@ -74,10 +91,12 @@ $ cd bin && ./image-processing-benchmark