Skip to content

Commit

Permalink
Add cuda and cudf to link targets for C++ examples (#1777)
Browse files Browse the repository at this point in the history
* Also update out of date version strings (refer: #1779)

Closes #1772

## By Submitting this PR I confirm:
- I am familiar with the [Contributing Guidelines](https://github.com/nv-morpheus/Morpheus/blob/main/docs/source/developer_guide/contributing.md).
- When the PR is ready for review, new or existing tests cover these changes.
- When the PR is ready for review, the documentation is up to date with these changes.

Authors:
  - David Gardner (https://github.com/dagardner-nv)

Approvers:
  - Michael Demoret (https://github.com/mdemoret-nv)

URL: #1777
  • Loading branch information
dagardner-nv authored Jun 28, 2024
1 parent 59109fe commit caf6c07
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/developer_guide/3_simple_cpp_stage/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand All @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ morpheus_add_pybind11_module(pass_thru_cpp
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
LINK_TARGETS
morpheus
CUDA::nvtx3
cudf::cudf
)

list(POP_BACK CMAKE_MESSAGE_CONTEXT)
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ morpheus_add_pybind11_module(rabbitmq_cpp_stage
${SimpleAmqpClient_SOURCE_DIR}/src
LINK_TARGETS
morpheus
CUDA::nvtx3
cudf::cudf
rabbitmq
SimpleAmqpClient
)
Expand Down

0 comments on commit caf6c07

Please sign in to comment.