Skip to content

Commit a4f8daa

Browse files
author
Ewan Crawford
committed
Specify command state as undefined on update error
1 parent 737f344 commit a4f8daa

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

include/ur_api.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11044,8 +11044,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferEnqueueExp(
1104411044
///
1104511045
/// @details
1104611046
/// This entry-point is synchronous and may block if the command-buffer is
11047-
/// executing when the entry-point is called. On error, none of the updates to
11048-
/// mutable-command objects are preserved.
11047+
/// executing when the entry-point is called. On error, the state of the
11048+
/// command-buffer commands being updated is undefined.
1104911049
///
1105011050
/// @returns
1105111051
/// - ::UR_RESULT_SUCCESS

scripts/core/exp-command-buffer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ returns:
11691169
--- #--------------------------------------------------------------------------
11701170
type: function
11711171
desc: "Update a kernel launch command in a finalized command-buffer."
1172-
details: "This entry-point is synchronous and may block if the command-buffer is executing when the entry-point is called. On error, none of the updates to mutable-command objects are preserved."
1172+
details: "This entry-point is synchronous and may block if the command-buffer is executing when the entry-point is called. On error, the state of the command-buffer commands being updated is undefined."
11731173
class: $xCommandBuffer
11741174
name: UpdateKernelLaunchExp
11751175
params:

source/loader/ur_libapi.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8752,8 +8752,8 @@ ur_result_t UR_APICALL urCommandBufferEnqueueExp(
87528752
///
87538753
/// @details
87548754
/// This entry-point is synchronous and may block if the command-buffer is
8755-
/// executing when the entry-point is called. On error, none of the updates to
8756-
/// mutable-command objects are preserved.
8755+
/// executing when the entry-point is called. On error, the state of the
8756+
/// command-buffer commands being updated is undefined.
87578757
///
87588758
/// @returns
87598759
/// - ::UR_RESULT_SUCCESS

source/ur_api.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7646,8 +7646,8 @@ ur_result_t UR_APICALL urCommandBufferEnqueueExp(
76467646
///
76477647
/// @details
76487648
/// This entry-point is synchronous and may block if the command-buffer is
7649-
/// executing when the entry-point is called. On error, none of the updates to
7650-
/// mutable-command objects are preserved.
7649+
/// executing when the entry-point is called. On error, the state of the
7650+
/// command-buffer commands being updated is undefined.
76517651
///
76527652
/// @returns
76537653
/// - ::UR_RESULT_SUCCESS

0 commit comments

Comments
 (0)