Skip to content

Commit

Permalink
[UR] Clarify UNINITIALIZED error meaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Vesely committed Jun 23, 2023
1 parent c7b0caf commit 6a8acc4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion include/ur.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ class ur_result_v(IntEnum):
ERROR_IMAGE_FORMAT_NOT_SUPPORTED = 35 ## Image format not supported
ERROR_MEM_OBJECT_ALLOCATION_FAILURE = 36 ## Memory object allocation failure
ERROR_INVALID_PROGRAM_EXECUTABLE = 37 ## Program object parameter is invalid.
ERROR_UNINITIALIZED = 38 ## [Validation] adapter is not initialized
ERROR_UNINITIALIZED = 38 ## [Validation] adapter is not initialized or specific entry-point is not
## implemented
ERROR_OUT_OF_HOST_MEMORY = 39 ## Insufficient host memory to satisfy call
ERROR_OUT_OF_DEVICE_MEMORY = 40 ## Insufficient device memory to satisfy call
ERROR_OUT_OF_RESOURCES = 41 ## Out of resources
Expand Down
3 changes: 2 additions & 1 deletion include/ur_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ typedef enum ur_result_t {
UR_RESULT_ERROR_IMAGE_FORMAT_NOT_SUPPORTED = 35, ///< Image format not supported
UR_RESULT_ERROR_MEM_OBJECT_ALLOCATION_FAILURE = 36, ///< Memory object allocation failure
UR_RESULT_ERROR_INVALID_PROGRAM_EXECUTABLE = 37, ///< Program object parameter is invalid.
UR_RESULT_ERROR_UNINITIALIZED = 38, ///< [Validation] adapter is not initialized
UR_RESULT_ERROR_UNINITIALIZED = 38, ///< [Validation] adapter is not initialized or specific entry-point is not
///< implemented
UR_RESULT_ERROR_OUT_OF_HOST_MEMORY = 39, ///< Insufficient host memory to satisfy call
UR_RESULT_ERROR_OUT_OF_DEVICE_MEMORY = 40, ///< Insufficient device memory to satisfy call
UR_RESULT_ERROR_OUT_OF_RESOURCES = 41, ///< Out of resources
Expand Down
2 changes: 1 addition & 1 deletion scripts/core/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ etors:
- name: ERROR_INVALID_PROGRAM_EXECUTABLE
desc: "Program object parameter is invalid."
- name: ERROR_UNINITIALIZED
desc: "[Validation] adapter is not initialized"
desc: "[Validation] adapter is not initialized or specific entry-point is not implemented"
- name: ERROR_OUT_OF_HOST_MEMORY
desc: "Insufficient host memory to satisfy call"
- name: ERROR_OUT_OF_DEVICE_MEMORY
Expand Down

0 comments on commit 6a8acc4

Please sign in to comment.