configfiles/vim/.vim/templates/cuda

17 lines
406 B
Text
Raw Normal View History

2015-10-13 12:13:02 +02:00
#define ERRCHECK(err) (HandleError( err , __FILE__, __LINE__))
static void HandleError( cudaError_t err, const char *file, int line ) {
if(err != cudaSuccess) {
fprintf(stderr, "Cuda Error: %s in %s at line %d\n",
cudaGetErrorString( err ),
file,
line );
exit( EXIT_FAILURE );
}
}
int main( int argc, char *argv[] ) {
return 0;
}