I was trying to manually install cuda-gdb from the cuda-gdb source code on the Linux. I first grabbed the cuda-gdb 4.1 from the nvidia ftp server and configured it to target x86_64-unknown-linux-gnu. Everything is compiled but the executable cannot run due to a error of “Attempt to register a unknown architecture” and it was aborted. I then tried cuda-gdb 4.0, which was working. The problem with 4.0 is that although the cuda-gdb 4.0 executable could run with CUDA applications, it was not able to recognize the .cu file. I tried to make a breakpoint in the kernel file but it could not recognize the file. However the breakpoint worked with c/cpp files for this cuda-gdb 4.0.
I used Fedora and the CUDA version is 4.1. I cannot run “make install” on the machine because I do not have the privilege. I was wondering if that was the reason for the problem I have with cuda-gdb 4.0?
I am also interested in using the CUDA debugger API but I cannot find the interfaces to use those APIs. Does anyone have a clue of how to use them? maybe some examples?
Also, you might want to try the --prefix option to have cuda-gdb installed in a location that does not require administrator priviledges. For instance:
--prefix=~/cuda
Finally, the best examples to use the CUDA Debugger API is the cuda-gdb source code itself. The header file for the API is cudadebugger.h and is distributed with cuda-gdb. You can also find it with the standard toolkit installation under extras/Debugger/include/cudadebugger.h. The documentation for it is also shipped with the toolkit and is located in cuda/extras/Debugger/doc/CudaDebuggerAPI.pdf.