Reference the c++ extension, I write a c++ extension of roi align and roi pool in pytorch: roi align&roi pool.I find it’s easy to debug cpp code (pure c++ code), However, the .cu code need to run python setup.py install again and again to find error. (use nvcc will cause an error about cannot find ATen library).
My Question is: Is there an easy way to debug .cu code?
Hi, I am new to writing cpp extensions and met the same problem. Do you find out how to debug cpp extensions? For now, I just add prinf in cpp scripts and run python setup.py install again and again to find out where is the bug.
Any suggestions for how to debug c++ extensions? Or any keyword for how to search such problems?
Many thanks!