Skip to content

Commit 35b78d8

Browse files
committed
Link to nvtx3::nvtx3-cpp instead of nvToolsExt.
1 parent 0fe9ba7 commit 35b78d8

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

cpp/examples/billion_rows/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ add_library(groupby_results OBJECT groupby_results.cpp)
2424
target_link_libraries(groupby_results PRIVATE cudf::cudf)
2525

2626
add_executable(brc brc.cpp)
27-
target_link_libraries(brc PRIVATE cudf::cudf nvToolsExt $<TARGET_OBJECTS:groupby_results>)
27+
target_link_libraries(brc PRIVATE cudf::cudf $<BUILD_LOCAL_INTERFACE:nvtx3::nvtx3-cpp> $<TARGET_OBJECTS:groupby_results>)
2828
install(TARGETS brc DESTINATION bin/examples/libcudf)
2929

3030
add_executable(brc_chunks brc_chunks.cpp)
31-
target_link_libraries(brc_chunks PRIVATE cudf::cudf nvToolsExt $<TARGET_OBJECTS:groupby_results>)
31+
target_link_libraries(brc_chunks PRIVATE cudf::cudf $<BUILD_LOCAL_INTERFACE:nvtx3::nvtx3-cpp> $<TARGET_OBJECTS:groupby_results>)
3232
install(TARGETS brc_chunks DESTINATION bin/examples/libcudf)
3333

3434
add_executable(brc_pipeline brc_pipeline.cpp)
35-
target_link_libraries(brc_pipeline PRIVATE cudf::cudf nvToolsExt $<TARGET_OBJECTS:groupby_results>)
35+
target_link_libraries(brc_pipeline PRIVATE cudf::cudf $<BUILD_LOCAL_INTERFACE:nvtx3::nvtx3-cpp> $<TARGET_OBJECTS:groupby_results>)
3636
install(TARGETS brc_pipeline DESTINATION bin/examples/libcudf)

cpp/examples/parquet_io/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ target_link_libraries(parquet_io_utils PRIVATE cudf::cudf)
2424

2525
# Build and install parquet_io
2626
add_executable(parquet_io parquet_io.cpp)
27-
target_link_libraries(parquet_io PRIVATE cudf::cudf nvToolsExt $<TARGET_OBJECTS:parquet_io_utils>)
27+
target_link_libraries(parquet_io PRIVATE cudf::cudf $<BUILD_LOCAL_INTERFACE:nvtx3::nvtx3-cpp> $<TARGET_OBJECTS:parquet_io_utils>)
2828
target_compile_features(parquet_io PRIVATE cxx_std_17)
2929
install(TARGETS parquet_io DESTINATION bin/examples/libcudf)
3030

3131
# Build and install parquet_io_multithreaded
3232
add_executable(parquet_io_multithreaded parquet_io_multithreaded.cpp)
3333
target_link_libraries(
34-
parquet_io_multithreaded PRIVATE cudf::cudf nvToolsExt $<TARGET_OBJECTS:parquet_io_utils>
34+
parquet_io_multithreaded PRIVATE cudf::cudf $<BUILD_LOCAL_INTERFACE:nvtx3::nvtx3-cpp> $<TARGET_OBJECTS:parquet_io_utils>
3535
)
3636
target_compile_features(parquet_io_multithreaded PRIVATE cxx_std_17)
3737
install(TARGETS parquet_io_multithreaded DESTINATION bin/examples/libcudf)

cpp/examples/strings/CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,25 @@ list(APPEND CUDF_CUDA_FLAGS --expt-extended-lambda --expt-relaxed-constexpr)
2222

2323
add_executable(libcudf_apis libcudf_apis.cpp)
2424
target_compile_features(libcudf_apis PRIVATE cxx_std_17)
25-
target_link_libraries(libcudf_apis PRIVATE cudf::cudf nvToolsExt)
25+
target_link_libraries(libcudf_apis PRIVATE cudf::cudf $<BUILD_LOCAL_INTERFACE:nvtx3::nvtx3-cpp>)
2626
install(TARGETS libcudf_apis DESTINATION bin/examples/libcudf)
2727

2828
add_executable(custom_with_malloc custom_with_malloc.cu)
2929
target_compile_features(custom_with_malloc PRIVATE cxx_std_17)
3030
target_compile_options(custom_with_malloc PRIVATE "$<$<COMPILE_LANGUAGE:CUDA>:${CUDF_CUDA_FLAGS}>")
31-
target_link_libraries(custom_with_malloc PRIVATE cudf::cudf nvToolsExt)
31+
target_link_libraries(custom_with_malloc PRIVATE cudf::cudf $<BUILD_LOCAL_INTERFACE:nvtx3::nvtx3-cpp>)
3232
install(TARGETS custom_with_malloc DESTINATION bin/examples/libcudf)
3333

3434
add_executable(custom_prealloc custom_prealloc.cu)
3535
target_compile_features(custom_prealloc PRIVATE cxx_std_17)
3636
target_compile_options(custom_prealloc PRIVATE "$<$<COMPILE_LANGUAGE:CUDA>:${CUDF_CUDA_FLAGS}>")
37-
target_link_libraries(custom_prealloc PRIVATE cudf::cudf nvToolsExt)
37+
target_link_libraries(custom_prealloc PRIVATE cudf::cudf $<BUILD_LOCAL_INTERFACE:nvtx3::nvtx3-cpp>)
3838
install(TARGETS custom_prealloc DESTINATION bin/examples/libcudf)
3939

4040
add_executable(custom_optimized custom_optimized.cu)
4141
target_compile_features(custom_optimized PRIVATE cxx_std_17)
4242
target_compile_options(custom_optimized PRIVATE "$<$<COMPILE_LANGUAGE:CUDA>:${CUDF_CUDA_FLAGS}>")
43-
target_link_libraries(custom_optimized PRIVATE cudf::cudf nvToolsExt)
43+
target_link_libraries(custom_optimized PRIVATE cudf::cudf $<BUILD_LOCAL_INTERFACE:nvtx3::nvtx3-cpp>)
4444
install(TARGETS custom_optimized DESTINATION bin/examples/libcudf)
4545

4646
install(FILES ${CMAKE_CURRENT_LIST_DIR}/names.csv DESTINATION bin/examples/libcudf)

0 commit comments

Comments
 (0)