NVIDIA / nsight-vscode-edition

A Visual Studio Code extension for building and debugging CUDA applications.
Other
68 stars 11 forks source link

Cannot provide multiple arguments in cuda-gdb launch #35

Closed jeethesh-pai closed 1 year ago

jeethesh-pai commented 1 year ago

I am trying to launch a cuda debugger in VSCode

            "name": "CUDA C++: Launch",
            "type": "cuda-gdb",
            "request": "launch",
            "program": "/workspace/TensorRT/build/out/trtexec_debug",
            "args": [
                "--loadEngine=/workspaces/debugEngine.engine",
                "--plugins=NVIDIA_AI_IOT/tensorrt_plugin_generator/plugin_codes/MsdeformattentionpluginIPluginV2DynamicExt/libMsdeformattentionpluginIPluginV2DynamicExt_debug.so",
            ],
            "environment": [
                {
                    "name": "config",
                    "value": "Debug",
                },
                {
                    "name": "LD_LIBRARY_PATH",
                    "value": "$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu/:/workspace/TensorRT/build/out/"
                }
            ],
        }

Unfortunately, args variables are parsed as single line not as multiple arguments. How can I proceed with this issue.

Thanks and regards Jeethesh

sanannavyaa commented 1 year ago

Hi Jeethesh!

You can pass multiple values in args by separating the values using a ";" which means it would look something like

"args": [ 
"--loadEngine=/workspaces/debugEngine.engine;--plugins=NVIDIA_AI_IOT/tensorrt_plugin_generator/plugin_codes/MsdeformattentionpluginIPluginV2DynamicExt/libMsdeformattentionpluginIPluginV2DynamicExt_debug.so"
]

Hope this helps!

jeethesh-pai commented 1 year ago

Thanks this works