pytorch / extension-cpp

C++ extensions in PyTorch
1.02k stars 214 forks source link

How to debug in cuda-pytorch env? #76

Open Arsmart123 opened 2 years ago

Arsmart123 commented 2 years ago

Hi! I am wondering how to debug in such environment? I have tried to insert a "printf("hello wolrd")" sentence in .cu file, but it compiles failure! If I delete it, everything works fine..... So how you debug in such environment? Thank you!!!!