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
/// + If `pUpdateKernellaunch->hNewKernel` is equal to the currently active kernel in `hCommand`, and `pUpdateKernellaunch->newWorkDim` is different from the work-dim currently associated with `hCommand`.
/// + If `pUpdateKernelLaunch->hNewKernel` was not passed to the `hKernel` or `phKernelAlternatives` parameters of ::urCommandBufferAppendKernelLaunchExp when this command was created.
Copy file name to clipboardExpand all lines: scripts/core/exp-command-buffer.yml
+23-11Lines changed: 23 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -195,8 +195,9 @@ members:
195
195
- type: $x_kernel_handle_t
196
196
name: hNewKernel
197
197
desc: |
198
-
[in] The new kernel handle. If this value is equal to the current kernel handle associated
199
-
with the command, then only the arguments to the kernel will be updated.
198
+
[in][optional] The new kernel handle. If this parameter is nullptr, the current kernel handle in `hCommand`
199
+
will be used. If a kernel handle is passed, it must be a valid kernel alternative as defined in
200
+
$xCommandBufferAppendKernelLaunchExp.
200
201
- type: uint32_t
201
202
name: numNewMemObjArgs
202
203
desc: "[in] Length of pNewMemObjArgList."
@@ -220,13 +221,23 @@ members:
220
221
desc: "[in][optional][range(0, numNewValueArgs)] An array describing the new kernel value arguments for the command."
221
222
- type: "size_t*"
222
223
name: pNewGlobalWorkOffset
223
-
desc: "[in][optional][range(0, newWorkDim)] Array of newWorkDim unsigned values that describe the offset used to calculate the global ID."
224
+
desc: |
225
+
[in][optional][range(0, newWorkDim)] Array of newWorkDim unsigned values that describe the offset used
226
+
to calculate the global ID. If this parameter is nullptr, the current global work offset will be used. This parameter is required if `newWorkDim` is different from the current work dimensions
227
+
in the command.
224
228
- type: "size_t*"
225
229
name: pNewGlobalWorkSize
226
-
desc: "[in][optional][range(0, newWorkDim)] Array of newWorkDim unsigned values that describe the number of global work-items."
230
+
desc: |
231
+
[in][optional][range(0, newWorkDim)] Array of newWorkDim unsigned values that describe the number of
232
+
global work-items. If this parameter is nullptr, the current global work size in `hCommand` will be used.
233
+
This parameter is required if `newWorkDim` is different from the current work dimensions in the command.
227
234
- type: "size_t*"
228
235
name: pNewLocalWorkSize
229
-
desc: "[in][optional][range(0, newWorkDim)] Array of newWorkDim unsigned values that describe the number of work-items that make up a work-group. If pNewLocalWorkSize is nullptr, then the local work size is unchanged."
236
+
desc: |
237
+
[in][optional][range(0, newWorkDim)] Array of newWorkDim unsigned values that describe the number of
238
+
work-items that make up a work-group. If `pNewGlobalWorkSize` is set and `pNewLocalWorkSize` is nullptr,
239
+
then the runtime implementation will choose the local work size. If `pNewGlobalWorkSize` is nullptr and
240
+
`pNewLocalWorkSize` is nullptr, the current local work size in the command will be used.
- "If `pUpdateKernellaunch->hNewKernel` is equal to the currently active kernel in `hCommand`, and `pUpdateKernellaunch->newWorkDim` is different from the work-dim currently associated with `hCommand`."
- "If `pUpdateKernelLaunch->hNewKernel` was not passed to the `hKernel` or `phKernelAlternatives` parameters of $xCommandBufferAppendKernelLaunchExp when this command was created."
976
+
- $X_RESULT_ERROR_INVALID_VALUE: |
977
+
* If `pUpdateKernelLaunch->hNewKernel` was not passed to the `hKernel` or `phKernelAlternatives`
978
+
parameters of $xCommandBufferAppendKernelLaunchExp when this command was created.
979
+
* "If `pUpdateKernelLaunch->newWorkDim` is different from the current workDim in `hCommand` and,
980
+
pUpdateKernelLaunch->pNewGlobalWorkSize, or pUpdateKernelLaunch->pNewGlobalWorkOffset are nullptr.
0 commit comments