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

failed using cuda-gdb to launch program with CUPTI calls

I'm having this weird issue: I have a program that uses CUPTI callbackAPI to monitor the kernels in the program. It runs well when it's directly launched; but when I put it under cuda-gdb and run, it failed with the following error: error: function…
BruceTerp
  • 45
  • 8
0
votes
1 answer

New Thread spawned by cudaMalloc | Behaviour?

cudaMalloc seemed to have spawned a thread when it was called, even though it's asynchronous. This was observed during debugging using cuda-gdb. It also took a while to return. The same thread exited, although as a different LWP, at the end of the…
kesari
  • 536
  • 1
  • 6
  • 16
0
votes
1 answer

CUDA-GDB prints memory content using int format even though it should be float

In a CUDA C project, I have a pointer to float inside a structure called "p". It is a pointer to device memory and it is called "p->deviceOutput". I am using CUDA-GDB to check the content of this pointer during execution: when I try to print it this…
Andrea Crespi
  • 21
  • 1
  • 4
0
votes
2 answers

cudaMemcpy() gives segfault when using Type**

I want to copy a double pointer object to the host and compute over it on the GPU Device. When doing cudaMemcpy of the object to device it throws SEGFAULT. BMP Input; Input.ReadFromFile( fileName ); WIDTH = Input.TellWidth(); HEIGHT =…
aagam94
  • 613
  • 1
  • 6
  • 20
0
votes
0 answers

Script works only when run in cuda-memcheck

I'm writing a convnet using torch and cudnn and having some memory issues. I tried debugging the script with cuda-memcheck only to notice it actually runs when fed through cuda-memcheck (albeit slower than it should). Turns out if cuda-memcheck is…
Haggis
  • 17
  • 1
0
votes
2 answers

cuda-gdb Error message

I tried to debug my CUDA application with cuda-gdb but got some weird error. I set option -g -G -O0 to build my application. I could run my program without cuda-gdb, but didn't get correct result. Hence I decided to use cuda-gdb, however, I got…
Jongsu Liam Kim
  • 717
  • 1
  • 7
  • 23
0
votes
1 answer

Strange CUDA program behavior and I can't find bug by cuda-dbg

I want to implement MonteCarlo using CUDA. I write my code on Win8 PC using Visual Studio2012/CUDA 5.5/GT 720M and it runs well. Then I tried to compile my code in REHL5.3/Tesla C1060/CUDA 2.3 but the result turned out wrong. Then I want to use…
Alaya
  • 3,287
  • 4
  • 27
  • 39
0
votes
1 answer

Cudamemcpy2d error

cudamemcpy2d is returning error -- following is the code in the code below i have mentioned the line where i am getting an error. please look through and help me. main(){ int nrow = 16,ncol = 41; // double **x = new double*[nrow]; …
lava
  • 1
  • 3
0
votes
1 answer

CUDA error: MapSMtoCores undefined SM 3.5 is undefined

I'm failing to run a python script which wraps CUDA code. It's telling me to update my CUDA SDK, but I think that the problem is a cuda C file getting read instead of a cuda C++ file of the same name. Anyone know how to fix this? The error message…
Alexandre Holden Daly
  • 6,944
  • 5
  • 25
  • 36
0
votes
1 answer

Kernel Conditional Breakpoints in Nsight Eclipse

I'm running CUDA 5.5 on an SUSE Linux machine with 2 M2050 cards installed, neither of which are used for running X11. I am trying to step through a kernel that is specifically only using device 0 using the Nsight Eclipse debugger. If I set an…
Michael Puglia
  • 145
  • 2
  • 9
0
votes
1 answer

nsight eclipse remote debugging timed out error

I have a Server running CentOS 6.0 and I'm trying to use it as a remote host for cuda debugging. In order to do this, I installed cuda-toolkit 5.5 both on the server and my notebook, which is running ubuntu 12.10 OS. I configured the two machines as…
Xiangyu.Guo
  • 151
  • 1
  • 8
0
votes
1 answer

How to do remote debugging with Nsight 5.5 on Linux?

Disclaimer: I know that this question has been asked numerous times, but before Nsight 5.5 the answer simply was "You can't." I'm trying to debug a CUDA program with Nsight 5.5 on Ubuntu. The remote machine is also an Ubuntu with CUDA Toolkit 5.5. I…
shinjin
  • 2,858
  • 5
  • 29
  • 44
0
votes
1 answer

cuda-gdb does not step into kernels

I am trying to get memory traces from cuda-gdb. However, I am not able to step into the kernel code. I use the nvcc flags -g -G and -keep but to no effect. I am able to put a breakpoint on the kernel function but when I try to access the next…
Anirudh Kaushik
  • 181
  • 1
  • 11
0
votes
1 answer

CUDA 2D array nvidia

I am using cudaMallocPitch and cudaMemcpy2D for 2D array. I am not sure that I have coded correct even though I could not get the output correctly. Can any one help please? Can any one debug my error? Thanks in advance. …
dambigan
  • 21
  • 1
  • 3
0
votes
1 answer

cuda-gdb can't see available devices

I'm trying to use cuda-gdb debug my code on a remote cluster via ssh. There're 6 Tesla C2070 gpu on the node: $ deviceQuery | grep "^Device" Device 0: "Tesla C2070" Device 1: "Tesla C2070" Device 2: "Tesla C2070" Device 3: "Tesla C2070" Device 4:…
Stone
  • 345
  • 1
  • 6
  • 14