Skip to content

Commit 3d19e78

Browse files
committed
Fix incorrect enum value in multi-device compile.
Also update DEVICE_INFO_EXTENSIONS description.
1 parent e791acb commit 3d19e78

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
@@ -1564,7 +1564,8 @@ typedef enum ur_device_info_t {
15641564
UR_DEVICE_INFO_PROFILE = 69, ///< [char[]] Device profile
15651565
UR_DEVICE_INFO_VERSION = 70, ///< [char[]] Device version
15661566
UR_DEVICE_INFO_BACKEND_RUNTIME_VERSION = 71, ///< [char[]] Version of backend runtime
1567-
UR_DEVICE_INFO_EXTENSIONS = 72, ///< [char[]] Return a space separated list of extension names
1567+
UR_DEVICE_INFO_EXTENSIONS = 72, ///< [char[]] Return a string representing any backend extensions supported
1568+
///< by the adapter. Format and content is entirely adapter defined.
15681569
UR_DEVICE_INFO_PRINTF_BUFFER_SIZE = 73, ///< [size_t] Maximum size in bytes of internal printf buffer
15691570
UR_DEVICE_INFO_PREFERRED_INTEROP_USER_SYNC = 74, ///< [::ur_bool_t] prefer user synchronization when sharing object with
15701571
///< other API
@@ -1707,7 +1708,7 @@ typedef enum ur_device_info_t {
17071708
UR_DEVICE_INFO_USM_P2P_SUPPORT_EXP = 0x4000, ///< [::ur_bool_t] Returns true if the device supports the USM P2P
17081709
///< experimental feature.
17091710
UR_DEVICE_INFO_COOPERATIVE_KERNEL_SUPPORT_EXP = 0x5000, ///< [::ur_bool_t] Returns true if the device supports cooperative kernels.
1710-
UR_DEVICE_INFO_MULTI_DEVICE_COMPILE_SUPPORT_EXP = 0x7000, ///< [::ur_bool_t] Returns true if the device supports the multi device
1711+
UR_DEVICE_INFO_MULTI_DEVICE_COMPILE_SUPPORT_EXP = 0x6000, ///< [::ur_bool_t] Returns true if the device supports the multi device
17111712
///< compile experimental feature.
17121713
/// @cond
17131714
UR_DEVICE_INFO_FORCE_UINT32 = 0x7fffffff

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)