NVIDIA / warp

A Python framework for high performance GPU simulation and graphics

Home Page:https://nvidia.github.io/warp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ways to print logging information for warp kernel function

RuihanGao opened this issue · comments

Thanks for the great work!
I may miss it in the documentation, but is it possible to print/log any debugging/error messages in warp kernel functions with @wp.kernel decorator?
Hint/instructions would be greatly helpful, thanks!

Hey @RuihanGao, are you looking for wp.printf()?

Here's a basic example: https://nvidia.github.io/warp/debugging.html#printing-values

That's exactly what I was looking for, thanks a lot for pointing it out!