-
Notifications
You must be signed in to change notification settings - Fork 94
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
Allow disabling RMM in benchmarks #1352
Allow disabling RMM in benchmarks #1352
Conversation
Allows disabling RMM in benchmarks via a new option `--disable-rmm`. This change makes benchmarks a little more similar to RMM setup in `LocalCUDACluster`/`dask cuda worker`, where not specifying `rmm-pool-size` or specifying `None` as its value entirely disables setting up RMM as the default allocator. Since for benchmarks it's desired that the default is having an RMM pool we cannot change the default `--rmm-pool-size` to `None` as that would make benchmarks run much slower by default, therefore `--disable-rmm` is the closest we can make this to the rest of Dask-CUDA. Additionally add `--rmm-maximum-pool-size` for benchmarks.
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.
Looks good, I only have a minor suggestion
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've tested the changes specifically for the case when I'm creating a cluster externally and want to run these benchmarks without modifying the rmm pool created in the external cluster. Can confirm that it works as expected.
Yes 👍
…On Wed, 26 Jun 2024 at 21.49, Peter Andreas Entschev < ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In dask_cuda/benchmarks/utils.py
<#1352 (comment)>:
> + if maximum_pool_size is not None:
+ mr = rmm.mr.LimitingResourceAdaptor(
+ mr, allocation_limit=maximum_pool_size
+ )
+
Just to be safe, you mean that we cannot guarantee that maximum_pool_size
is respected because of fragmentation, i.e., if you specify
--maximum-pool-size=4GiB it *may* still go beyond that, is that right?
—
Reply to this email directly, view it on GitHub
<#1352 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAH6FQGDPZI2KOXJXEP557LZJMLMNAVCNFSM6AAAAABJ4TDJKSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDCNBSHAYDSMBZGI>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
Thanks everyone! |
/merge |
Allows disabling RMM in benchmarks via a new option
--disable-rmm
. This change makes benchmarks a little more similar to RMM setup inLocalCUDACluster
/dask cuda worker
, where not specifyingrmm-pool-size
or specifyingNone
as its value entirely disables setting up RMM as the default allocator. Since for benchmarks it's desired that the default is having an RMM pool we cannot change the default--rmm-pool-size
toNone
as that would make benchmarks run much slower by default, therefore--disable-rmm
is the closest we can make this to the rest of Dask-CUDA.Additionally add
--rmm-maximum-pool-size
for benchmarks.