-
Notifications
You must be signed in to change notification settings - Fork 618
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
Fix resizing of volumes larger than 2G. #5306
Conversation
Signed-off-by: Michal Zientkiewicz <michalz@nvidia.com>
CI MESSAGE: [12541892]: BUILD STARTED |
CI MESSAGE: [12541892]: BUILD PASSED |
x = np.stack([np.zeros_like(x), np.zeros_like(x), x], axis=3) | ||
return x + y + z | ||
|
||
global large_data |
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.
can't nose2 run tests in parallel?
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.
@mzient , you could go with class-based suite and "static" setUpClass method to prepare data once in more nose2 compliant way. I think I've done that in debayer tests if you're looking for convienient copy-paste. :)
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.
@jantonguirao The only danger would be that the caching wouldn't work
@stiepan Perhaps, I've never done that.
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'd go with the idea that @stiepan suggests
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'll do it in a follow-up. This is a fix for a hard fault and merging it is more important than code style issues in tests.
|
||
|
||
@params((types.INTERP_NN, False), (types.INTERP_LINEAR, False), (types.INTERP_LINEAR, True)) | ||
def test_large_gpu(interp, antialias): |
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.
how costly is it? Should we mark it as slow or something?
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.
Not very. A few seconds.
Category:
Bug fix (non-breaking change which fixes an issue)
Description:
If fixes the handling of strides larger than 2G elements.
Additional information:
Affected modules and functionalities:
Resize operator
Key points relevant for the review:
Tests:
Checklist
Documentation
DALI team only
Requirements
REQ IDs: N/A
JIRA TASK: N/A