NVIDIA / warp

A Python framework for high performance GPU simulation and graphics
https://nvidia.github.io/warp/
Other
4.27k stars 243 forks source link

[REQUEST] Allow raising errors from kernels #336

Open nvlukasz opened 3 weeks ago

nvlukasz commented 3 weeks ago

Description

Currently, there is no way to raise an error from a Warp kernel. Adding a wp.assert() builtin would work. To reduce perf overhead, consider enabling it only in debug mode.

Context

Request from @mehdiataei