Skip to content

Commit eee75a2

Browse files
authored
[SPEC] Clarify the BinaryType output of urProgramCreateWithBinary (#991)
1 parent 1d78636 commit eee75a2

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

include/ur_api.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4037,6 +4037,9 @@ urProgramCreateWithIL(
40374037
///
40384038
/// @details
40394039
/// - The application may call this function from simultaneous threads.
4040+
/// - Following a successful call to this entry point, `phProgram` will
4041+
/// contain a binary of type ::UR_PROGRAM_BINARY_TYPE_COMPILED_OBJECT or
4042+
/// ::UR_PROGRAM_BINARY_TYPE_LIBRARY for `hDevice`.
40404043
///
40414044
/// @remarks
40424045
/// _Analogues_

scripts/core/program.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ analogue:
127127
- "**clCreateProgramWithBinary**"
128128
details:
129129
- "The application may call this function from simultaneous threads."
130+
- "Following a successful call to this entry point, `phProgram` will contain a binary of type $X_PROGRAM_BINARY_TYPE_COMPILED_OBJECT or $X_PROGRAM_BINARY_TYPE_LIBRARY for `hDevice`."
130131
params:
131132
- type: $x_context_handle_t
132133
name: hContext

source/loader/ur_libapi.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2885,6 +2885,9 @@ ur_result_t UR_APICALL urProgramCreateWithIL(
28852885
///
28862886
/// @details
28872887
/// - The application may call this function from simultaneous threads.
2888+
/// - Following a successful call to this entry point, `phProgram` will
2889+
/// contain a binary of type ::UR_PROGRAM_BINARY_TYPE_COMPILED_OBJECT or
2890+
/// ::UR_PROGRAM_BINARY_TYPE_LIBRARY for `hDevice`.
28882891
///
28892892
/// @remarks
28902893
/// _Analogues_

source/ur_api.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2450,6 +2450,9 @@ ur_result_t UR_APICALL urProgramCreateWithIL(
24502450
///
24512451
/// @details
24522452
/// - The application may call this function from simultaneous threads.
2453+
/// - Following a successful call to this entry point, `phProgram` will
2454+
/// contain a binary of type ::UR_PROGRAM_BINARY_TYPE_COMPILED_OBJECT or
2455+
/// ::UR_PROGRAM_BINARY_TYPE_LIBRARY for `hDevice`.
24532456
///
24542457
/// @remarks
24552458
/// _Analogues_

0 commit comments

Comments
 (0)