NVIDIA / CUDALibrarySamples

CUDA Library Samples
Other
1.5k stars 311 forks source link

NVJPEG_STATUS_ARCH_MISMATCH #153

Closed pytho12 closed 9 months ago

pytho12 commented 10 months ago

Hello, I am using a T4 card. When using status = nvjpegCreateEx(NVJPEG_BACKEND_HARDWARE, &dev_allocator, NULL, 0, &nv_handle ); error: NVJPEG_STATUS_ARCH_MISMATCH

zohebk-nv commented 10 months ago

Hello, this is expected behavior since T4 does not support HW accelerated decode. You may want to fallback to NVJPEG_BACKEND_DEFAULT . You can refer to this code snippet.

pytho12 commented 10 months ago

In the nvJPEG case, why is there no encoding case?

pytho12 commented 10 months ago

In the nvJPEG case, why is there no encoding case? I would be grateful if you could provide encoding cases and test performance cases for nvJPEG.

zohebk-nv commented 10 months ago

Will look into adding a new nvjpeg sample which focuses on encode. For nvjpeg encode, you can take a look at the Image-Resize sample. This sample uses the nvjpeg encode APIs.

zohebk-nv commented 10 months ago

you can also refer to the nvjpeg encoder sample here - https://github.com/NVIDIA/cuda-samples/tree/master/Samples/4_CUDA_Libraries/nvJPEG_encoder

zohebk-nv commented 9 months ago

marking as close. Feel free to reopen if you need additional information. Will add the encoder sample as part of this issue - https://github.com/NVIDIA/CUDALibrarySamples/issues/161