30 static const char* ccl_errors[] = {
31 "Successful operation",
33 "Device not available",
34 "Compiler not available",
35 "Memory object allocation failure",
38 "Profiling info not available",
39 "Memory copy overlap",
40 "Image format mismatch",
41 "Image format not supported",
42 "Build program failure",
44 "Misaligned sub-buffer offset",
45 "Execution status error for events in wait list",
46 "Compile program failure",
47 "Linker not available",
48 "Link program failure",
49 "Device partition failed",
50 "Argument information not available",
51 "Unassigned error code",
52 "Unassigned error code",
53 "Unassigned error code",
54 "Unassigned error code",
55 "Unassigned error code",
56 "Unassigned error code",
57 "Unassigned error code",
58 "Unassigned error code",
59 "Unassigned error code",
60 "Unassigned error code",
62 "Invalid device type",
66 "Invalid queue properties",
67 "Invalid command queue",
68 "Invalid host pointer",
69 "Invalid memory object",
70 "Invalid image format descriptor",
74 "Invalid build options",
76 "Invalid program executable",
77 "Invalid kernel name",
78 "Invalid kernel definition",
80 "Invalid argument index",
81 "Invalid argument value",
82 "Invalid argument size",
83 "Invalid kernel arguments",
84 "Invalid work dimension",
85 "Invalid work-group size",
86 "Invalid work-item size",
87 "Invalid global offset",
88 "Invalid event wait list",
92 "Invalid buffer size",
94 "Invalid global work size",
96 "Invalid image descriptor",
97 "Invalid compiler options",
98 "Invalid linker options",
99 "Invalid device partition count",
101 "Invalid device queue"
104 static const int ccl_errors_count = 71;
119 int index = -1 * code;
120 return (index >= 0) && (index < ccl_errors_count)
122 :
"Unknown OpenCL error code";
const char * ccl_err(int code)
Convert OpenCL error code to a readable string.
Convert OpenCL error codes to readable strings (function header).