-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[thirdparty] Add OpenCV as thirdparty dependency.
- Loading branch information
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "thirdparty/opencv"] | ||
path = thirdparty/opencv | ||
url = https://github.com/opencv/opencv.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,23 @@ Clone the project: | |
$ git clone [email protected]: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 <image path> <kernel name> <kernelmorph | |
|
||
``` | ||
$ cd buddy-benchmark | ||
$ git lfs pull | ||
$ mkdir build && cd build | ||
$ cmake -G Ninja .. \ | ||
-DDEEP_LEARNING_BENCHMARKS=ON \ | ||
-DOpenCV_DIR=/PATH/TO/OPENCV/BUILD/ \ | ||
-DCMAKE_BUILD_TYPE=RELEASE \ | ||
-DOpenCV_DIR=$PWD/../thirdparty/opencv/build/ \ | ||
-DBUDDY_MLIR_BUILD_DIR=/PATH/TO/BUDDY-MLIR/BUILD/ | ||
$ ninja | ||
``` | ||
|