CUDA error when running deepstream APP

I’m running a deepstream app on Xavier NX ,
I’m getting the following error :
Opening in BLOCKING MODE
ERROR: Failed to set cuda device (3)., cuda err_no:101, err_str:cudaErrorInvalidDevice
0:00:00.514800080 546 0x39b8aa10 ERROR nvinfer gstnvinfer.cpp:674:gst_nvinfer_logger: NvDsInferContext[UID 1]: Error in NvDsInferContextImpl::~NvDsInferContextImpl() <nvdsinfer_context_impl.cpp:2045> [UID = 1]: Failed to set cuda device 3 (cudaErrorInvalidDevice).
0:00:00.514911504 546 0x39b8aa10 WARN nvinfer gstnvinfer.cpp:888:gst_nvinfer_start: error: Failed to create NvDsInferContext instance
0:00:00.514946928 546 0x39b8aa10 WARN nvinfer gstnvinfer.cpp:888:gst_nvinfer_start: error: Config file path: dstest_segmentation_config_industrial.txt, NvDsInfer Error: NVDSINFER_CUDA_ERROR
Error: gst-resource-error-quark: Failed to create NvDsInferContext instance (1): /dvs/git/dirty/git-master_linux/deepstream/sdk/src/gst-plugins/gst-nvinfer/gstnvinfer.cpp(888): gst_nvinfer_start (): /GstPipeline:pipeline0/GstNvInfer:primary-nvinference-engine:
Config file path: dstest_segmentation_config_industrial.txt, NvDsInfer Error: NVDSINFER_CUDA_ERROR

EDIT- Issue solved , gpu-id in my config was set to 3

Can you provide the command line to reproduce this issue? and what’s the Jetpack version in use? Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
• The pipeline being used

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.