Feat C++ API
A feature engineering automation tool
error_handling.h
Go to the documentation of this file.
1
/* FEAT
2
copyright 2017 William La Cava
3
license: GNU/GPL v3
4
*/
5
#ifndef ERROR_HANDLING_H
6
#define ERROR_HANDLING_H
7
8
#include <iostream>
9
static
void
HandleError
( cudaError_t err,
const
char
*file,
int
line )
10
{
11
// CUDA error handeling from the "CUDA by example" book
12
if
(err != cudaSuccess)
13
{
14
printf(
"%s in %s at line %d\n"
, cudaGetErrorString( err ), file, line );
15
exit( EXIT_FAILURE );
16
}
17
}
18
#define HANDLE_ERROR( err ) (HandleError( err, __FILE__, __LINE__ ))
19
20
#endif
21
HandleError
static void HandleError(cudaError_t err, const char *file, int line)
Definition:
error_handling.h:9
src
pop
cuda-op
error_handling.h
Generated by
1.9.1