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

Tweak rmm configuration for C++ unit tests #4503

Merged

Conversation

ChuckHastings
Copy link
Collaborator

We are seeing intermittent failures in CI from having trouble allocating the RMM pool allocator.

Dropping the memory usage by default from 1/6 to 1/10.

Added an option maxpool that will use 1/2 of the available memory, since we use the unit tests in larger configurations to do scale testing of algorithms.

@ChuckHastings ChuckHastings added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change and removed cuGraph labels Jun 25, 2024
@ChuckHastings ChuckHastings self-assigned this Jun 25, 2024
{
// Reduce the default pool allocation to 1/6th of the GPU memory so that we can
// run more than 2 tests in parallel at the same time. Changes to this value could
// effect the maximum amount of parallel tests, and therefore `tests/CMakeLists.txt`
// `_CUGRAPH_TEST_PERCENT` default value will need to be audited.
auto const [free, total] = rmm::available_device_memory();
auto const min_alloc = rmm::align_down(std::min(free, total / 6), rmm::CUDA_ALLOCATION_ALIGNMENT);
Copy link
Contributor

@seunghwak seunghwak Jun 25, 2024

Choose a reason for hiding this comment

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

We should update the comments above (or delete it). It is out-of-sync now.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I'll update.

@ChuckHastings ChuckHastings marked this pull request as ready for review June 26, 2024 02:22
@ChuckHastings ChuckHastings requested a review from a team as a code owner June 26, 2024 02:22
@ChuckHastings ChuckHastings requested a review from a team as a code owner June 26, 2024 03:33
@github-actions github-actions bot removed the python label Jun 27, 2024
@ChuckHastings
Copy link
Collaborator Author

/merge

@rapids-bot rapids-bot bot merged commit ece789d into rapidsai:branch-24.08 Jun 27, 2024
131 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cuGraph 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.

3 participants