I implemented my own assert in CUDA code, by using the printf function available with the Fermi architecture.
#define cudaAssert(condition) \ if (!(condition)) printf("Assertion %s failed!\n", #condition)
As you can see the code just complains if an assertion does not hold but it does not abort the kernel execution. How can I do that? Is there something like exit(-1) for CUDA kernels?