-
Notifications
You must be signed in to change notification settings - Fork 17
Migrate stream APIs from rmm::cuda_stream_view to cuda::stream_ref #209
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
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
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.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: rapidsai/nvforest
Length of output: 7187
🏁 Script executed:
Repository: rapidsai/nvforest
Length of output: 30278
🌐 Web query:
NVIDIA CCCL libcudacxx cuda/stream cuda::stream_ref CUDA 12.2 12.3 availability💡 Result:
The
cuda::stream_refutility within the NVIDIA CUDA Core Compute Libraries (CCCL) is available starting from CCCL version 2.2.0, which corresponds to its inclusion in the CUDA 12.3 Toolkit [1][2][3]. It is not available in CUDA 12.2 or earlier versions [2]. Key details regardingcuda::stream_refinclude: - It serves as a non-owning wrapper for acudaStream_thandle, providing a safer interface that prevents implicit construction fromnullptror integer literals [1][4]. - It offers helper methods such assync()for stream synchronization andis_done()for non-blocking completion queries [1][4]. - Whilecuda::stream_refwas introduced in CCCL 2.2.0 (CUDA 12.3), the owning wrappercuda::streamwas introduced later in CCCL 3.1.0, which corresponds to the CUDA 13.1 Toolkit [1][2].Citations:
🏁 Script executed:
Repository: rapidsai/nvforest
Length of output: 37440
🌐 Web query:
site:nvidia.github.io/cccl libcudacxx runtime stream cuda::stream_ref CUDA 12.3💡 Result:
In the context of the CUDA Core Compute Libraries (CCCL), cuda::stream_ref was introduced in CCCL 2.2.0, which corresponds to the CUDA 12.3 release [1][2]. cuda::stream_ref is a non-owning C++ wrapper around a native CUDA runtime stream (cudaStream_t) [1][3]. Its primary purpose is to provide a safer, C++-idiomatic interface for interacting with CUDA streams while maintaining interoperability with legacy CUDA Runtime code [1][4]. Key features of cuda::stream_ref include: - Non-owning semantics: It does not manage the lifetime of the underlying cudaStream_t [3][4]. It is the caller's responsibility to ensure the wrapper does not outlive the stream handle [3]. - Safety: It prevents unsafe implicit constructions from nullptr or integer literals (such as 0) that are often prone to errors in legacy code [1][3]. - Helper methods: It provides convenient, idiomatic member functions such as sync (for synchronization) and is_done (for non-blocking completion queries) [1][3]. - Interoperability: It allows developers to wrap existing native streams, including the default stream, for use with CCCL runtime APIs [4]. When working with stream objects in modern libcudacxx/CCCL code, prefer using the owning cuda::stream wrapper (available since CCCL 3.1.0/CUDA 13.1) for lifetime management, and use cuda::stream_ref in interfaces or functions that accept existing stream references [4].
Citations:
Keep CUDA 12.2 support compatible.
dependencies.yamlstill provisionscuda-toolkit==12.2.*, butcuda::stream_refand<cuda/stream>require CUDA 12.3 or newer. GPU-enabled consumers can therefore fail during preprocessing. Replace this API for CUDA 12.2, or raise the minimum CUDA version and update the dependency matrix.🤖 Prompt for AI Agents
Source: Path instructions