Skip to content

Commit b183740

Browse files
authored
Merge pull request #1393 from kbenzie/benie/spec-clarify-UR_PROGRAM_INFO_DEVICES
[SPEC] Clarify the UR_PROGRAM_INFO_DEVICES query
2 parents f7587d0 + 753f15a commit b183740

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

include/ur_api.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4336,8 +4336,9 @@ typedef enum ur_program_info_t {
43364336
///< provided for identifying memory leaks.
43374337
UR_PROGRAM_INFO_CONTEXT = 1, ///< [::ur_context_handle_t] Program context info.
43384338
UR_PROGRAM_INFO_NUM_DEVICES = 2, ///< [uint32_t] Return number of devices associated with Program.
4339-
UR_PROGRAM_INFO_DEVICES = 3, ///< [::ur_device_handle_t[]] Return list of devices associated with
4340-
///< Program.
4339+
UR_PROGRAM_INFO_DEVICES = 3, ///< [::ur_device_handle_t[]] Return list of devices associated with a program.
4340+
///< This is either the list of devices associated with the context or a
4341+
///< subset of those devices when the program is created using ::urProgramCreateWithBinary.
43414342
UR_PROGRAM_INFO_SOURCE = 4, ///< [char[]] Return program source associated with Program.
43424343
UR_PROGRAM_INFO_BINARY_SIZES = 5, ///< [size_t[]] Return program binary sizes for each device.
43434344
UR_PROGRAM_INFO_BINARIES = 6, ///< [unsigned char[]] Return program binaries for all devices for this

scripts/core/program.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,9 @@ etors:
327327
- name: NUM_DEVICES
328328
desc: "[uint32_t] Return number of devices associated with Program."
329329
- name: DEVICES
330-
desc: "[$x_device_handle_t[]] Return list of devices associated with Program."
330+
desc: |
331+
[$x_device_handle_t[]] Return list of devices associated with a program.
332+
This is either the list of devices associated with the context or a subset of those devices when the program is created using $xProgramCreateWithBinary.
331333
- name: SOURCE
332334
desc: "[char[]] Return program source associated with Program."
333335
- name: BINARY_SIZES

0 commit comments

Comments
 (0)