|
14 | 14 | // To add new error codes, add them to offload/liboffload/API/Common.td and run |
15 | 15 | // the GenerateOffload target. |
16 | 16 |
|
17 | | -OFFLOAD_ERRC(SUCCESS, "Success", 0) |
18 | | -OFFLOAD_ERRC(UNKNOWN, "Unknown or internal error", 1) |
| 17 | +OFFLOAD_ERRC(SUCCESS, "success", 0) |
| 18 | +OFFLOAD_ERRC(UNKNOWN, "unknown or internal error", 1) |
| 19 | +OFFLOAD_ERRC(HOST_IO, "I/O error on host", 2) |
| 20 | +OFFLOAD_ERRC(INVALID_BINARY, "a provided binary image is malformed", 3) |
19 | 21 | OFFLOAD_ERRC(INVALID_NULL_POINTER, |
20 | | - "A pointer argument is null when it should not be", 2) |
21 | | -OFFLOAD_ERRC(INVALID_ARGUMENT, "An argument is invalid", 3) |
22 | | -OFFLOAD_ERRC(OUT_OF_RESOURCES, "Out of resources", 4) |
23 | | -OFFLOAD_ERRC(UNSUPPORTED, |
24 | | - "generic error code for unsupported features and enums", 5) |
| 22 | + "a pointer argument is null when it should not be", 4) |
| 23 | +OFFLOAD_ERRC(INVALID_ARGUMENT, "an argument is invalid", 5) |
| 24 | +OFFLOAD_ERRC(NOT_FOUND, "requested object was not found in the binary image", 6) |
| 25 | +OFFLOAD_ERRC(OUT_OF_RESOURCES, "out of resources", 7) |
25 | 26 | OFFLOAD_ERRC( |
26 | 27 | INVALID_SIZE, |
27 | 28 | "invalid size or dimensions (e.g., must not be zero, or is out of bounds)", |
28 | | - 6) |
29 | | -OFFLOAD_ERRC(INVALID_ENUMERATION, "enumerator argument is not valid", 7) |
30 | | -OFFLOAD_ERRC(INVALID_KERNEL_NAME, |
31 | | - "Named kernel not found in the program binary", 8) |
32 | | -OFFLOAD_ERRC(INVALID_VALUE, "Invalid Value", 9) |
33 | | -OFFLOAD_ERRC(INVALID_PLATFORM, "Invalid platform", 10) |
34 | | -OFFLOAD_ERRC(INVALID_DEVICE, "Invalid device", 11) |
35 | | -OFFLOAD_ERRC(INVALID_QUEUE, "Invalid queue", 12) |
36 | | -OFFLOAD_ERRC(INVALID_EVENT, "Invalid event", 13) |
37 | | -OFFLOAD_ERRC(INVALID_NULL_HANDLE, "handle argument is not valid", 14) |
| 29 | + 8) |
| 30 | +OFFLOAD_ERRC(INVALID_ENUMERATION, "enumerator argument is not valid", 9) |
| 31 | +OFFLOAD_ERRC(HOST_TOOL_NOT_FOUND, |
| 32 | + "a required binary (linker, etc.) was not found on the host", 10) |
| 33 | +OFFLOAD_ERRC(INVALID_VALUE, "invalid value", 11) |
| 34 | +OFFLOAD_ERRC(UNIMPLEMENTED, |
| 35 | + "generic error code for features currently unimplemented by the " |
| 36 | + "device/backend", |
| 37 | + 12) |
| 38 | +OFFLOAD_ERRC( |
| 39 | + UNSUPPORTED, |
| 40 | + "generic error code for features unsupported by the device/backend", 13) |
| 41 | +OFFLOAD_ERRC(ASSEMBLE_FAILURE, |
| 42 | + "assembler failure while processing binary image", 14) |
| 43 | +OFFLOAD_ERRC(LINK_FAILURE, "linker failure while processing binary image", 15) |
| 44 | +OFFLOAD_ERRC(BACKEND_FAILURE, |
| 45 | + "the plugin backend is in an invalid or unsupported state", 16) |
| 46 | +OFFLOAD_ERRC(INVALID_NULL_HANDLE, |
| 47 | + "a handle argument is null when it should not be", 17) |
| 48 | +OFFLOAD_ERRC(INVALID_PLATFORM, "invalid platform", 18) |
| 49 | +OFFLOAD_ERRC(INVALID_DEVICE, "invalid device", 19) |
| 50 | +OFFLOAD_ERRC(INVALID_QUEUE, "invalid queue", 20) |
| 51 | +OFFLOAD_ERRC(INVALID_EVENT, "invalid event", 21) |
0 commit comments