rocessor">#define cudaCheckErrors(expr1,expr2,expr3) { cudaError_t e = expr1; int g = expr2; int p = expr3; if (e != cudaSuccess) { fprintf(stderr,&quot;error %d %s\tfile %s\tline %d\tgeneration %d\t population %d\n&quot;, e, cudaGetErrorString(e),__FILE__,__LINE__, g,p); exit(1); } }</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#define cudaCheckErrorsAsync(expr1,expr2,expr3) { cudaCheckErrors(expr1,expr2,expr3); if(__DEBUG__){ cudaChec