Hello,

In my previous patch which introduced the AV_CUDA_USE_CURRENT_CONTEXT
feature I unintentionally made a mistake of not checking this flag when
uninitializing the CUDA.
It was causing cuda_device_uninit() function to destroy the CUDA context it
didn't create.

So far it only reproduces under cuda compute sanitizer:

========= COMPUTE-SANITIZER

========= Program hit invalid device context (error 201) on CUDA API call
to cuCtxDestroy_v2.


But nonetheless shall be fixed. Please find a fix in attached file, now
cuCtxDestroy is called under condition.

Attachment: 0001-libavutil-hwcontext_cuda-fix-cuda_device_uninit-when.patch
Description: Binary data

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to