Skip to content

Commit

Permalink
Fix copy of tensors for TRT on iGPU (triton-inference-server#3067)
Browse files Browse the repository at this point in the history
* Add logging

* Leverage zero copy support for output tensor
- When possible

* Wait for inference completion on iGPU to correctly copy output tensors

* Add missing quote in error msg

* Remove debug logging

* Fix synchronization bug

* Remove extra logging

* Use cudaLaunchHostFunc

* Re-use zero copy, make class variable

* Fix sync

* review edits

* Avoid invalidation of vector element address

* fix sync and lifecycle of payload

* Use struct to store params

* cleanup

* Update comments

* use resize instead of reserve

* direct cuda host launch in copybuffer

* Update copyright

* Remove extra cudaStreamWaitEvent

* Use memcpy on stream for inputs

* review edits

* add temp logging

* io_binding_info was already set earlier

* additional review edits

* Remove redundant block of code

* Fix logging after SupportsIntegratedZeroCopy()
  • Loading branch information
CoderHam authored Jul 14, 2021
1 parent 578f3ef commit 1328939
Show file tree
Hide file tree
Showing 6 changed files with 196 additions and 151 deletions.
Loading

0 comments on commit 1328939

Please sign in to comment.