Using the workaround, I can’t reproduce this issue by ./deepstream-segmentation-app -t infer dstest_segmentation_config_industrial.txt /opt/nvidia/deepstream/deepstream/samples/streams/sample_industrial.jpg, could you provide simplified code to reproduce? thanks!
I just testd the fix, and it works on 2080Ti / deepstream 6.1-dev / nvidia driver 510.
before fix
| 0 N/A N/A 25172 C gst-launch-1.0 159MiB |
| 1 N/A N/A 25172 C gst-launch-1.0 817MiB |
after fix
| 1 N/A N/A 23992 C gst-launch-1.0 825MiB |
Would you further give a brief explanation? I’ve almost read through codes of gstnvinfer and nvinfer, but I can’t figure out how your one-line fix works.
thanks for your update, please refer to cudaSetDevice explanation,:CUDA Runtime API :: CUDA Toolkit Documentation need to Sets device as the current device in thread gst_nvinfer_input_queue_loop.