MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetOpenCLError

Function GetOpenCLError

tensorflow/lite/delegates/gpu/cl/cl_errors.h:30–35  ·  view source on GitHub ↗

@return if error_code is success, then return OK status. Otherwise translates error code into a message.

Source from the content-addressed store, hash-verified

28// @return if error_code is success, then return OK status. Otherwise translates
29// error code into a message.
30inline Status GetOpenCLError(cl_int error_code) {
31 if (error_code == CL_SUCCESS) {
32 return OkStatus();
33 }
34 return InternalError("OpenCL error: " + CLErrorCodeToString(error_code));
35}
36
37} // namespace cl
38} // namespace gpu

Callers 1

CopyMethod · 0.85

Calls 3

OkStatusFunction · 0.85
CLErrorCodeToStringFunction · 0.85
InternalErrorFunction · 0.50

Tested by

no test coverage detected