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

Allow disabling RMM in benchmarks #1352

Merged
merged 5 commits into from
Jun 27, 2024

Conversation

pentschev
Copy link
Member

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.

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.
@pentschev pentschev requested review from a team as code owners June 25, 2024 21:01
@pentschev pentschev requested a review from AyodeAwe June 25, 2024 21:01
@github-actions github-actions bot added python python code needed ci labels Jun 25, 2024
@pentschev pentschev added 3 - Ready for Review Ready for review by team feature request New feature or request non-breaking Non-breaking change labels Jun 25, 2024
Copy link
Member

@madsbk madsbk 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, I only have a minor suggestion

dask_cuda/benchmarks/utils.py Show resolved Hide resolved
Copy link
Member

@ayushdg ayushdg left a 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.

@madsbk
Copy link
Member

madsbk commented Jun 26, 2024 via email

@pentschev
Copy link
Member Author

Thanks everyone!

@pentschev
Copy link
Member Author

/merge

@rapids-bot rapids-bot bot merged commit 0a3cc7f into rapidsai:branch-24.08 Jun 27, 2024
27 checks passed
@pentschev pentschev deleted the benchmarks-rmm-disable branch November 7, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team ci feature request New feature or request non-breaking Non-breaking change python python code needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants