| 112 | } |
| 113 | public: |
| 114 | static void cudaSafeCall(cudaError err, const char *file, const int line) |
| 115 | { |
| 116 | if (!evalError(err, file, line)) return; |
| 117 | #if CUMAT_VERBOSE_ERROR_CHECKING==1 |
| 118 | //insert a device-sync |
| 119 | err = cudaDeviceSynchronize(); |
| 120 | evalError(err, file, line); |
| 121 | #endif |
| 122 | } |
| 123 | |
| 124 | static bool cudaSafeCallNoThrow(cudaError err, const char* file, const int line) |
| 125 | { |
nothing calls this directly
no outgoing calls
no test coverage detected