Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion unified-runtime/include/unified-runtime/ur_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -2203,7 +2203,9 @@ typedef enum ur_device_info_t {
/// It is unsuitable for general use in applications. This feature is
/// provided for identifying memory leaks.
UR_DEVICE_INFO_REFERENCE_COUNT = 64,
/// [char[]] null-terminated IL version
/// [char[]][optional-query] null-terminated IL version. This query is
/// optional because not all adapters support intermediate language (IL). For
/// example, NativeCPU executes native code directly without IL support.
UR_DEVICE_INFO_IL_VERSION = 65,
/// [char[]] null-terminated device name
UR_DEVICE_INFO_NAME = 66,
Expand Down
2 changes: 1 addition & 1 deletion unified-runtime/scripts/core/device.yml
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ etors:
The reference count returned should be considered immediately stale.
It is unsuitable for general use in applications. This feature is provided for identifying memory leaks.
- name: IL_VERSION
desc: "[char[]] null-terminated IL version"
desc: "[char[]][optional-query] null-terminated IL version. This query is optional because not all adapters support intermediate language (IL). For example, NativeCPU executes native code directly without IL support."
- name: NAME
desc: "[char[]] null-terminated device name"
- name: VENDOR
Expand Down
4 changes: 2 additions & 2 deletions unified-runtime/test/conformance/device/urDeviceGetInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1112,9 +1112,9 @@ TEST_P(urDeviceGetInfoTest, SuccessReferenceCount) {
property_value);
}

// Optional query: Not all adapters support intermediate language (IL).
// NativeCPU executes native code directly without IL support.
TEST_P(urDeviceGetInfoTest, SuccessILVersion) {
UUR_KNOWN_FAILURE_ON(uur::NativeCPU{});

size_t property_size = 0;
const ur_device_info_t property_name = UR_DEVICE_INFO_IL_VERSION;

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading