From b9048ac51cff20551a89d04a76bb3c836908c3a2 Mon Sep 17 00:00:00 2001 From: omarahmed1111 Date: Tue, 9 Jul 2024 11:43:58 +0100 Subject: [PATCH] Small typo fix for ERROR_ADAPTER_SPECIFIC spec description --- include/ur_api.h | 2 +- scripts/core/common.yml | 2 +- source/adapters/opencl/common.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ur_api.h b/include/ur_api.h index d31181af28..50f4b3f12f 100644 --- a/include/ur_api.h +++ b/include/ur_api.h @@ -495,7 +495,7 @@ typedef enum ur_result_t { UR_RESULT_ERROR_INVALID_USM_SIZE = 64, ///< Invalid USM size UR_RESULT_ERROR_OBJECT_ALLOCATION_FAILURE = 65, ///< Objection allocation failure UR_RESULT_ERROR_ADAPTER_SPECIFIC = 66, ///< An adapter specific warning/error has been reported and can be - ///< retrieved via the urPlatformGetLastError entry point. + ///< retrieved via the urAdapterGetLastError entry point. UR_RESULT_ERROR_LAYER_NOT_PRESENT = 67, ///< A requested layer was not found by the loader. UR_RESULT_ERROR_IN_EVENT_LIST_EXEC_STATUS = 68, ///< An event in the provided wait list has ::UR_EVENT_STATUS_ERROR. UR_RESULT_ERROR_DEVICE_NOT_AVAILABLE = 69, ///< Device in question has `::UR_DEVICE_INFO_AVAILABLE == false` diff --git a/scripts/core/common.yml b/scripts/core/common.yml index d06333eb07..85fa411fab 100644 --- a/scripts/core/common.yml +++ b/scripts/core/common.yml @@ -269,7 +269,7 @@ etors: desc: "Objection allocation failure" - name: ERROR_ADAPTER_SPECIFIC desc: "An adapter specific warning/error has been reported and can be retrieved - via the urPlatformGetLastError entry point." + via the urAdapterGetLastError entry point." - name: ERROR_LAYER_NOT_PRESENT desc: "A requested layer was not found by the loader." - name: ERROR_IN_EVENT_LIST_EXEC_STATUS diff --git a/source/adapters/opencl/common.cpp b/source/adapters/opencl/common.cpp index 03775fb87d..b0621acfe4 100644 --- a/source/adapters/opencl/common.cpp +++ b/source/adapters/opencl/common.cpp @@ -12,7 +12,7 @@ #include "logger/ur_logger.hpp" namespace cl_adapter { -/* Global variables for urPlatformGetLastError() */ +/* Global variables for urAdapterGetLastError() */ thread_local int32_t ErrorMessageCode = 0; thread_local char ErrorMessage[MaxMessageSize];