Hi,
Not sure what your problem is but be careful in a debugger as as soon as a device side assert triggers, the cuda driver gets into a bad state and any call into cuda will fail from that point onward. You need to restart the program for it to work again.