|
FireSync API
|
| kStatus kCudaStatus_GetAndClear | ( | ) |
Returns a kStatus code that represents any accumulated cuda runtime errors and clears error state.
The Cuda runtime accumulates all past errors (on a per-thread basis) until they are explicitly cleared. This method can be used to get and clear error state. It is equivalent to passing the result of cudaGetLastError to kCudaStatus_Convert.