Custom cpp/cuda extensions - debugging

Hi, I’m trying to learn making my own 0.4a pytorch extensions by following the excellent tutorial of Goldsborough (link below). I’ve got things working but I can’t find a way to debug things when doing work myself (current workflow is simply compile with jit, run some commands and see if it works).

Is it possible to compile and debug the ATen .cu / .cpp files? I tried using nvcc but was unable to work out how to run things.

It would probably be of great help to have a brief section in the tutorial on this as well.

Disclaimer: First time I’m coding either cpp or CUDA

Link to tutorial:

3 Likes