Patch cccl and cuco so that all CUDA kernels they provide have internal linkage #14735
+2,082
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Patch both CCCL and CUCO to have only internal linkage.
For cuco I am working on upstreaming these changes ( NVIDIA/cuCollections#422 ). Once that is accepted and we have validated that moving cuco is stable ( e.g. changes around
cuco::experimental::static_set
) we can drop this patch set.For cccl the long term fix is to move to CCCL 2.3+, but due to issues ( NVIDIA/cccl#1249, maybe others ) that isn't viable currently. If these patches work for cudf CI, I believe we can move them to rapids-cmake and have the
rapids_cpm_cccl
package automatically provide them.Since the CCCL changes mean C++ and CUDA sources have non compatible ABI's, we need to specify
THRUST_DISABLE_ABI_NAMESPACE
. Likewise we need to specifyTHRUST_IGNORE_ABI_NAMESPACE_ERROR
so that we don't change our ABI ( since it depends on thrust types ).Checklist