Is there convenient way for using asserts within the kernels invocation on device mode?
Thanks, in advance.
Is there convenient way for using asserts within the kernels invocation on device mode?
Thanks, in advance.
#define MYASSERT(condition) \
if (!condition) return;
MYASSERT(condition);
if you need something fancier you can use cuPrintf()
which is available from the CUDA site for registered developers.