Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .cmake-format
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ with section("parse"):
'NAME': '*',
'SRCS': '*',
'LIBS': '*' ,
'LIBDIRS': '*'}},
'LIBDIRS': '*',
'TESTARGS': '*'}},
'add_umf_executable': {
"pargs": 0,
"flags": [],
Expand Down
9 changes: 6 additions & 3 deletions benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ function(add_umf_benchmark)
# * SRCS - source files
# * LIBS - libraries to be linked with
# * LIBDIRS - directories of libraries to be linked with
# * TESTARGS - additional arguments to be passed to the add_test
set(oneValueArgs NAME)
set(multiValueArgs SRCS LIBS LIBDIRS)
set(multiValueArgs SRCS LIBS LIBDIRS TESTARGS)
cmake_parse_arguments(
ARG
""
Expand All @@ -66,7 +67,7 @@ function(add_umf_benchmark)

add_test(
NAME ${BENCH_NAME}
COMMAND ${BENCH_NAME}
COMMAND ${BENCH_NAME} ${ARG_TESTARGS}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})

if("${BENCH_NAME}" STREQUAL "umf-ubench")
Expand Down Expand Up @@ -148,7 +149,9 @@ add_umf_benchmark(
NAME benchmark
SRCS benchmark.cpp
LIBS ${LIBS_OPTIONAL} benchmark::benchmark
LIBDIRS ${LIB_DIRS})
# limit running benchmarks in CI tests to single-threaded
LIBDIRS ${LIB_DIRS}
TESTARGS --benchmark_filter=threads:1$)

if(UMF_BUILD_BENCHMARKS_MT)
add_umf_benchmark(
Expand Down
Loading