Deepstream in WSL2

Hi,

I’m interested in getting Deepstream to run in WSL2, now that there is CUDA support.
In a fresh WSL2 environment, I installed the following:

  • Nvidia Driver 440 (using sudo apt-get install nvidia-driver 440)
  • Cuda Toolkit 10.2 (using sudo apt-get install cuda-toolkit-10-2, according to the documentation)
  • TensorRT 7.0.0 (using nv-tensorrt-repo-ubuntu1804-cuda10.2-trt7.0.0.11-ga-20191216_1-1_amd64.deb)
  • Other Deepstream dependencies like librdkafka and gstreamer (as documented Quickstart Guide — DeepStream 5.1 Release documentation)
  • Deepstream 5.0.1 (using deepstream-5.0_5.0.1-1_amd64.deb)

For the record, I have installed this configuration on a different system with an actual Ubuntu 18.04 LTS OS with success, and I currently develop on that system. It would however be nice to be able to run it on my Windows machine with WSL2 as well.

All of this installs correctly, but when I try to run a pipeline I get the following issue:

nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100

(gst-plugin-scanner:306): GStreamer-WARNING **: 12:09:34.330: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_inferserver.so’: libtrtserver.so: cannot open shared object file: No such file or directory
nvbufsurftransform:cuInit failed : 100

(gst-plugin-scanner:307): GStreamer-WARNING **: 12:09:34.334: Failed to load plugin ‘/usr/lib/x86_64-linux-gnu/gstreamer-1.0/deepstream/libnvdsgst_inferserver.so’: libtrtserver.so: cannot open shared object file: No such file or directory
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100
nvbufsurftransform:cuInit failed : 100

Which causes it to be unable to create the nvstreammux element.
When I run gst-inspect-1.0 nvstreammux, I get No such element or plugin ‘nvstreammux’.

Any idea what the issue could be? Has anyone succeeded in installing Deepstream in WSL2 and running an example?

We maintain and test on Tesla series cards and Jetson devices, with ubuntu system, centos system.

Thank you for your response.

By this, do you mean that Deepstream is not supported on WSL2?
I’m using Ubuntu 18.04, but under WSL2.
Now that there is CUDA support for WSL2, I figured Deepstream might now be supported as well.
Are there any plans to verify this compatibility?

Did you have GPU cards on your windows system?

Yes, I have a GTX 1650 TI on my system.

nvbufsurftransform:cuInit failed : 100

CUDA_ERROR_NO_DEVICE = 100

This indicates that no CUDA-capable devices were detected by the installed CUDA driver.
please check you could detect the GPU by nvidia-smi or by cuda sample deviceQuery