-
Notifications
You must be signed in to change notification settings - Fork 930
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
Provide explicit pool size and avoid RMM detail APIs #14741
Provide explicit pool size and avoid RMM detail APIs #14741
Conversation
@@ -33,7 +34,8 @@ inline auto make_pool_instance() | |||
{ | |||
static rmm::mr::cuda_memory_resource cuda_mr; | |||
static auto pool_mr = | |||
std::make_shared<rmm::mr::pool_memory_resource<rmm::mr::cuda_memory_resource>>(&cuda_mr); | |||
std::make_shared<rmm::mr::pool_memory_resource<rmm::mr::cuda_memory_resource>>( | |||
&cuda_mr, rmm::percent_of_free_device_memory(50)); |
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.
I'm thinking about whether we should parse percent_of_free_device_memory
from some env variable, instead of hard coding like this in many places. By doing so we can control the number we want at runtime.
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.
This PR is just fixing cuDF so that it has the same behavior, and doesn't break when I merge upcoming deprecation PRs. I will file a cuDF issue for this request, but I think the cuDF team should handle it.
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.
LGTM
/merge |
Thanks for the reviews @ttnghia @PointKernel |
…ilities, and optional pool_memory_resource initial size (#1424) Follow-on to #1417, this PR deprecates the following: - `rmm::detail::available_device_memory` in favor of rmm::available_device_memory - `rmm::detail::is_aligned`, `rmm::detail::align_up` and related alignment utility functions in favor of the `rmm::` top level namespace versions. - The `rmm::pool_memory_resource` constructors that take an optional initial size parameter. Should be merged after the following: - rapidsai/cugraph#4086 - rapidsai/cudf#14741 - rapidsai/raft#2088 Authors: - Mark Harris (https://github.com/harrism) Approvers: - Michael Schellenberger Costa (https://github.com/miscco) - Rong Ou (https://github.com/rongou) URL: #1424
This PR fixes up cuDF to avoid usage that will soon be deprecated in RMM.
Depends on rapidsai/rmm#1417
Fixes #14658