DALI icon indicating copy to clipboard operation
DALI copied to clipboard

Improve performance of ImageDecoder

Open jantonguirao opened this issue 1 year ago • 50 comments

Category:

Other Performance

Description:

  • Populate the CUDA event pool with a few events per thread, to avoid creation of threads during the execution of the pipeline
  • Use task priority in the thread pool used by nvimagecodec, so that tasks are executed on FIFO order
  • Fix the preallocated_batch_size to take into account the hw_load. Not doing so, causes cuMemFree calls during the pipeline run.

Additional information:

Affected modules and functionalities:

ImageDecoder mostly (any operator that has a mixed backend thread pool)

  • ImageDecoder

Key points relevant for the review:

Tests:

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

Checklist

Documentation

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

DALI team only

Requirements

  • [ ] Implements new requirements
  • [ ] Affects existing requirements
  • [x] N/A

REQ IDs: N/A

JIRA TASK: N/A

jantonguirao avatar Jul 22 '24 12:07 jantonguirao

!build

jantonguirao avatar Jul 22 '24 12:07 jantonguirao

CI MESSAGE: [16808221]: BUILD STARTED

dali-automaton avatar Jul 22 '24 12:07 dali-automaton

CI MESSAGE: [16808221]: BUILD FAILED

dali-automaton avatar Jul 22 '24 12:07 dali-automaton

CI MESSAGE: [16811949]: BUILD STARTED

dali-automaton avatar Jul 22 '24 15:07 dali-automaton

CI MESSAGE: [16813241]: BUILD STARTED

dali-automaton avatar Jul 22 '24 16:07 dali-automaton

CI MESSAGE: [16813356]: BUILD STARTED

dali-automaton avatar Jul 22 '24 16:07 dali-automaton

CI MESSAGE: [16813388]: BUILD STARTED

dali-automaton avatar Jul 22 '24 16:07 dali-automaton

CI MESSAGE: [16814374]: BUILD STARTED

dali-automaton avatar Jul 22 '24 16:07 dali-automaton

CI MESSAGE: [16811949]: BUILD PASSED

dali-automaton avatar Jul 22 '24 16:07 dali-automaton

CI MESSAGE: [16814374]: BUILD PASSED

dali-automaton avatar Jul 22 '24 20:07 dali-automaton

CI MESSAGE: [16825232]: BUILD STARTED

dali-automaton avatar Jul 22 '24 23:07 dali-automaton

CI MESSAGE: [16825232]: BUILD PASSED

dali-automaton avatar Jul 23 '24 02:07 dali-automaton

CI MESSAGE: [16836552]: BUILD STARTED

dali-automaton avatar Jul 23 '24 08:07 dali-automaton

CI MESSAGE: [16836608]: BUILD STARTED

dali-automaton avatar Jul 23 '24 08:07 dali-automaton

CI MESSAGE: [16836608]: BUILD PASSED

dali-automaton avatar Jul 23 '24 12:07 dali-automaton

CI MESSAGE: [16842081]: BUILD STARTED

dali-automaton avatar Jul 23 '24 12:07 dali-automaton

CI MESSAGE: [16842081]: BUILD FAILED

dali-automaton avatar Jul 23 '24 14:07 dali-automaton

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

CI MESSAGE: [16850269]: BUILD STARTED

dali-automaton avatar Jul 23 '24 17:07 dali-automaton

CI MESSAGE: [16850269]: BUILD PASSED

dali-automaton avatar Jul 23 '24 19:07 dali-automaton

CI MESSAGE: [16870107]: BUILD STARTED

dali-automaton avatar Jul 24 '24 07:07 dali-automaton

CI MESSAGE: [16870107]: BUILD FAILED

dali-automaton avatar Jul 24 '24 08:07 dali-automaton

CI MESSAGE: [16871315]: BUILD STARTED

dali-automaton avatar Jul 24 '24 08:07 dali-automaton

CI MESSAGE: [16871315]: BUILD FAILED

dali-automaton avatar Jul 24 '24 09:07 dali-automaton

CI MESSAGE: [16872794]: BUILD STARTED

dali-automaton avatar Jul 24 '24 10:07 dali-automaton

CI MESSAGE: [16872794]: BUILD FAILED

dali-automaton avatar Jul 24 '24 10:07 dali-automaton

!build

jantonguirao avatar Jul 26 '24 08:07 jantonguirao

CI MESSAGE: [16939665]: BUILD STARTED

dali-automaton avatar Jul 26 '24 08:07 dali-automaton

CI MESSAGE: [16939665]: BUILD FAILED

dali-automaton avatar Jul 26 '24 08:07 dali-automaton

CI MESSAGE: [17040647]: BUILD STARTED

dali-automaton avatar Jul 30 '24 08:07 dali-automaton