Repository navigation
Upgrade to nvcomp 5.3.0.16 #23294
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
Upgrade to nvcomp 5.3.0.16 #23294
Changes from all commits
9a262b2
a460146
edec703
2bfd737
f6c32a2
05a6322
044b208
8fead2a
70c7f69
f404547
c9be69e
5a80603
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 |
|---|---|---|
|
|
@@ -26,7 +26,7 @@ flatbuffers_version: | |
| - "=24.3.25" | ||
|
|
||
| nvcomp_version: | ||
| - "=5.2.0.10" | ||
| - "=5.3.0.16" | ||
|
|
||
| zlib_version: | ||
| - ">=1.2.13" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1244,21 +1244,6 @@ target_compile_definitions(cudf PRIVATE $<$<BOOL:${CUDF_KVIKIO_REMOTE_IO}>:CUDF_ | |
| # https://github.com/NVIDIA/cccl/pull/2844 | ||
| target_compile_definitions(cudf PRIVATE THRUST_FORCE_32_BIT_OFFSET_TYPE=1 CCCL_AVOID_SORT_UNROLL=1) | ||
|
|
||
| # Specify the target module library dependencies | ||
| target_link_libraries( | ||
| cudf | ||
| PUBLIC CCCL::CCCL $<BUILD_LOCAL_INTERFACE:BS::thread_pool> | ||
| PRIVATE $<BUILD_LOCAL_INTERFACE:nvtx3::nvtx3-cpp> | ||
| $<BUILD_LOCAL_INTERFACE:cuco::cuco> | ||
| ZLIB::ZLIB | ||
| ${CUDF_nvcomp_TARGET} | ||
| kvikio::kvikio | ||
| ${CUDF_nanoarrow_TARGET} | ||
| zstd | ||
| $<BUILD_LOCAL_INTERFACE:xxhash> | ||
| rtcx::rtcx | ||
| ) | ||
|
|
||
| # When rmm is a static library being absorbed via whole-archive, strip nvtx3 from its public | ||
| # interface. We bundle nvtx3 headers directly into cudf's install tree, so consumers get them from | ||
| # cudf's include path without needing the nvtx3 target or find_dependency(nvtx3). | ||
|
|
@@ -1280,7 +1265,10 @@ endif() | |
| # dependencies and export set metadata into cudf's interface. | ||
| set(_absorbed_deps rmm rapids_logger) | ||
| foreach(_dep IN LISTS _absorbed_deps) | ||
| set(_dep_link "${_dep}::${_dep}") | ||
| if(NOT TARGET "${_dep}::${_dep}") | ||
| continue() | ||
| endif() | ||
| get_target_property(_dep_link "${_dep}::${_dep}" NAME) | ||
| get_target_property(_target_type ${_dep_link} TYPE) | ||
| if(NOT BUILD_SHARED_LIBS OR NOT _target_type STREQUAL "STATIC_LIBRARY") | ||
| # If not building a shared library, or the dependency is not a static library, link normally. | ||
|
|
@@ -1307,11 +1295,14 @@ foreach(_dep IN LISTS _absorbed_deps) | |
| target_include_directories(cudf PUBLIC ${_dep_includes}) | ||
| endif() | ||
|
|
||
| # Wrap with WHOLE_ARCHIVE + BUILD_INTERFACE so the static lib is absorbed into libcudf.so and | ||
| # hidden from the installed interface. | ||
| target_link_libraries( | ||
| cudf PRIVATE "$<BUILD_INTERFACE:$<LINK_LIBRARY:WHOLE_ARCHIVE,${_dep_link}>>" | ||
| ) | ||
| # nvcomp_static already whole-archives rmm and rapids_logger. | ||
| if(NOT CUDF_nvcomp_TARGET STREQUAL "nvcomp::nvcomp_static") | ||
| # Wrap with WHOLE_ARCHIVE + BUILD_INTERFACE so the static lib is absorbed into libcudf.so and | ||
| # hidden from the installed interface. | ||
| target_link_libraries( | ||
| cudf PRIVATE "$<BUILD_INTERFACE:$<LINK_LIBRARY:WHOLE_ARCHIVE,${_dep_link}>>" | ||
| ) | ||
| endif() | ||
|
|
||
| # Merge the absorbed library's export set metadata into cudf-exports so the installed config has | ||
| # find_dependency() calls for all transitive deps (e.g. nvtx3, CUDAToolkit from rmm). | ||
|
|
@@ -1341,6 +1332,29 @@ foreach(_dep IN LISTS _absorbed_deps) | |
| endforeach() | ||
| endforeach() | ||
|
|
||
| # Specify the target module library dependencies We do this after all the WHOLE_ARCHIVES to protect | ||
| # against any of these libraries ever adding a rapids_logger / rmm hidden dependency | ||
| target_link_libraries( | ||
| cudf | ||
| PUBLIC CCCL::CCCL $<BUILD_LOCAL_INTERFACE:BS::thread_pool> | ||
| PRIVATE $<BUILD_LOCAL_INTERFACE:nvtx3::nvtx3-cpp> $<BUILD_LOCAL_INTERFACE:cuco::cuco> ZLIB::ZLIB | ||
| kvikio::kvikio ${CUDF_nanoarrow_TARGET} zstd $<BUILD_LOCAL_INTERFACE:xxhash> rtcx::rtcx | ||
| ) | ||
|
|
||
| if(TARGET spdlog::spdlog) | ||
|
Contributor
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. Why was spdlog different compared to rmm and rapids-logger?
Contributor
Author
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. f404547 was needed because of this issue where I don't know if this is the right fix, or if the test itself is flawed.
Contributor
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. Okay that makes sense, rapids-logger and rmm are part of the public API and have to be exported |
||
| get_target_property(_spdlog_link spdlog::spdlog NAME) | ||
| get_target_property(_spdlog_type ${_spdlog_link} TYPE) | ||
| if(BUILD_SHARED_LIBS AND _spdlog_type STREQUAL "STATIC_LIBRARY") | ||
| target_link_libraries( | ||
| cudf PRIVATE "$<BUILD_INTERFACE:$<LINK_LIBRARY:WHOLE_ARCHIVE,${_spdlog_link}>>" | ||
| ) | ||
| else() | ||
| target_link_libraries(cudf PRIVATE ${_spdlog_link}) | ||
| endif() | ||
| endif() | ||
|
|
||
| target_link_libraries(cudf PRIVATE ${CUDF_nvcomp_TARGET}) | ||
|
|
||
| # Add Conda library, and include paths if specified | ||
| if(TARGET conda_env) | ||
| target_link_libraries(cudf PRIVATE conda_env) | ||
|
|
||
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.
There is no promise that nvcomp is going to whole archive the same version of rmm that cudf has built against. We need to whole archive rmm even when nvcomp_static is being 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.
This was changed in 5a80603. Prior to that, CI failed in the linters job: https://github.com/rapidsai/cudf/actions/runs/30135081055/job/89617508579
Errors look like:
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.
Yeah you have to disable or ignore those linter checks. We know we have duplicate symbols in our archives since rapids-logger is being embedded into nvcomp. We don't have a way to avoid that currently and are relying on the fact that rapids-logger is ABI stable.