AppDec report error 100

run DecApp failed return 100

./AppDec  -i  ~/video/11130s.mp4  -o out.yuv -gpu 3
gpu nums:8 using GPU : 3
GPU in use: NVIDIA GeForce GTX 1080
Decode with demuxing.
[INFO ][18:27:47] Media format: QuickTime / MOV (mov,mp4,m4a,3gp,3g2,mj2)
Session Deinitialization Time: 0 ms 
HandleVideoSequence : cuvidGetDecoderCaps(&decodecaps) returned error 100 at /home/shaolin/worklab/NV_Video_SDK12/Video_Codec_SDK_12.0.16/Samples/NvCodec/NvDecoder/NvDecoder.cpp:195

ffmpeg version :

ffmpeg -version 
ffmpeg version n6.0-26-g3ef45327ae Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
configuration: --prefix=/usr/local/ffmpeg --enable-shared --disable-static --disable-doc --enable-gpl --enable-libx264 --enable-libx265 --enable-cuda --enable-cuvid
libavutil      58.  2.100 / 58.  2.100
libavcodec     60.  3.100 / 60.  3.100
libavformat    60.  3.100 / 60.  3.100
libavdevice    60.  1.100 / 60.  1.100
libavfilter     9.  3.100 /  9.  3.100
libswscale      7.  1.100 /  7.  1.100
libswresample   4. 10.100 /  4. 10.100
libpostproc    57.  1.100 / 57.  1.100

env:
Driver 530
cuda: 12.0

nvidia-smi
Fri Jun 30 18:39:48 2023       
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 530.30.02              Driver Version: 530.30.02    CUDA Version: 12.1     |
|-----------------------------------------+----------------------+----------------------+
| GPU  Name                  Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf            Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                                         |                      |               MIG M. |
|=========================================+======================+======================|
|   0  NVIDIA GeForce GTX 1080         On | 00000000:04:00.0 Off |                  N/A |
| 25%   30C    P8                7W / 180W|      2MiB /  8192MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
|   1  NVIDIA GeForce GTX 1080         On | 00000000:05:00.0 Off |                  N/A |
|  0%   34C    P8                7W / 180W|      2MiB /  8192MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
|   2  NVIDIA GeForce GTX 1080         On | 00000000:08:00.0 Off |                  N/A |
| 26%   31C    P8                7W / 180W|      2MiB /  8192MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+
|   3  NVIDIA GeForce GTX 1080         On | 00000000:09:00.0 Off |                  N/A |
| 24%   33C    P8                7W / 180W|      2MiB /  8192MiB |      0%      Default |
|                                         |                      |                  N/A |
+-----------------------------------------+----------------------+----------------------+

Hello @dengshaolin and welcome to the NVIDIA developer forums!

The error is CUDA_ERROR_NO_DEVICE and most often indicates a driver/library mismatch.

This user answer gives some good hints what to look for.

The nuke option of course is to re-install CUDA from scratch after purging the old installation.