Skip to content

Commit 75e4028

Browse files
committed
Fix incorrect enum value in multi-device compile.
Also update DEVICE_INFO_EXTENSIONS description.
1 parent 7064713 commit 75e4028

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

include/ur_api.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,7 +2059,8 @@ typedef enum ur_device_info_t {
20592059
UR_DEVICE_INFO_VERSION = 70,
20602060
/// [char[]] Version of backend runtime
20612061
UR_DEVICE_INFO_BACKEND_RUNTIME_VERSION = 71,
2062-
/// [char[]] Return a space separated list of extension names
2062+
/// [char[]] Return a string representing any backend extensions supported
2063+
/// by the adapter. Format and content is entirely adapter defined.
20632064
UR_DEVICE_INFO_EXTENSIONS = 72,
20642065
/// [size_t] Maximum size in bytes of internal printf buffer
20652066
UR_DEVICE_INFO_PRINTF_BUFFER_SIZE = 73,
@@ -2299,7 +2300,7 @@ typedef enum ur_device_info_t {
22992300
UR_DEVICE_INFO_COOPERATIVE_KERNEL_SUPPORT_EXP = 0x5000,
23002301
/// [::ur_bool_t] Returns true if the device supports the multi device
23012302
/// compile experimental feature.
2302-
UR_DEVICE_INFO_MULTI_DEVICE_COMPILE_SUPPORT_EXP = 0x7000,
2303+
UR_DEVICE_INFO_MULTI_DEVICE_COMPILE_SUPPORT_EXP = 0x6000,
23032304
/// @cond
23042305
UR_DEVICE_INFO_FORCE_UINT32 = 0x7fffffff
23052306
/// @endcond

scripts/core/device.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ etors:
343343
- name: BACKEND_RUNTIME_VERSION
344344
desc: "[char[]] Version of backend runtime"
345345
- name: EXTENSIONS
346-
desc: "[char[]] Return a space separated list of extension names"
346+
desc: "[char[]] Return a string representing any backend extensions supported by the adapter. Format and content is entirely adapter defined."
347347
- name: PRINTF_BUFFER_SIZE
348348
desc: "[size_t] Maximum size in bytes of internal printf buffer"
349349
- name: PREFERRED_INTEROP_USER_SYNC

scripts/core/exp-multi-device-compile.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@ type: header
1212
desc: "Intel $OneApi Unified Runtime Experimental APIs for multi-device compile"
1313
ordinal: "99"
1414
--- #--------------------------------------------------------------------------
15-
name: $X_MULTI_DEVICE_COMPILE_EXTENSION_STRING_EXP
16-
value: "\"$x_exp_multi_device_compile\""
1715
type: enum
1816
extend: true
1917
typed_etors: true
2018
desc: "Extension enums for $x_device_info_t to support multi device compile."
2119
name: $x_device_info_t
2220
etors:
2321
- name: MULTI_DEVICE_COMPILE_SUPPORT_EXP
24-
value: "0x7000"
22+
value: "0x6000"
2523
desc: "[$x_bool_t] Returns true if the device supports the multi device compile experimental feature."
2624
--- #--------------------------------------------------------------------------
2725
type: function

0 commit comments

Comments
 (0)