jetson-utils icon indicating copy to clipboard operation
jetson-utils copied to clipboard

Missing `cudaDeviceSynchronize()` in `gstBufferManager::Deque()`

Open Kajatin opened this issue 6 months ago • 0 comments

Hello,

This is not as much an issue as it is a question. I was wondering how come there is no (need to) call cudaDeviceSynchronize() at the end of the following function: https://github.com/dusty-nv/jetson-utils/blob/e6ea7550049c9907ca537a91584462942a510806/codec/gstBufferManager.cpp#L299

There are some color conversions going on that are never synced as far as I can tell. I also noticed that in the gstEncoder::Render(), which has a very similar implementation, there is a call to synchronize: https://github.com/dusty-nv/jetson-utils/blob/e6ea7550049c9907ca537a91584462942a510806/codec/gstEncoder.cpp#L716

Thanks!

Kajatin avatar Feb 19 '24 14:02 Kajatin