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

Fix resizing of volumes larger than 2G. #5306

Merged
merged 1 commit into from
Feb 6, 2024
Merged

Conversation

mzient
Copy link
Contributor

@mzient mzient commented Feb 2, 2024

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:

  • Existing tests apply
  • New tests added
    • Python tests
    • GTests
    • Benchmark
    • Other
  • N/A

Checklist

Documentation

  • Existing documentation applies
  • Documentation updated
    • Docstring
    • Doxygen
    • RST
    • Jupyter
    • Other
  • N/A

DALI team only

Requirements

  • Implements new requirements
  • Affects existing requirements
  • N/A

REQ IDs: N/A

JIRA TASK: N/A

Signed-off-by: Michal Zientkiewicz <michalz@nvidia.com>
@JanuszL JanuszL self-assigned this Feb 2, 2024
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [12541892]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [12541892]: BUILD PASSED

@NVIDIA NVIDIA deleted a comment from dali-automaton Feb 5, 2024
@mzient mzient added the important-fix Fixes an important issue in the software or development environment. label Feb 5, 2024
x = np.stack([np.zeros_like(x), np.zeros_like(x), x], axis=3)
return x + y + z

global large_data
Copy link
Contributor

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?

Copy link
Member

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. :)

Copy link
Contributor Author

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.

Copy link
Contributor

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

Copy link
Contributor Author

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):
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@mzient mzient merged commit c8bc03c into NVIDIA:main Feb 6, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
important-fix Fixes an important issue in the software or development environment.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants