| 64 | } |
| 65 | |
| 66 | void CudaCheck(const char* file, const int line) { |
| 67 | const cudaError error = cudaGetLastError(); |
| 68 | while (error != cudaSuccess) { |
| 69 | LOG(FATAL_THROW) << StringPrintf( |
| 70 | "CUDA error at %s:%i - %s", file, line, cudaGetErrorString(error)); |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | void CudaSyncAndCheck(const char* file, const int line) { |
| 75 | // Synchronizes the default stream which is a nullptr. |
nothing calls this directly
no test coverage detected