-
Notifications
You must be signed in to change notification settings - Fork 564
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
Adaptive stress tests when GPU memory capacity is insufficient #3916
Adaptive stress tests when GPU memory capacity is insufficient #3916
Conversation
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.
Thanks for the PR, really cool!
I was wondering what do you think of an option where the tests instead of being skipped get reduced in size to fit in the GPU (probably just in a simple manner, like always reducing number of rows)? So something like:
~ pytest cuml/test --run_stress # skips stress tests that don't fit in the card
~ CUML_ADAPT_STRESS_TESTS=true pytest cuml/test --run_stress # reduces size of stress tests
That could be pretty useful for testing deployment in different environments. What do you think?
python/cuml/test/utils.py
Outdated
@@ -30,6 +32,9 @@ | |||
import cuml | |||
import pytest | |||
|
|||
# max_gpu_memory: Capacity of the GPU memory in GB | |||
max_gpu_memory = 0 |
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 think using pytest_configure might be a better choice as opposed to the global variable https://docs.pytest.org/en/6.2.x/reference.html#pytest.hookspec.pytest_configure
2 stress tests are having troubles with the change in parameters introduced in this PR.
|
Codecov Report
@@ Coverage Diff @@
## branch-21.08 #3916 +/- ##
===============================================
Coverage ? 85.44%
===============================================
Files ? 230
Lines ? 18088
Branches ? 0
===============================================
Hits ? 15455
Misses ? 2633
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
@gpucibot merge |
…sai#3916) Closes rapidsai#3903. Authors: - Micka (https://github.com/lowener) Approvers: - Dante Gama Dessavre (https://github.com/dantegd) URL: rapidsai#3916
Closes #3903.