Skip to content

Conversation

@jcrist
Copy link
Member

@jcrist jcrist commented May 13, 2025

Previously cuml.accel would always install a new ManagedMemoryResource on the current device when installed. We now only do this if rmm is using the default resource. If a user or library has already configured rmm, we continue using their settings.

This lets cuml.accel compose better with cudf.pandas, since we won't clobber their memory resource setup after loading ours.

Also added tests for the cuml.accel IPython magics, including tests loading cudf.pandas before and after cuml.accel.

@jcrist jcrist requested a review from a team as a code owner May 13, 2025 14:00
@jcrist jcrist added the improvement Improvement / enhancement to an existing function label May 13, 2025
@jcrist jcrist requested review from betatim and viclafargue May 13, 2025 14:00
@jcrist jcrist added non-breaking Non-breaking change cuml-accel Issues related to cuml.accel labels May 13, 2025
@github-actions github-actions bot added the Cython / Python Cython or Python issue label May 13, 2025
Copy link
Contributor

@csadorf csadorf left a comment

Choose a reason for hiding this comment

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

Just explicitly acknowledging the outcome from this thread: we should update our docs about our behavior when we can't enable UVM, otherwise good.

jcrist added 2 commits May 15, 2025 07:18
Previously `cuml.accel` would always install a new
`ManagedMemoryResource` on for the current device when installed. We now
only do this if rmm is using the default resource. If a user or library
has already configured rmm, we continue using their settings.

This lets `cuml.accel` compose better with `cudf.pandas`, since we won't
clobber their memory resource setup after loading ours.

Also added tests for the `cuml.accel` IPython magics, including tests
loading `cudf.pandas` before and after `cuml.accel`.
@jcrist jcrist force-pushed the cuml-accel-dont-modify-setup-mr branch from 37a97ed to 6981ec5 Compare May 15, 2025 14:35
Copy link
Member Author

@jcrist jcrist left a comment

Choose a reason for hiding this comment

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

Docs are updated, ready for another review.

@jcrist jcrist requested a review from csadorf May 15, 2025 14:37
Copy link
Contributor

@csadorf csadorf left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks a lot!

@csadorf
Copy link
Contributor

csadorf commented May 15, 2025

/merge

@betatim
Copy link
Member

betatim commented May 16, 2025

I restarted the CI jobs. There was no outout in the failed build job, so not sure what went wrong but probably transient.

Copy link
Contributor

@viclafargue viclafargue left a comment

Choose a reason for hiding this comment

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

Thanks @jcrist, LGTM

@rapids-bot rapids-bot bot merged commit d9f03b1 into rapidsai:branch-25.06 May 16, 2025
92 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cuml-accel Issues related to cuml.accel Cython / Python Cython or Python issue improvement Improvement / enhancement to an existing function non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants