-
Notifications
You must be signed in to change notification settings - Fork 618
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
Adds a cuda stream synchronization before cuvidUnmapVideoFrame in nvDecoder #4426
Conversation
…ecoder - adds a GPU synchronization point before cuvidUnmapVideoFrame in nvDecoder similarly to the VideoSdk examples Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
!build |
CI MESSAGE: [6436020]: BUILD STARTED |
CI MESSAGE: [6436020]: BUILD PASSED |
@@ -427,6 +427,8 @@ void NvDecoder::receive_frames(SequenceWrapper& sequence) { | |||
nv_time_base_)); | |||
if (stop_) break; | |||
convert_frame(frame, sequence, i); | |||
// synchronize before MappedFrame is destroyed and cuvidUnmapVideoFrame is called | |||
cudaStreamSynchronize(stream_); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cudaStreamSynchronize(stream_); | |
CUDA_CALL(cudaStreamSynchronize(stream_)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, with a nitpick.
Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
!build |
CI MESSAGE: [6444620]: BUILD STARTED |
CI MESSAGE: [6444620]: BUILD PASSED |
…ecoder (#4426) - adds a GPU synchronization point before cuvidUnmapVideoFrame in nvDecoder similarly to the VideoSdk examples Signed-off-by: Janusz Lisiecki <jlisiecki@nvidia.com>
similarly to the VideoSdk examples
Signed-off-by: Janusz Lisiecki jlisiecki@nvidia.com
Category:
Bug fix (non-breaking change which fixes an issue)
Description:
similarly to the VideoSdk examples
Additional information:
Affected modules and functionalities:
Key points relevant for the review:
Tests:
Checklist
Documentation
DALI team only
Requirements
REQ IDs: N/A
JIRA TASK: N/A