Hi,
I am using the NVIDIA Jetson nano and trying to run the following sample:
Jetson Linux API Reference: v4l2cuda (CUDA format conversion) | NVIDIA Docs
At the moment the following error is occurring:
nvnano@nvnano-desktop:/usr/src/jetson_multimedia_api/samples/v4l2cuda$ ./capture-cuda -d /dev/video1 -m
select timeout
nvnano@nvnano-desktop:/usr/src/jetson_multimedia_api/samples/v4l2cuda$
Therefore I opened Visual Studio Code to debug via ssh. First I have installed Nsight Visual Studio Code and set up the task.json:
{
"version": "2.0.0",
"tasks": [
{
"label": "CUDA Make",
"type": "shell",
"command": "make dbg=1",
"group": "build",
"problemMatcher": [
"$nvcc"
]
}
]
}
and the launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": "CUDA: Debug with CUDA-GDB",
"type": "cuda-gdb",
"request": "launch",
"debuggerPath": "/usr/local/cuda/bin/cuda-gdb",
"program": "${workspaceFolder}/capture-cuda",
"args": "",
}
]
}
When I start debugging via “F5” the following error occurs:
NVIDIA (R) CUDA Debugger
10.2 release
Portions Copyright (C) 2007-2020 NVIDIA Corporation
GNU gdb (GDB) 7.12
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "aarch64-elf-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".
fatal: The CUDA driver initialization failed. (error code = CUDBG_ERROR_INITIALIZATION_FAILURE(0x14)
How can I solve the CUDA driver initialization problem therewith I debug the select timeout problem from above? Does anybody of you has the right configuration for tasks.json and launch.json to debug the capture.cpp and yuv2rgb.cu simultaneously?
Thank you for your help in advance.