You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the <<ndrange-kernel-properties-table, List of supported properties
16111
16125
by clCommandNDRangeKernelKHR>> table.
16112
16126
endif::cl_khr_command_buffer_mutable_dispatch[]
16127
+
ifndef::cl_khr_command_buffer_mutable_dispatch[]
16113
16128
* _kernel_ is a valid kernel object which **must** have its arguments set.
16129
+
endif::cl_khr_command_buffer_mutable_dispatch[]
16130
+
ifdef::cl_khr_command_buffer_mutable_dispatch[]
16131
+
* _kernel_ is a valid kernel object, which **must** have its arguments set
16132
+
unless the command has the {CL_MUTABLE_DISPATCH_ARGUMENTS_KHR} property set
16133
+
(see description of argument _mutable_handle_).
16134
+
endif::cl_khr_command_buffer_mutable_dispatch[]
16114
16135
Any changes to _kernel_ after calling {clCommandNDRangeKernelKHR}, such
16115
16136
as with {clSetKernelArg} or {clSetKernelExecInfo}, have no effect on the
16116
16137
recorded command.
@@ -16288,6 +16309,14 @@ The starting local ID is always (0, 0, ... 0).
16288
16309
successfully.
16289
16310
Otherwise, it returns the errors defined by {clEnqueueNDRangeKernel} except:
16290
16311
16312
+
ifdef::cl_khr_command_buffer_mutable_dispatch[]
16313
+
{CL_INVALID_KERNEL_ARGS} is replaced with:
16314
+
16315
+
* {CL_INVALID_KERNEL_ARGS} if the kernel argument values have not been
16316
+
specified and the {CL_MUTABLE_DISPATCH_ARGUMENTS_KHR} flag was not set in
16317
+
the _properties_ parameter.
16318
+
endif::cl_khr_command_buffer_mutable_dispatch[]
16319
+
16291
16320
{CL_INVALID_COMMAND_QUEUE} is replaced with:
16292
16321
16293
16322
* {CL_INVALID_COMMAND_QUEUE} if the
@@ -16728,6 +16757,13 @@ device occupancy high by avoiding blocking in host code.
16728
16757
16729
16758
[open,refpage='clUpdateMutableCommandsKHR',desc='Modify configuration of mutable-command handles to update behavior for future enqueues',type='protos']
16730
16759
--
16760
+
16761
+
When recording an ND-range kernel command, the kernel's arguments do not have to
16762
+
be set, and setting them may be postponed to after the command buffer's
16763
+
finalization (in which case, the command buffer is in Finalized state).
16764
+
All the arguments must be set before the command buffer can be enqueued
16765
+
for execution (Executable state).
16766
+
16731
16767
To modify the configuration of mutable-command handles returned during
16732
16768
_command_buffer_ recording, updating the behavior of those commands in
16733
16769
future enqueues of _command_buffer_, call the function
0 commit comments