Suppress host/device usage warning #2192
Merged
rapids-bot[bot] merged 2 commits intomainfrom Dec 20, 2025
Merged
Conversation
3 tasks
bdice
approved these changes
Dec 20, 2025
Collaborator
|
/merge |
Collaborator
|
Opened #2193 as a follow-up investigation. |
3 tasks
rapids-bot bot
pushed a commit
that referenced
this pull request
Jan 7, 2026
This is an extension of the workaround in #2192 / #2193 to address the warnings seen in RMM benchmarks: ``` [220/231] Building CUDA object benchmarks/CMakeFiles/UVECTOR_BENCH.dir/device_uvector/device_uvector_bench.cu.o /home/coder/rmm/cpp/include/rmm/detail/cccl_adaptors.hpp(306): warning #20011-D: calling a __host__ function("rmm::detail::cccl_async_resource_ref< ::cuda::mr::__4::resource_ref< ::cuda::mr::__4::device_accessible > > ::cccl_async_resource_ref(const rmm::detail::cccl_async_resource_ref< ::cuda::mr::__4::resource_ref< ::cuda::mr::__4::device_accessible > > &)") from a __host__ __device__ function("rmm::mr::thrust_allocator<int> ::thrust_allocator") is not allowed Remark: The warnings can be suppressed with "-diag-suppress <warning-number>" ``` Authors: - Bradley Dice (https://github.com/bdice) Approvers: - Rong Ou (https://github.com/rongou) - Paul Taylor (https://github.com/trxcllnt) URL: #2197
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
This pragma is a workaround for cudf build issues, see e.g. https://github.com/rapidsai/cudf/actions/runs/20384141895/job/58581416851?pr=20929. The thrust allocator class needs to be reworked eventually anyway due to the upstream allocator being deprecated, so this workaround is acceptable for now. I'm entirely confused as to why this line is where the suppression is needed and I suspect that this is a completely false diagnostic from nvcc, but for now I think it's acceptable to add this as a workaround to get builds passing. I verified that this fixes cudf builds in a local devcontainer reproducing the issue.
Checklist