Skip to content

Commit

Permalink
Fix cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
JayjeetAtGithub committed Aug 23, 2024
1 parent 9c5ac50 commit 6b40484
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions cpp/benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ target_include_directories(
"$<BUILD_INTERFACE:${CUDF_SOURCE_DIR}/src>"
)

add_executable(datagen common/cudf_tpch_datagen/datagen.cpp)
target_link_libraries(
datagen PRIVATE cudf_tpch_datagen benchmark::benchmark_main $<TARGET_NAME_IF_EXISTS:conda_env>
)

# ##################################################################################################
# * compiler function -----------------------------------------------------------------------------

Expand Down Expand Up @@ -98,8 +103,8 @@ function(ConfigureBench CMAKE_BENCH_NAME)
CUDA_STANDARD_REQUIRED ON
)
target_link_libraries(
${CMAKE_BENCH_NAME} PRIVATE cudf_benchmark_common cudf_tpch_datagen cudf_datagen
benchmark::benchmark_main $<TARGET_NAME_IF_EXISTS:conda_env>
${CMAKE_BENCH_NAME} PRIVATE cudf_benchmark_common cudf_datagen benchmark::benchmark_main
$<TARGET_NAME_IF_EXISTS:conda_env>
)
add_custom_command(
OUTPUT CUDF_BENCHMARKS
Expand Down Expand Up @@ -138,8 +143,6 @@ function(ConfigureNVBench CMAKE_BENCH_NAME)
)
endfunction()

ConfigureBench(DATAGEN common/cudf_tpch_datagen/datagen.cpp)

# ##################################################################################################
# * column benchmarks -----------------------------------------------------------------------------
ConfigureBench(COLUMN_CONCAT_BENCH column/concatenate.cpp)
Expand Down

0 comments on commit 6b40484

Please sign in to comment.