clray

view src/ocl_errstr.h @ 62:d9520da6b801

minor readme fix
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 28 Dec 2015 10:31:58 +0200
parents deaf85acf6af
children
line source
1 #ifndef OCL_CC_
2 #error "don't include ocl_errstr.h"
3 #endif
5 static const char *ocl_errstr[] = {
6 "CL_SUCCESS",
7 "CL_DEVICE_NOT_FOUND",
8 "CL_DEVICE_NOT_AVAILABLE",
9 "CL_COMPILER_NOT_AVAILABLE",
10 "CL_MEM_OBJECT_ALLOCATION_FAILURE",
11 "CL_OUT_OF_RESOURCES",
12 "CL_OUT_OF_HOST_MEMORY",
13 "CL_PROFILING_INFO_NOT_AVAILABLE",
14 "CL_MEM_COPY_OVERLAP",
15 "CL_IMAGE_FORMAT_MISMATCH",
16 "CL_IMAGE_FORMAT_NOT_SUPPORTED",
17 "CL_BUILD_PROGRAM_FAILURE",
18 "CL_MAP_FAILURE",
19 "CL_MISALIGNED_SUB_BUFFER_OFFSET",
20 "CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST",
21 "CL_COMPILE_PROGRAM_FAILURE",
22 "CL_LINKER_NOT_AVAILABLE",
23 "CL_LINK_PROGRAM_FAILURE",
24 "CL_DEVICE_PARTITION_FAILED",
25 "CL_KERNEL_ARG_INFO_NOT_AVAILABLE", /* 19 */
27 "<unknown error>", "<unknown error>", /* 20, 21 */
28 "<unknown error>", "<unknown error>", /* 22, 23 */
29 "<unknown error>", "<unknown error>", /* 24, 25 */
30 "<unknown error>", "<unknown error>", /* 26, 27 */
31 "<unknown error>", "<unknown error>", /* 28, 29 */
33 "CL_INVALID_VALUE", /* 30 */
34 "CL_INVALID_DEVICE_TYPE",
35 "CL_INVALID_PLATFORM",
36 "CL_INVALID_DEVICE",
37 "CL_INVALID_CONTEXT",
38 "CL_INVALID_QUEUE_PROPERTIES",
39 "CL_INVALID_COMMAND_QUEUE",
40 "CL_INVALID_HOST_PTR",
41 "CL_INVALID_MEM_OBJECT",
42 "CL_INVALID_IMAGE_FORMAT_DESCRIPTOR",
43 "CL_INVALID_IMAGE_SIZE",
44 "CL_INVALID_SAMPLER",
45 "CL_INVALID_BINARY",
46 "CL_INVALID_BUILD_OPTIONS",
47 "CL_INVALID_PROGRAM",
48 "CL_INVALID_PROGRAM_EXECUTABLE",
49 "CL_INVALID_KERNEL_NAME",
50 "CL_INVALID_KERNEL_DEFINITION",
51 "CL_INVALID_KERNEL",
52 "CL_INVALID_ARG_INDEX",
53 "CL_INVALID_ARG_VALUE",
54 "CL_INVALID_ARG_SIZE",
55 "CL_INVALID_KERNEL_ARGS",
56 "CL_INVALID_WORK_DIMENSION",
57 "CL_INVALID_WORK_GROUP_SIZE",
58 "CL_INVALID_WORK_ITEM_SIZE",
59 "CL_INVALID_GLOBAL_OFFSET",
60 "CL_INVALID_EVENT_WAIT_LIST",
61 "CL_INVALID_EVENT",
62 "CL_INVALID_OPERATION",
63 "CL_INVALID_GL_OBJECT",
64 "CL_INVALID_BUFFER_SIZE",
65 "CL_INVALID_MIP_LEVEL",
66 "CL_INVALID_GLOBAL_WORK_SIZE",
67 "CL_INVALID_PROPERTY",
68 "CL_INVALID_IMAGE_DESCRIPTOR",
69 "CL_INVALID_COMPILER_OPTIONS",
70 "CL_INVALID_LINKER_OPTIONS",
71 "CL_INVALID_DEVICE_PARTITION_COUNT" /* 68 */
72 };