FireSync API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kBool kCudaStatus_Verify ( k32s  cudaStatus)

Converts a Cuda status code to a boolean value and clears Cuda error state.

The Cuda runtime accumulates all past errors until they are explicitly cleared. This approach conflicts with FireSync platform conventions, which recommend that errors should be reported via status codes returned by functions, but not otherwise maintained.

As such, this method can be used to wrap calls to the Cuda runtime. The method is equivalent to calling kCudaStatus_Filter and comparing the result with cudaSuccess.

Parameters
cudaStatusCuda runtime status code.
Returns
kTRUE if operation was successful.