Skip to content

Commit

Permalink
Specify command state as undefined on update error
Browse files Browse the repository at this point in the history
  • Loading branch information
EwanC committed Feb 18, 2025
1 parent 737f344 commit d6e02a1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions include/ur_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -11044,8 +11044,8 @@ UR_APIEXPORT ur_result_t UR_APICALL urCommandBufferEnqueueExp(
///
/// @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.
/// executing when the entry-point is called. On error, the state of the
/// command-buffer commands being updated is undefined.
///
/// @returns
/// - ::UR_RESULT_SUCCESS
Expand Down
2 changes: 1 addition & 1 deletion scripts/core/exp-command-buffer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ returns:
--- #--------------------------------------------------------------------------
type: function
desc: "Update a kernel launch command in a finalized command-buffer."
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."
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."
class: $xCommandBuffer
name: UpdateKernelLaunchExp
params:
Expand Down
2 changes: 1 addition & 1 deletion source/adapters/level_zero/v2/api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ ur_result_t urCommandBufferAppendUSMAdviseExp(
}

ur_result_t urCommandBufferUpdateKernelLaunchExp(
ur_exp_command_buffer_command_handle_t hCommand,
ur_exp_command_buffer_handle_t hCommandBuffer, uint32_t numKernelUpdates,
const ur_exp_command_buffer_update_kernel_launch_desc_t
*pUpdateKernelLaunch) {
logger::error("{} function not implemented!", __FUNCTION__);
Expand Down
4 changes: 2 additions & 2 deletions source/loader/ur_libapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8752,8 +8752,8 @@ ur_result_t UR_APICALL urCommandBufferEnqueueExp(
///
/// @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.
/// executing when the entry-point is called. On error, the state of the
/// command-buffer commands being updated is undefined.
///
/// @returns
/// - ::UR_RESULT_SUCCESS
Expand Down
4 changes: 2 additions & 2 deletions source/ur_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7646,8 +7646,8 @@ ur_result_t UR_APICALL urCommandBufferEnqueueExp(
///
/// @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.
/// executing when the entry-point is called. On error, the state of the
/// command-buffer commands being updated is undefined.
///
/// @returns
/// - ::UR_RESULT_SUCCESS
Expand Down

0 comments on commit d6e02a1

Please sign in to comment.