| 28 | #define CURAND_CHECK(error) CurandCheck((error), __FILE__, __LINE__) |
| 29 | |
| 30 | inline void CudaCheck(cudaError_t error, const char *file_name, int line) { |
| 31 | CHECK(error == cudaSuccess) |
| 32 | << "CUDA error " << cudaGetErrorString(error) << " at " << file_name << ":" << line; |
| 33 | } |
| 34 | |
| 35 | inline void CurandCheck(curandStatus_t error, const char *file_name, int line) { |
| 36 | CHECK(error == CURAND_STATUS_SUCCESS) |
nothing calls this directly
no outgoing calls
no test coverage detected