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

Add pass-through tracking to auto-pinning buffers #4294

Merged
merged 6 commits into from
Oct 6, 2022

Conversation

klecki
Copy link
Contributor

@klecki klecki commented Sep 27, 2022

Category: New feature, Refactoring

Description:

Small refactor in executor - extract the backtracking of pass-through in the graph.
Originally it was used to obtain the group of tensor nodes that need to be treated
as outputs and buffered accordingly.

Use the functionality to pin the whole pass-through group when pinning a tensor.

Additional information:

Affected modules and functionalities:

Executor, graph

Key points relevant for the review:

Tests:

  • Existing tests apply
    Make output buffers for arugment inputs to GPU operators pinned. #3728 didn't introduce additional tests for pinning, and I am not aware if we had any.
    I'm not sure if we can easily observe the status of the outputs buffers outside of the operators or executor.
    I might try to do something tomorrow, otherwise we will just have to observe the perf.
    I think I managed to write such test, inspecting the outputs of the executor for their pinnedness.
  • 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: Krzysztof Lecki <klecki@nvidia.com>
Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
@klecki
Copy link
Contributor Author

klecki commented Sep 27, 2022

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6026863]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6026863]: BUILD FAILED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6026863]: BUILD PASSED

Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
@klecki
Copy link
Contributor Author

klecki commented Sep 28, 2022

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6034109]: BUILD STARTED

Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
@klecki
Copy link
Contributor Author

klecki commented Sep 28, 2022

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6034120]: BUILD STARTED

@NVIDIA NVIDIA deleted a comment from dali-automaton Sep 28, 2022
@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6034120]: BUILD PASSED

Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
@klecki
Copy link
Contributor Author

klecki commented Oct 3, 2022

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6077156]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6077156]: BUILD FAILED

Signed-off-by: Krzysztof Lecki <klecki@nvidia.com>
@klecki
Copy link
Contributor Author

klecki commented Oct 5, 2022

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6096195]: BUILD STARTED

@klecki
Copy link
Contributor Author

klecki commented Oct 5, 2022

!build

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6096400]: BUILD STARTED

@dali-automaton
Copy link
Collaborator

CI MESSAGE: [6096400]: BUILD PASSED

@klecki klecki merged commit 34ad903 into NVIDIA:main Oct 6, 2022
@klecki klecki deleted the follow-passthrough branch October 6, 2022 09:22
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