Skip to content

Store any_resource in device_uvector_policy#2917

Open
bdice wants to merge 2 commits intorapidsai:mainfrom
bdice:any-resource
Open

Store any_resource in device_uvector_policy#2917
bdice wants to merge 2 commits intorapidsai:mainfrom
bdice:any-resource

Conversation

@bdice
Copy link
Contributor

@bdice bdice commented Jan 8, 2026

Part of rapidsai/rmm#2011.

Depends on rapidsai/rmm#2200.

Change device_uvector_policy::mr_ from device_async_resource_ref to cuda::mr::any_resource<cuda::mr::device_accessible>.

This ensures the container policy owns its memory resource, preventing use-after-free if the original resource is destroyed while the policy still exists.

Change device_uvector_policy::mr_ from device_async_resource_ref to
cuda::mr::any_resource<cuda::mr::device_accessible>.

This ensures the container policy owns its memory resource, preventing
use-after-free if the original resource is destroyed while the policy
still exists.
@copy-pr-bot
Copy link

copy-pr-bot bot commented Jan 8, 2026

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@bdice bdice marked this pull request as ready for review January 10, 2026 15:10
@bdice bdice requested a review from a team as a code owner January 10, 2026 15:10
@bdice bdice added feature request New feature or request non-breaking Non-breaking change labels Jan 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature request New feature or request non-breaking Non-breaking change

Development

Successfully merging this pull request may close these issues.

1 participant