Skip to content

Conversation

@fbusato
Copy link
Contributor

@fbusato fbusato commented Dec 16, 2025

Description

is_host_accessible, is_device_accessible, and is_managed throw exceptions when the underlying driver calls fail.
On the other hand, such functions are mostly used in assertion where side effects are not allowed.

This PR introduces non-throwing overloads via cuda::std::nothrow_t tag dispatch.

…a::std::nothrow_t` for `is_host_accessible`, `is_device_accessible`, and `is_managed`.
@fbusato fbusato self-assigned this Dec 16, 2025
@fbusato fbusato requested a review from a team as a code owner December 16, 2025 00:33
@fbusato fbusato added the 3.2.0 Targeted for 3.2.0 release label Dec 16, 2025
@fbusato fbusato requested a review from a team as a code owner December 16, 2025 00:33
@fbusato fbusato added this to CCCL Dec 16, 2025
@fbusato fbusato requested review from alliepiper and miscco December 16, 2025 00:33
@github-project-automation github-project-automation bot moved this to Todo in CCCL Dec 16, 2025
@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Review in CCCL Dec 16, 2025
@github-actions

This comment has been minimized.

Copy link
Contributor

@davebayer davebayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make them internal for now? If we want to start adding non-throwing variants of our APIs, we need a broader discussion and agree on the strategy.

@github-project-automation github-project-automation bot moved this from In Review to In Progress in CCCL Dec 16, 2025
@github-project-automation github-project-automation bot moved this from In Progress to In Review in CCCL Dec 16, 2025
@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

🥳 CI Workflow Results

🟩 Finished in 2h 40m: Pass: 100%/91 | Total: 1d 04h | Max: 1h 47m | Hits: 93%/212401

See results here.

@fbusato fbusato merged commit 0639efe into NVIDIA:main Dec 16, 2025
203 of 206 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in CCCL Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.2.0 Targeted for 3.2.0 release

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants