Skip to content

Commit 917448c

Browse files
committed
Clarify default return for INFO_IL in spec.
1 parent ace3fd0 commit 917448c

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
@@ -4491,7 +4491,8 @@ typedef enum ur_program_info_t {
44914491
///< This is either the list of devices associated with the context or a
44924492
///< subset of those devices when the program is created using ::urProgramCreateWithBinary.
44934493
UR_PROGRAM_INFO_IL = 4, ///< [char[]] Return program IL if the program was created with
4494-
///< ::urProgramCreateWithIL
4494+
///< ::urProgramCreateWithIL, otherwise return size will be set to 0 and
4495+
///< nothing will be returned.
44954496
UR_PROGRAM_INFO_BINARY_SIZES = 5, ///< [size_t[]] Return program binary sizes for each device.
44964497
UR_PROGRAM_INFO_BINARIES = 6, ///< [unsigned char[]] Return program binaries for all devices for this
44974498
///< 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)