Deepstream on desktop GPU

Hi,

I am trying to run DeepStream 6.0 test application on my desktop computer. I have configured the DeepStream 6.0 on my NVIDIA GTX1060 graphics card.

When I try to run the deepstream-app,

$ deepstream-app -c /opt/nvidia/deepstream/deepstream/samples/configs/deepstream-app/source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt

app run failed with the following errors

**PERF: FPS 0 (Avg) FPS 1 (Avg) FPS 2 (Avg) FPS 3 (Avg)

**PERF: 0.00 (0.00) 0.00 (0.00) 0.00 (0.00) 0.00 (0.00)
** INFO: <bus_callback:194>: Pipeline ready

cuGraphicsGLRegisterBuffer failed with error(304) gst_eglglessink_cuda_init texture = 1
** INFO: <bus_callback:180>: Pipeline running

**PERF: 191.90 (1.46) 191.89 (1.46) 191.90 (1.46) 191.90 (1.46)
**PERF: 0.00 (0.59) 0.00 (0.59) 0.00 (0.59) 0.00 (0.59)
ERROR from secondary_gie_bin_queue: Internal data stream error.
Debug info: gstqueue.c(988): gst_queue_handle_sink_event (): /GstPipeline:pipeline/GstBin:secondary_gie_bin/GstQueue:secondary_gie_bin_queue:
streaming stopped, reason not-negotiated (-4)
Quitting
ERROR from sink_bin_queue: Internal data stream error.
Debug info: gstqueue.c(988): gst_queue_handle_sink_event (): /GstPipeline:pipeline/GstBin:processing_bin_0/GstBin:sink_bin/GstQueue:sink_bin_queue:
streaming stopped, reason not-negotiated (-4)
[NvMultiObjectTracker] De-initialized
App run failed

My system environment

  • GPU: NVIDIA GeForce GTX 1060 3GB
  • OS: Ubuntu 18.04 LTS
  • CUDA: 11.4
  • TensorRT: 8.0.1
  • Driver: R470.63.01

How do I run the DeepStream sample on my PC? Is this because I’m using an old desktop GPU? If that’s the case please suggest to me a Desktop/Laptop GPU support DeepStream?

Thanks in advance

Can you specify how you install display driver?

For Display Driver installation I followed this documentation: Install NVIDIA driver 470.63.01

ok. did it prompt anything like “install gl**”?

No

Can you paste the output of dpkg -l|grep nvidia?

$ dpkg -l|grep nvidia
ii  libnvidia-cfg1-470:amd64                                    470.57.02-0ubuntu1                              amd64        NVIDIA binary OpenGL/GLX configuration library
ii  libnvidia-common-470                                        470.57.02-0ubuntu1                              all          Shared files used by the NVIDIA libraries
ii  libnvidia-compute-470:amd64                                 470.57.02-0ubuntu1                              amd64        NVIDIA libcompute package
ii  libnvidia-decode-470:amd64                                  470.57.02-0ubuntu1                              amd64        NVIDIA Video Decoding runtime libraries
ii  libnvidia-encode-470:amd64                                  470.57.02-0ubuntu1                              amd64        NVENC Video Encoding runtime library
ii  libnvidia-extra-470:amd64                                   470.57.02-0ubuntu1                              amd64        Extra libraries for the NVIDIA driver
ii  libnvidia-fbc1-470:amd64                                    470.57.02-0ubuntu1                              amd64        NVIDIA OpenGL-based Framebuffer Capture runtime library
ii  libnvidia-gl-470:amd64                                      470.57.02-0ubuntu1                              amd64        NVIDIA OpenGL/GLX/EGL/GLES GLVND libraries and Vulkan ICD
ii  libnvidia-ifr1-470:amd64                                    470.57.02-0ubuntu1                              amd64        NVIDIA OpenGL-based Inband Frame Readback runtime library
ii  nvidia-compute-utils-470                                    470.57.02-0ubuntu1                              amd64        NVIDIA compute utilities
ii  nvidia-dkms-470                                             470.57.02-0ubuntu1                              amd64        NVIDIA DKMS package
ii  nvidia-driver-470                                           470.57.02-0ubuntu1                              amd64        NVIDIA driver metapackage
ii  nvidia-kernel-common-470                                    470.57.02-0ubuntu1                              amd64        Shared files used with the kernel module
ii  nvidia-kernel-source-470                                    470.57.02-0ubuntu1                              amd64        NVIDIA kernel source package
ii  nvidia-modprobe                                             495.29.05-0ubuntu1                              amd64        Load the NVIDIA kernel driver and create device files
ii  nvidia-prime                                                0.8.16~0.18.04.1                                all          Tools to enable NVIDIA's Prime
ii  nvidia-settings                                             495.29.05-0ubuntu1                              amd64        Tool for configuring the NVIDIA graphics driver
ii  nvidia-utils-470                                            470.57.02-0ubuntu1                              amd64        NVIDIA driver support binaries
ii  xserver-xorg-video-nvidia-470                               470.57.02-0ubuntu1                              amd64        NVIDIA binary Xorg driver

Did you plugin monitor to nvidia GPU card?

Yes, I have connected the monitor to NVIDIA graphics card using HDMI cable.

You need to export display firstly if run from remote terminal.
export DISPLAY=:1 or 0 //xrandr to check if display export or not.
or run from desktop directly.

So I been playing around with insane number of combinations and was able to make it work.
I was just checking my notes:

All the versions are changed from trt 8.0.1 to 8.2.1 and Cuda from 11.3 to 11.4
I am not 100% sure but since you already got the CUDA 11.4 I think you will need TensorRT 8.2.1
or downgrade CUDA.

You can run the deepstream app by TensorRT 8.2.1?

yes