| 133 | } |
| 134 | |
| 135 | static void cudaCheckError(const char *file, const int line) |
| 136 | { |
| 137 | cudaError err = cudaGetLastError(); |
| 138 | if (!evalError(err, file, line)) return; |
| 139 | |
| 140 | #if CUMAT_VERBOSE_ERROR_CHECKING==1 |
| 141 | // More careful checking. However, this will affect performance. |
| 142 | err = cudaDeviceSynchronize(); |
| 143 | evalError(err, file, line); |
| 144 | #endif |
| 145 | } |
| 146 | }; |
| 147 | |
| 148 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected