From 59552ff879b9f70fe73ffde018317c06767db01c Mon Sep 17 00:00:00 2001 From: Aaron Greig Date: Mon, 23 Sep 2024 10:31:08 +0100 Subject: [PATCH] Add DEVICE_ID to optional device queries. --- include/ur_api.h | 2 +- test/conformance/testing/include/uur/optional_queries.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/ur_api.h b/include/ur_api.h index 0bb0272bd2..59bbc91d75 100644 --- a/include/ur_api.h +++ b/include/ur_api.h @@ -1480,7 +1480,7 @@ urDeviceGetSelected( typedef enum ur_device_info_t { UR_DEVICE_INFO_TYPE = 0, ///< [::ur_device_type_t] type of the device UR_DEVICE_INFO_VENDOR_ID = 1, ///< [uint32_t] vendor Id of the device - UR_DEVICE_INFO_DEVICE_ID = 2, ///< [uint32_t] Id of the device + UR_DEVICE_INFO_DEVICE_ID = 2, ///< [uint32_t][optional-query] Id of the device UR_DEVICE_INFO_MAX_COMPUTE_UNITS = 3, ///< [uint32_t] the number of compute units UR_DEVICE_INFO_MAX_WORK_ITEM_DIMENSIONS = 4, ///< [uint32_t] max work item dimensions UR_DEVICE_INFO_MAX_WORK_ITEM_SIZES = 5, ///< [size_t[]] return an array of max work item sizes diff --git a/test/conformance/testing/include/uur/optional_queries.h b/test/conformance/testing/include/uur/optional_queries.h index 8fb938c572..d56657d425 100644 --- a/test/conformance/testing/include/uur/optional_queries.h +++ b/test/conformance/testing/include/uur/optional_queries.h @@ -24,6 +24,7 @@ namespace uur { template bool isQueryOptional(T) { return false; } constexpr std::array optional_ur_device_info_t = { + UR_DEVICE_INFO_DEVICE_ID, UR_DEVICE_INFO_MEMORY_CLOCK_RATE, UR_DEVICE_INFO_GLOBAL_MEM_FREE, UR_DEVICE_INFO_UUID,