Skip to content

Commit e511e25

Browse files
authored
[DAP] update CMakeLists.txt and README.md (#27)
1 parent ec5af24 commit e511e25

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

CMakeLists.txt

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,19 @@ endif()
104104
# Find OpenCV
105105
#-------------------------------------------------------------------------------
106106

107-
find_package(OpenCV REQUIRED CONFIG)
108-
include_directories(${OpenCV_INCLUDE_DIRS})
107+
if(DEFINED IMAGE_PROCESSING_BENCHMARKS OR DEEP_LEARNING_BENCHMARKS)
108+
find_package(OpenCV REQUIRED CONFIG)
109+
include_directories(${OpenCV_INCLUDE_DIRS})
110+
endif()
109111

110112
#-------------------------------------------------------------------------------
111113
# Find PNG
112114
#-------------------------------------------------------------------------------
113115

114-
find_package(PNG REQUIRED)
115-
include_directories(${PNG_INCLUDE_DIR})
116+
if(DEFINED IMAGE_PROCESSING_BENCHMARKS OR DEEP_LEARNING_BENCHMARKS)
117+
find_package(PNG REQUIRED)
118+
include_directories(${PNG_INCLUDE_DIR})
119+
endif()
116120

117121
#-------------------------------------------------------------------------------
118122
# Hardware detection

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ $ cd <path to build>/bin && ./depthwise-conv-2d-nhwc-hwc-benchmark
9696

9797
## Audio Processing Benchmark
9898

99-
Currently, the image processing benchmark includes the following frameworks or optimizers:
99+
Currently, the audio processing benchmark includes the following frameworks or optimizers:
100100

101101
- KFR ([link](https://github.com/kfrlib/kfr))
102102

@@ -109,7 +109,7 @@ $ cmake -G Ninja .. \
109109
-DAUDIO_PROCESSING_BENCHMARKS=ON \
110110
-DCMAKE_CXX_COMPILER=clang++ \
111111
-DKFR_DIR=/PATH/TO/KFR/SOURCE/CODE \
112-
$ ninja
112+
$ ninja audio-processing-benchmark
113113
```
114114

115115
## Testing

0 commit comments

Comments
 (0)