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 race condition in checkpointing test #4983

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

staniewzki
Copy link
Contributor

@staniewzki staniewzki commented Aug 7, 2023

Category:

Bug fix (non-breaking change which fixes an issue)

Description:

This PR fixes issue in the DataReader checkpointing tests.

The problem is, that the checkpoint was created before running the corresponding epoch, but the state snapshot is created along with the first iteration of an epoch. When prefetching did not run fast enough, the test failed.

Additional information:

Affected modules and functionalities:

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: Michał Staniewski <mstaniewski@nvidia.com>
@staniewzki
Copy link
Contributor Author

!build

@JanuszL JanuszL self-assigned this Aug 7, 2023
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [9267862]: BUILD STARTED

@stiepan stiepan self-assigned this Aug 7, 2023
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [9267862]: BUILD PASSED

@staniewzki staniewzki merged commit e67b560 into NVIDIA:main Aug 8, 2023
5 checks passed
stiepan pushed a commit that referenced this pull request Aug 8, 2023
This PR fixes issue in the DataReader checkpointing tests.

The problem is, that the checkpoint was created before running the corresponding epoch, but the state snapshot is created along with the first iteration of an epoch. When prefetching did not run fast enough, the test failed.

Signed-off-by: Michał Staniewski <mstaniewski@nvidia.com>
JanuszL pushed a commit to JanuszL/DALI that referenced this pull request Oct 13, 2023
This PR fixes issue in the DataReader checkpointing tests.

The problem is, that the checkpoint was created before running the corresponding epoch, but the state snapshot is created along with the first iteration of an epoch. When prefetching did not run fast enough, the test failed.

Signed-off-by: Michał Staniewski <mstaniewski@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants