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

When to use rmm_async #602

Open
charlesbluca opened this issue May 10, 2021 · 3 comments
Open

When to use rmm_async #602

charlesbluca opened this issue May 10, 2021 · 3 comments
Labels
0 - Blocked Cannot progress due to external reasons question Further information is requested

Comments

@charlesbluca
Copy link
Member

charlesbluca commented May 10, 2021

With #566, we added the ability to use RMM's asynchronous allocator for cluster setup, which is mutually exclusive with RMM pools and managed memory. I am wondering if there are any specific benefits for using this, or use cases where it would be important? These could potentially be added somewhere in docs if they are prominent enough.

cc @pentschev

@pentschev
Copy link
Member

cc @beckernick who originally asked about this feature.

@beckernick
Copy link
Member

beckernick commented May 10, 2021

The async memory resource will not currently perform as well as the default pool resource. However, this feature has one core benefit relative to a standard RMM pool: it makes it easier to share GPU memory with libraries that don't expose a pluggable external memory interface (while still getting performance gains relative to standard cudaMalloc).

The standard pool resource will exhaust the available memory as needed and never free it. The async resource will free it.

@pentschev
Copy link
Member

Seems like the use case where this is helpful is when using external libraries at the moment. Do you happen to have any such examples @beckernick ? Perhaps we could document that's the intended use case and, if possible, add an example of the intended usage.

@pentschev pentschev added 0 - Blocked Cannot progress due to external reasons question Further information is requested labels May 20, 2021
@caryr35 caryr35 added this to dask-cuda Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - Blocked Cannot progress due to external reasons question Further information is requested
Projects
Status: No status
Development

No branches or pull requests

3 participants