From 4d35c0f6915103403ea334f58399bcb6b80f5e24 Mon Sep 17 00:00:00 2001 From: David Gardner Date: Fri, 28 Jun 2024 14:30:49 -0700 Subject: [PATCH] Add cuda and cudf to link targets --- examples/developer_guide/3_simple_cpp_stage/CMakeLists.txt | 3 ++- .../src/simple_cpp_stage/_lib/CMakeLists.txt | 2 ++ examples/developer_guide/4_rabbitmq_cpp_stage/CMakeLists.txt | 2 +- .../4_rabbitmq_cpp_stage/cmake/dependencies.cmake | 1 + .../src/rabbitmq_cpp_stage/_lib/CMakeLists.txt | 2 ++ 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/examples/developer_guide/3_simple_cpp_stage/CMakeLists.txt b/examples/developer_guide/3_simple_cpp_stage/CMakeLists.txt index 5d2459d295..b55eb12a20 100644 --- a/examples/developer_guide/3_simple_cpp_stage/CMakeLists.txt +++ b/examples/developer_guide/3_simple_cpp_stage/CMakeLists.txt @@ -25,7 +25,7 @@ mark_as_advanced(MORPHEUS_CACHE_DIR) list(PREPEND CMAKE_PREFIX_PATH "$ENV{CONDA_PREFIX}") project(3_simple_cpp_stage - VERSION 24.03.00 + VERSION 24.06.00 LANGUAGES C CXX ) @@ -48,6 +48,7 @@ rapids_cpm_init() morpheus_utils_python_configure() rapids_find_package(CUDAToolkit REQUIRED) +rapids_find_package(cudf REQUIRED) set(CMAKE_POSITION_INDEPENDENT_CODE TRUE) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) diff --git a/examples/developer_guide/3_simple_cpp_stage/src/simple_cpp_stage/_lib/CMakeLists.txt b/examples/developer_guide/3_simple_cpp_stage/src/simple_cpp_stage/_lib/CMakeLists.txt index 55f9082d4c..3301424433 100644 --- a/examples/developer_guide/3_simple_cpp_stage/src/simple_cpp_stage/_lib/CMakeLists.txt +++ b/examples/developer_guide/3_simple_cpp_stage/src/simple_cpp_stage/_lib/CMakeLists.txt @@ -22,6 +22,8 @@ morpheus_add_pybind11_module(pass_thru_cpp $ LINK_TARGETS morpheus + CUDA::nvtx3 + cudf::cudf ) list(POP_BACK CMAKE_MESSAGE_CONTEXT) diff --git a/examples/developer_guide/4_rabbitmq_cpp_stage/CMakeLists.txt b/examples/developer_guide/4_rabbitmq_cpp_stage/CMakeLists.txt index f741797a34..97bbd4ccf7 100644 --- a/examples/developer_guide/4_rabbitmq_cpp_stage/CMakeLists.txt +++ b/examples/developer_guide/4_rabbitmq_cpp_stage/CMakeLists.txt @@ -26,7 +26,7 @@ list(PREPEND CMAKE_PREFIX_PATH "$ENV{CONDA_PREFIX}") list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") project(4_rabbitmq_cpp_stage - VERSION 24.03.00 + VERSION 24.06.00 LANGUAGES C CXX ) diff --git a/examples/developer_guide/4_rabbitmq_cpp_stage/cmake/dependencies.cmake b/examples/developer_guide/4_rabbitmq_cpp_stage/cmake/dependencies.cmake index 56a692f7b4..d120cc653d 100644 --- a/examples/developer_guide/4_rabbitmq_cpp_stage/cmake/dependencies.cmake +++ b/examples/developer_guide/4_rabbitmq_cpp_stage/cmake/dependencies.cmake @@ -16,6 +16,7 @@ list(APPEND CMAKE_MESSAGE_CONTEXT "dep") rapids_find_package(CUDAToolkit REQUIRED) +rapids_find_package(cudf REQUIRED) set(RABBITMQ_VERSION "0.12.0" CACHE STRING "Version of RabbitMQ-C to use") include(Configure_rabbitmq) diff --git a/examples/developer_guide/4_rabbitmq_cpp_stage/src/rabbitmq_cpp_stage/_lib/CMakeLists.txt b/examples/developer_guide/4_rabbitmq_cpp_stage/src/rabbitmq_cpp_stage/_lib/CMakeLists.txt index ba768f7a2a..0f3c768dbc 100644 --- a/examples/developer_guide/4_rabbitmq_cpp_stage/src/rabbitmq_cpp_stage/_lib/CMakeLists.txt +++ b/examples/developer_guide/4_rabbitmq_cpp_stage/src/rabbitmq_cpp_stage/_lib/CMakeLists.txt @@ -23,6 +23,8 @@ morpheus_add_pybind11_module(rabbitmq_cpp_stage ${SimpleAmqpClient_SOURCE_DIR}/src LINK_TARGETS morpheus + CUDA::nvtx3 + cudf::cudf rabbitmq SimpleAmqpClient )