Skip to content

Commit

Permalink
Add DEVICE_ID to optional device queries.
Browse files Browse the repository at this point in the history
  • Loading branch information
aarongreig committed Sep 23, 2024
1 parent 29976f1 commit 59552ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/ur_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions test/conformance/testing/include/uur/optional_queries.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ namespace uur {
template <class T> 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,
Expand Down

0 comments on commit 59552ff

Please sign in to comment.