Skip to content

Commit 8398d0e

Browse files
committed
Clarify default return for INFO_IL in spec.
1 parent bcd61dd commit 8398d0e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

include/ur_api.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4274,7 +4274,8 @@ typedef enum ur_program_info_t {
42744274
UR_PROGRAM_INFO_DEVICES = 3, ///< [::ur_device_handle_t[]] Return list of devices associated with
42754275
///< Program.
42764276
UR_PROGRAM_INFO_IL = 4, ///< [char[]] Return program IL if the program was created with
4277-
///< ::urProgramCreateWithIL
4277+
///< ::urProgramCreateWithIL, otherwise return size will be set to 0 and
4278+
///< nothing will be returned.
42784279
UR_PROGRAM_INFO_BINARY_SIZES = 5, ///< [size_t[]] Return program binary sizes for each device.
42794280
UR_PROGRAM_INFO_BINARIES = 6, ///< [unsigned char[]] Return program binaries for all devices for this
42804281
///< Program.

scripts/core/program.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ etors:
329329
- name: DEVICES
330330
desc: "[$x_device_handle_t[]] Return list of devices associated with Program."
331331
- name: IL
332-
desc: "[char[]] Return program IL if the program was created with $xProgramCreateWithIL"
332+
desc: "[char[]] Return program IL if the program was created with $xProgramCreateWithIL, otherwise return size will be set to 0 and nothing will be returned."
333333
- name: BINARY_SIZES
334334
desc: "[size_t[]] Return program binary sizes for each device."
335335
- name: BINARIES

0 commit comments

Comments
 (0)