princeton-vl / DROID-SLAM

BSD 3-Clause "New" or "Revised" License
1.66k stars 273 forks source link

How to debug debug Pybind11 wrapped CUDA code in DROID-SLAM #74

Closed AutoSenseTech closed 10 months ago

AutoSenseTech commented 1 year ago

would it be possible to ask what tools that use to debug Pybind11-wrapped CUDA code in DROID-SLAM? I have tried cout something in cuda code in DROID-SLAM but it doesn't show in the console so I want to ask how to debug CUDA codes which are called by the python script?

kwea123 commented 11 months ago

you need to call printf in the cuda function. It is very annoying because you need to build it every time you change the code.

AutoSenseTech commented 10 months ago

@kwea123 Thank you so much!