Skip to content

Commit 81ff111

Browse files
committed
Add mt bench run to CI
1 parent 5739121 commit 81ff111

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/benchmarks.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
-DCMAKE_C_COMPILER=${{matrix.compiler.c}}
3131
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
3232
-DUMF_BUILD_BENCHMARKS=ON
33+
-DUMF_BUILD_BENCHMARKS_MT=ON
3334
-DUMF_BUILD_TESTS=OFF
3435
-DUMF_FORMAT_CODE_STYLE=OFF
3536
-DUMF_DEVELOPER_MODE=OFF
@@ -57,3 +58,7 @@ jobs:
5758
fi
5859
cat $LOG
5960
echo "[ PASSED ] The CI benchmark job PASSED."
61+
62+
- name: Run MT benchmarks
63+
working-directory: ${{github.workspace}}/build
64+
run: ./benchmark/multithread_bench

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ For building tests, multithreaded benchmarks and Disjoint Pool:
8686
UMF comes with a single-threaded micro benchmark based on [ubench](https://github.com/sheredom/ubench.h).
8787
In order to build the benchmark, the `UMF_BUILD_BENCHMARKS` CMake configuration flag has to be turned `ON`.
8888

89-
UMF also provides multithreaded benchmarks that can be enabled bysetting the `UMF_BUILD_BENCHMARKS_MT` CMake
90-
configuration flag to `ON`. Multithreaded benchmarks require a C++ support.
89+
UMF also provides multithreaded benchmarks that can be enabled by setting both
90+
`UMF_BUILD_BENCHMARKS` and `UMF_BUILD_BENCHMARKS_MT` CMake
91+
configuration flags to `ON`. Multithreaded benchmarks require a C++ support.
9192

9293
### Windows
9394

benchmark/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44

55
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
6-
message(WARNING "The ubench SHOULD NOT be run in the Debug build type!")
6+
message(WARNING "The benchmarks SHOULD NOT be run in the Debug build type!")
77
endif()
88

99
if(UMF_BUILD_LIBUMF_POOL_DISJOINT)

0 commit comments

Comments
 (0)