Skip to content

Commit d251ddc

Browse files
committed
Clarify default return for INFO_IL in spec.
1 parent 802b1de commit d251ddc

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
@@ -4483,7 +4483,8 @@ typedef enum ur_program_info_t {
44834483
///< This is either the list of devices associated with the context or a
44844484
///< subset of those devices when the program is created using ::urProgramCreateWithBinary.
44854485
UR_PROGRAM_INFO_IL = 4, ///< [char[]] Return program IL if the program was created with
4486-
///< ::urProgramCreateWithIL
4486+
///< ::urProgramCreateWithIL, otherwise return size will be set to 0 and
4487+
///< nothing will be returned.
44874488
UR_PROGRAM_INFO_BINARY_SIZES = 5, ///< [size_t[]] Return program binary sizes for each device.
44884489
UR_PROGRAM_INFO_BINARIES = 6, ///< [unsigned char[]] Return program binaries for all devices for this
44894490
///< Program.

scripts/core/program.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ etors:
377377
[$x_device_handle_t[]] Return list of devices associated with a program.
378378
This is either the list of devices associated with the context or a subset of those devices when the program is created using $xProgramCreateWithBinary.
379379
- name: IL
380-
desc: "[char[]] Return program IL if the program was created with $xProgramCreateWithIL"
380+
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."
381381
- name: BINARY_SIZES
382382
desc: "[size_t[]] Return program binary sizes for each device."
383383
- name: BINARIES

0 commit comments

Comments
 (0)