Skip to content

Commit 1c7bfe3

Browse files
committed
Clatify setting work_dim to zero in command-buffer update
Actions Issue #1390 by clarifying that `work_dim` can be set to zero to signify no change to the kernle command work dimensions. This is the behavior currently expected in the CTS tests.
1 parent c59823c commit 1c7bfe3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/opencl_runtime_layer.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16665,7 +16665,7 @@ conditions:
1666516665
_command_buffer_.
1666616666
* {CL_INVALID_OPERATION} if the values of _local_work_size_ and/or
1666716667
_global_work_size_ result in a change to work-group uniformity.
16668-
* {CL_INVALID_OPERATION} if the _work_dim_ is different from the
16668+
* {CL_INVALID_OPERATION} if _work_dim_ is not zero and different from the
1666916669
_work_dim_ set on _command_ recording.
1667016670
* {CL_INVALID_OPERATION} if the {CL_MUTABLE_DISPATCH_GLOBAL_OFFSET_KHR}
1667116671
property was not set on _command_ recording and _global_work_offset_ is
@@ -16726,8 +16726,8 @@ include::{generated}/api/structs/cl_mutable_dispatch_config_khr.txt[]
1672616726
* _num_exec_infos_ is the number of kernel execution info objects to set
1672716727
for this dispatch.
1672816728
* _work_dim_ is the number of dimensions used to specify the global
16729-
work-items and work-items in the work-group.
16730-
See {clEnqueueNDRangeKernel} for valid usage.
16729+
work-items and work-items in the work-group. May be set to zero to signify
16730+
the number of dimensions is not changed. See {clEnqueueNDRangeKernel} for valid usage.
1673116731
* _arg_list_ is an array describing the new kernel arguments for this
1673216732
enqueue.
1673316733
It must contain _num_args_ array elements, each of which encapsulates

0 commit comments

Comments
 (0)