Cannot use break in a while loop
xuan-li opened this issue · comments
Xuan Li commented
To reproduce:
import warp as wp
@wp.func
def test_func():
stop = wp.bool(False)
while not stop:
stop = True
break
@wp.kernel
def test_kernel():
test_func()
wp.init()
wp.launch(test_kernel, dim=1)
Got the following exception:
Exception: CUDA kernel build failed with error code 6
removing break
works fine.
Nicolas Capens commented
Thanks for reporting this! A fix will be available in the next release.
KinjalParikh commented
Similarly continue
keyword doesn't work either
Nicolas Capens commented
This is fixed as part of Warp 1.1.0!