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

Function CLErrorCodeToString

tensorflow/lite/delegates/gpu/cl/util.cc:25–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace cl {
24
25std::string CLErrorCodeToString(cl_int error_code) {
26 switch (error_code) {
27 case CL_SUCCESS:
28 return "Success";
29 case CL_DEVICE_NOT_FOUND:
30 return "Device not found";
31 case CL_DEVICE_NOT_AVAILABLE:
32 return "Device not available";
33 case CL_COMPILER_NOT_AVAILABLE:
34 return "Compiler not available";
35 case CL_MEM_OBJECT_ALLOCATION_FAILURE:
36 return "Memory object allocation failure";
37 case CL_OUT_OF_RESOURCES:
38 return "Out of resources";
39 case CL_OUT_OF_HOST_MEMORY:
40 return "Out of host memory";
41 case CL_PROFILING_INFO_NOT_AVAILABLE:
42 return "Profiling information not available";
43 case CL_MEM_COPY_OVERLAP:
44 return "Memory copy overlap";
45 case CL_IMAGE_FORMAT_MISMATCH:
46 return "Image format mismatch";
47 case CL_IMAGE_FORMAT_NOT_SUPPORTED:
48 return "Image format not supported";
49 case CL_BUILD_PROGRAM_FAILURE:
50 return "Build program failure";
51 case CL_MAP_FAILURE:
52 return "Mapping failure";
53 case CL_MISALIGNED_SUB_BUFFER_OFFSET:
54 return "Misaligned sub-buffer offset";
55 case CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST:
56 return "Execution status error for events in wait list";
57 case CL_COMPILE_PROGRAM_FAILURE:
58 return "Compile program failure";
59 case CL_LINKER_NOT_AVAILABLE:
60 return "Linker not available";
61 case CL_LINK_PROGRAM_FAILURE:
62 return "Link program failure";
63 case CL_DEVICE_PARTITION_FAILED:
64 return "Device partition failed";
65 case CL_KERNEL_ARG_INFO_NOT_AVAILABLE:
66 return "Kernel argument information not available";
67
68 case CL_INVALID_VALUE:
69 return "Invalid value";
70 case CL_INVALID_DEVICE_TYPE:
71 return "Invalid device type";
72 case CL_INVALID_PLATFORM:
73 return "Invalid platform";
74 case CL_INVALID_DEVICE:
75 return "Invalid device";
76 case CL_INVALID_CONTEXT:
77 return "Invalid context";
78 case CL_INVALID_QUEUE_PROPERTIES:
79 return "Invalid queue properties";
80 case CL_INVALID_COMMAND_QUEUE:
81 return "Invalid command queue";
82 case CL_INVALID_HOST_PTR:

Callers 15

CreateTexture2DFunction · 0.85
GetOpenCLErrorFunction · 0.85
AllocateTensorMemoryFunction · 0.85
CreateTensorBHWCFunction · 0.85
DispatchImplicitMethod · 0.85
EnqueueEventMethod · 0.85
EnqueueWriteImageMethod · 0.85
EnqueueReadImageMethod · 0.85
EnqueueWriteBufferMethod · 0.85
EnqueueReadBufferMethod · 0.85
WaitForCompletionMethod · 0.85

Calls 1

StrCatFunction · 0.50

Tested by

no test coverage detected