-
Notifications
You must be signed in to change notification settings - Fork 917
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ConfigureNVBench to avoid concurrent main() entry points #8662
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,6 @@ target_link_libraries(cudf_datagen | |
GTest::gmock_main | ||
GTest::gtest_main | ||
benchmark::benchmark | ||
nvbench::main | ||
Threads::Threads | ||
cudf) | ||
|
||
|
@@ -51,11 +50,19 @@ target_link_libraries(cudf_benchmark_common PRIVATE cudf_datagen) | |
function(ConfigureBench CMAKE_BENCH_NAME) | ||
add_executable(${CMAKE_BENCH_NAME} ${ARGN}) | ||
set_target_properties(${CMAKE_BENCH_NAME} | ||
PROPERTIES RUNTIME_OUTPUT_DIRECTORY "$<BUILD_INTERFACE:${CUDF_BINARY_DIR}/gbenchmarks>") | ||
PROPERTIES RUNTIME_OUTPUT_DIRECTORY "$<BUILD_INTERFACE:${CUDF_BINARY_DIR}/benchmarks>") | ||
target_link_libraries(${CMAKE_BENCH_NAME} | ||
PRIVATE cudf_benchmark_common cudf_datagen benchmark::benchmark_main) | ||
endfunction() | ||
|
||
function(ConfigureNVBench CMAKE_BENCH_NAME) | ||
add_executable(${CMAKE_BENCH_NAME} ${ARGN}) | ||
set_target_properties(${CMAKE_BENCH_NAME} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't know if we want to place benchmarks in different directories based on if they used For that reason I think placing all the benchmarks in either the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right, I hesitate on this different directories idea also. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I think most developers won't remember what benchmarks use nvbench, and will be confused on the split. This might be the perfect time to have all benchmarks in |
||
PROPERTIES RUNTIME_OUTPUT_DIRECTORY "$<BUILD_INTERFACE:${CUDF_BINARY_DIR}/benchmarks>") | ||
target_link_libraries(${CMAKE_BENCH_NAME} | ||
PRIVATE cudf_benchmark_common cudf_datagen nvbench::main) | ||
endfunction() | ||
|
||
################################################################################################### | ||
# - column benchmarks ----------------------------------------------------------------------------- | ||
ConfigureBench(COLUMN_CONCAT_BENCH column/concatenate_benchmark.cpp) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is this used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea behind this PR is to finally replace all current benchmarks (which use google benchmark) by using
nvbench
. I'm working on the first use case of this macro so it's not used yet.