Skip to content

Commit 7b5b87b

Browse files
author
Ewan Crawford
authored
Clatify setting work_dim to zero in command-buffer update (KhronosGroup#1395)
Actions Issue KhronosGroup#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 b61ab44 commit 7b5b87b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

api/opencl_runtime_layer.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16715,7 +16715,7 @@ conditions:
1671516715
_command_buffer_.
1671616716
* {CL_INVALID_OPERATION} if the values of _local_work_size_ and/or
1671716717
_global_work_size_ result in a change to work-group uniformity.
16718-
* {CL_INVALID_OPERATION} if the _work_dim_ is different from the
16718+
* {CL_INVALID_OPERATION} if _work_dim_ is not zero and different from the
1671916719
_work_dim_ set on _command_ recording.
1672016720
* {CL_INVALID_OPERATION} if the {CL_MUTABLE_DISPATCH_GLOBAL_OFFSET_KHR}
1672116721
property was not set on _command_ recording and _global_work_offset_ is
@@ -16776,8 +16776,8 @@ include::{generated}/api/structs/cl_mutable_dispatch_config_khr.txt[]
1677616776
* _num_exec_infos_ is the number of kernel execution info objects to set
1677716777
for this dispatch.
1677816778
* _work_dim_ is the number of dimensions used to specify the global
16779-
work-items and work-items in the work-group.
16780-
See {clEnqueueNDRangeKernel} for valid usage.
16779+
work-items and work-items in the work-group. May be set to zero to signify
16780+
the number of dimensions is not changed. See {clEnqueueNDRangeKernel} for valid usage.
1678116781
* _arg_list_ is an array describing the new kernel arguments for this
1678216782
enqueue.
1678316783
It must contain _num_args_ array elements, each of which encapsulates

0 commit comments

Comments
 (0)