Helper to clear CUDA errors
| 17 | |
| 18 | // Helper to clear CUDA errors |
| 19 | inline void clear_cuda_errors() { |
| 20 | cudaDeviceSynchronize(); |
| 21 | cudaGetLastError(); |
| 22 | } |
| 23 | |
| 24 | // Helper to check for pending CUDA errors |
| 25 | inline bool has_cuda_error() { |
no outgoing calls
no test coverage detected