NVIDIA / CUDALibrarySamples

CUDA Library Samples
Other
1.52k stars 318 forks source link

Can multi streaming be used to improve jpeg encoding speed #119

Closed simpia closed 1 year ago

simpia commented 1 year ago

I want to encode multiple images simultaneously. I use multiple streams on thr function nvjpegEncodeImage. But the encoding time is same to single stream. Why is this?

zohebk-nv commented 1 year ago

A significant part of the encoding pipeline is synchronous with respect to the host. Additional cuda streams alone may not help. Using multiple CPU threads and cuda streams may help improve encoding speed.

trybicki-nv commented 1 year ago

Closing. Feel free to reopen if more clarification is needed.