Questions tagged [cuda-gdb]

CUDA-GDB is the NVIDIA tool for debugging CUDA applications running on Linux and Mac. CUDA-GDB is an extension to the x86-64 port of GDB, the GNU Project debugger.

From the CUDA-GDB documentation:

CUDA-GDB is the NVIDIA tool for debugging CUDA applications running on Linux and Mac. CUDA-GDB is an extension to the x86-64 port of GDB, the GNU Project debugger. The tool provides developers with a mechanism for debugging CUDA applications running on actual hardware. This enables developers to debug applications without the potential variations introduced by simulation and emulation environments.

CUDA-GDB runs on Linux and Mac OS X, 32-bit and 64-bit. CUDA-GDB is based on GDB 7.2 on both Linux and Mac OS X.

88 questions
0
votes
1 answer

cuda-gdb Kernel breakpoint not working

For some reason, the breakpoints I set in a specific kernel are completely ignored... I have checked the error status with cudaGetLastError(), which told me that everything ran fine so I am quite sure this should mean that the kernel has executed. …
JorenHeit
  • 3,877
  • 2
  • 22
  • 28
0
votes
2 answers

Nsight skips (ignores) over break points in VS10 Cuda when debugging remotely but if debug locally on the target machine it works fine

when I debugging my cuda project remotely on the host it ignore breakpoints but execute completely . but when I debug my project locally on the target machine it works fine . I checked my driver version it was 301.42 and my nsight version is 2.2…
Farzad Salimi Jazi
  • 760
  • 10
  • 25
0
votes
1 answer

How do I use cuda-gdb with a g++ linked program that uses an nvcc compiled static library?

I'm working on an nvcc compiled static library for a g++ linked project. How do I use cuda-gdb on the final executable? All I get is "Program exited normally" without any printf output or anything. nvcc is definitely being given the -g -G arguments…
Sean
  • 537
  • 1
  • 6
  • 15
0
votes
1 answer

cuda-gdb run >console permission denied OS X

I'm trying to debug my CUDA code on OS X, and I need to run it in >console mode, since running it normally freezes the screen. But it keeps giving me the " permission denied " error. Is there a work around for this?.
0
votes
1 answer

nsight on linux not working with cuda-gdb

I installed cuda 5 on my Ubuntu 12.10 64 bits. I have a GTX 675M, so I'm using bumblebee to run apps on my cuda device. I'm running nsight through bumblebee (optirun): frederico@zeus:~$ optirun /usr/local/cuda/libnsight/nsight And it works just…
Frederico Schardong
  • 1,946
  • 6
  • 38
  • 62
0
votes
1 answer

cuda gdb: the kernel indicated is not in the code

My original problem, is that I have functions with a long list of arguments, that exceeded the memory that is allowed to be passed as an argument to a cuda kernel (I don't remember how many bytes, because it's been a while since I dealt with that).…
Panagiotis
  • 315
  • 1
  • 3
  • 5
0
votes
1 answer

nsight eclipse for linux debug error

I'm using RHEL 6.2 and nsight eclipse edition on it to debug my cuda programs. There exists a problem with the debug mode, i.e. cuda-gdb on a customized Eclipse. When the PC enters the first Cuda API call, debugging terminates with these…
librarian
  • 3
  • 1
0
votes
2 answers

nsight eclipse for mac lion debug error

I am using nsight eclipse edition for mac to debug my cuda code. I was able to run cuda-gdb all fine from a terminal but was not able to use the debug function in Nsight. Whenever I started to debug, an error window pops up saying "Error in final…
sunviva
  • 3
  • 4
0
votes
1 answer

CUDA-GDB: No CUDA devices

I'm trying to debug a source code that works fine and gives no errors or warnings when compiling. The problem is that when I run it with cuda-gdb step by step, no CUDA kernels are launched at all (the output I get from the debugger is totally…
felippeduran
  • 346
  • 3
  • 6
0
votes
1 answer

cuda-gdb exits with "[1] stopped" when it hits a kernel call

I'm pretty new to CUDA and flying a bit by the seat of my pants here... I'm trying to debug my CUDA program on a remote machine I don't have admin rights on. I compile my program with nvcc -g -G and then try to debug it with cuda-gdb. However, as…
int3h
  • 462
  • 4
  • 15
0
votes
1 answer

Visual memory debugging application under Linux?

Does there exist a debugging application similar to the Visual Profiler for CUDA? It shows information about the application at the function level in terms of execution time. Is there something for regular C/C++ applications so I can see which…
Richard Żak
  • 814
  • 1
  • 11
  • 21
-1
votes
1 answer

Different behavior when Debugging using Configuration and CTRL-F5 in VSCode C++

In VSCode I have following configuration in the launch.json: { "name": "CUDA C++ Debug", "type": "cuda-gdb", "request": "launch", "program": "${workspaceFolder}/build/support_01", …
user2109066
  • 77
  • 1
  • 8
-2
votes
2 answers

How to use cuda-gdb python debugging?

I write a hello.py that is simply print("hi") and then run cuda-gdb python3 hello.py I get: Reading symbols from python3... (No debugging symbols found in python3) "/home/x/Desktop/py_projects/hello.py" is not a core dump: file format not…
1 2 3 4 5
6