[FFmpeg-devel] [PATCH 3/6] avutil/hwcontext_cuda: add CUstream in cuda hwctx

Timo Rothenpieler timo at rothenpieler.org
Tue May 8 19:32:12 EEST 2018


>>> What is this?
>>
>> https://docs.nvidia.com/cuda/cuda-driver-api/stream-sync-behavior.html
>>
>> It allows asynchronous processing of CUDA workloads. The next couple
>> patches make use of it.
>> There's no change in behaviour if it remains unset/NULL, but if you set
>> one, the workload won't block the main CUDA stream so you can do
>> multiple transcode sessions in the same application without blocking one
>> another.
>>
> 
> Could probably be documented.
> 
> It seems a bit strange that this is per device. Wouldn't it be per
> operation?

The whole streams thing and its various modes of operation are a bit 
strange. But it does make things faster in certain conditions.

See the whole thread with Oscar Amoros Huguet <oamoros at mediapro.tv> 
about some background on it.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3994 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180508/068b80d5/attachment.bin>


More information about the ffmpeg-devel mailing list