| 67 | bool findModulePath(const char *, string &, char **, ostringstream &); |
| 68 | |
| 69 | static void check(CUresult result, char const *const func, const char *const file, int const line) |
| 70 | { |
| 71 | if (result) { |
| 72 | fprintf(stderr, "CUDA error at %s:%d code=%d \"%s\" \n", file, line, static_cast<unsigned int>(result), func); |
| 73 | exit(EXIT_FAILURE); |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | #define checkCudaDrvErrors(val) check((val), #val, __FILE__, __LINE__) |
| 78 |
nothing calls this directly
no outgoing calls
no test coverage detected