diff --git a/unified-runtime/source/adapters/cuda/device.cpp b/unified-runtime/source/adapters/cuda/device.cpp index dd722925ca127..b97ae9b6c2617 100644 --- a/unified-runtime/source/adapters/cuda/device.cpp +++ b/unified-runtime/source/adapters/cuda/device.cpp @@ -1242,8 +1242,12 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice, case UR_DEVICE_INFO_GRAPH_RECORD_AND_REPLAY_SUPPORT_EXP: return ReturnValue(static_cast(false)); default: - break; + UR_LOG(ERR, "Unsupported ParamName in urDeviceGetInfo"); + UR_LOG(ERR, "ParamName={}(0x{})", propName, logger::toHex(propName)); + return UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION; } + + // Unreachable - all cases return, but compiler needs this return UR_RESULT_ERROR_INVALID_ENUMERATION; } catch (...) { return exceptionToResult(std::current_exception()); diff --git a/unified-runtime/source/adapters/hip/device.cpp b/unified-runtime/source/adapters/hip/device.cpp index 98cbddd23bfd8..9ba3c79ffd8b0 100644 --- a/unified-runtime/source/adapters/hip/device.cpp +++ b/unified-runtime/source/adapters/hip/device.cpp @@ -1056,8 +1056,12 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice, case UR_DEVICE_INFO_GRAPH_RECORD_AND_REPLAY_SUPPORT_EXP: return ReturnValue(false); default: - break; + UR_LOG(ERR, "Unsupported ParamName in urDeviceGetInfo"); + UR_LOG(ERR, "ParamName={}(0x{})", propName, logger::toHex(propName)); + return UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION; } + + // Unreachable - all cases return, but compiler needs this return UR_RESULT_ERROR_INVALID_ENUMERATION; } diff --git a/unified-runtime/source/adapters/opencl/device.cpp b/unified-runtime/source/adapters/opencl/device.cpp index a19dff7c81031..6ab7b9be174af 100644 --- a/unified-runtime/source/adapters/opencl/device.cpp +++ b/unified-runtime/source/adapters/opencl/device.cpp @@ -1587,7 +1587,7 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice, case UR_DEVICE_INFO_GRAPH_RECORD_AND_REPLAY_SUPPORT_EXP: return ReturnValue(false); default: { - return UR_RESULT_ERROR_INVALID_ENUMERATION; + return UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION; } } }

AltStyle によって変換されたページ (->オリジナル) /