See e.g.:
|
#define CudaMalloc(a__,b__) assert( (*((void**)(a__)) = malloc(b__)) != NULL ) |
Program logic should not depend on the contents of assert statements, since they will be #ifdefed out in a release (-DNDEBUG) build. This happens in multiple places in the code.