Skip to content
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

Change rmm::exec_policy to take async_resource_ref #1449

Merged
merged 4 commits into from
Feb 2, 2024

Conversation

miscco
Copy link
Contributor

@miscco miscco commented Jan 30, 2024

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

This rewrites rmm::exec_policy to take a cuda::std::async_resource_ref instead of a plain rmm::device_memory_resource*. This is completely opaque to the user as the underlying rmm::thrust_allocator already takes a cuda::mr::async_resource_ref

Closes #1448

@miscco miscco requested a review from a team as a code owner January 30, 2024 13:50
@github-actions github-actions bot added the cpp Pertains to C++ code label Jan 30, 2024
This rewrites `rmm::exec_policy` to take a `cuda::std::async_resource_ref` instead of a plain `rmm::device_memory_resource*`. This is completely opaque to the user as the underlying `rmm::thrust_allocator` already takes a `cuda::mr::async_resource_ref`

Fixes rapidsai#1448

Closes
@miscco miscco added feature request New feature or request non-breaking Non-breaking change labels Jan 30, 2024
@harrism harrism changed the title Move rmm::exec_policy over to async_resource_ref Change rmm::exec_policy to take async_resource_ref Jan 30, 2024
Copy link
Member

@harrism harrism left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks @miscco!

include/rmm/exec_policy.hpp Outdated Show resolved Hide resolved
include/rmm/exec_policy.hpp Outdated Show resolved Hide resolved
include/rmm/exec_policy.hpp Outdated Show resolved Hide resolved
@miscco
Copy link
Contributor Author

miscco commented Feb 2, 2024

/merge

@rapids-bot rapids-bot bot merged commit beb6c36 into rapidsai:branch-24.04 Feb 2, 2024
47 checks passed
@miscco miscco deleted the refactor_exec_policy branch February 2, 2024 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp Pertains to C++ code feature request New feature or request non-breaking Non-breaking change
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Rewrite rmm::exec_policy to take a cuda::mr::async_resource_ref instead of a device_memory_resource*
2 participants