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
Currently, the specification for clCommandNDRangeKernelKHR says:
kernel is a valid kernel object which must have its arguments set.
This is indeed true if cl_khr_command_buffer_mutable_dispatch is not supported. However, our implementation does support this extension, and in our use cases, we don't know at least some of the kernel's arguments at recording time.
I suggest to specify in cl_khr_command_buffer_mutable_dispatch that when recording an ND-range kernel command, kernel's arguments don't have to be set (of course, all of them must be set when the command buffer is replayed).
The text was updated successfully, but these errors were encountered:
Can we add a state called RECORDED, which would precede finalized. A command buffer can be observed in the RECORDED state. It would be observed to be in RECORDED if clFinalizeCommandBufferKHR is called but not all arguments are set. Attempting to enqueue a command buffer in the RECOREDED state will return CL_INVALID_OPERATION.
As soon as all arguments are set the command buffer state moves to FINALIZED.
We already have a state called Recording that comes before finalization. We need a state named Finalized, which means that the command buffer has been finalized but at least one ND-range kernel command doesn't have all its arguments set. Once all these commands have all their arguments set, or if this is the case before finalization, the command buffer will enter the Executable state.
Currently, the specification for
clCommandNDRangeKernelKHR
says:This is indeed true if
cl_khr_command_buffer_mutable_dispatch
is not supported. However, our implementation does support this extension, and in our use cases, we don't know at least some of the kernel's arguments at recording time.I suggest to specify in
cl_khr_command_buffer_mutable_dispatch
that when recording an ND-range kernel command, kernel's arguments don't have to be set (of course, all of them must be set when the command buffer is replayed).The text was updated successfully, but these errors were encountered: