Skip to content

Commit 59552ff

Browse files
committed
Add DEVICE_ID to optional device queries.
1 parent 29976f1 commit 59552ff

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/ur_api.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1480,7 +1480,7 @@ urDeviceGetSelected(
14801480
typedef enum ur_device_info_t {
14811481
UR_DEVICE_INFO_TYPE = 0, ///< [::ur_device_type_t] type of the device
14821482
UR_DEVICE_INFO_VENDOR_ID = 1, ///< [uint32_t] vendor Id of the device
1483-
UR_DEVICE_INFO_DEVICE_ID = 2, ///< [uint32_t] Id of the device
1483+
UR_DEVICE_INFO_DEVICE_ID = 2, ///< [uint32_t][optional-query] Id of the device
14841484
UR_DEVICE_INFO_MAX_COMPUTE_UNITS = 3, ///< [uint32_t] the number of compute units
14851485
UR_DEVICE_INFO_MAX_WORK_ITEM_DIMENSIONS = 4, ///< [uint32_t] max work item dimensions
14861486
UR_DEVICE_INFO_MAX_WORK_ITEM_SIZES = 5, ///< [size_t[]] return an array of max work item sizes

test/conformance/testing/include/uur/optional_queries.h

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ namespace uur {
2424
template <class T> bool isQueryOptional(T) { return false; }
2525

2626
constexpr std::array optional_ur_device_info_t = {
27+
UR_DEVICE_INFO_DEVICE_ID,
2728
UR_DEVICE_INFO_MEMORY_CLOCK_RATE,
2829
UR_DEVICE_INFO_GLOBAL_MEM_FREE,
2930
UR_DEVICE_INFO_UUID,

0 commit comments

Comments
 (0)