NVIDIA / cuda-samples

Samples for CUDA Developers which demonstrates features in CUDA Toolkit
Other
6.55k stars 1.85k forks source link

muliti thread call nvjpegEncodeImage returns NVJPEG_STATUS_EXECUTION_FAILED #80

Open cg82616424 opened 3 years ago

cg82616424 commented 3 years ago

Hi: I found some bugs about nvjpeg encoder; when I init nvjpeg and use is in one thread, it seems fine; but when I init nvjpeg in main thread, and use it in other 4 threads, the nvjpegEncodeImage returns NVJPEG_STATUS_EXECUTION_FAILED my cuda version is 10.2; driver version is 440; PS :image, I know this , I create encode state in every child threads;

cg82616424 commented 3 years ago

my devices is centos7 and nvidia tesla p4

cg82616424 commented 3 years ago

I figured this out ,just modify all nvjpeg functions's last parameter to nullptr, but I want to know, why ?

cjcisjccs commented 1 year ago

I figured this out ,just modify all nvjpeg functions's last parameter to nullptr, but I want to know, why ?

Hello! I also met this problem. Do you know the cause? Is there any other solution? Thanks