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
Add parameterized append functions with pNext (#427)
* Add parameterized append functions with pNext
Add three new "WithParameters" variants of append functions that include
a pNext parameter for future extensibility:
- zeCommandListAppendMemoryCopyWithParameters
- zeCommandListAppendMemoryFillWithParameters
- zeCommandListImmediateAppendCommandListsWithParameters
Deprecate zeCommandListImmediateAppendCommandListsExp as it lacks pNext.
Part of Level Zero API version 1.16.
Signed-off-by: Radoslaw Jablonski <radoslaw.jablonski@intel.com>
* Add parameterized append functions with pNext
Add three new "WithParameters" variants of append functions that include
a pNext parameter for future extensibility:
- zeCommandListAppendMemoryCopyWithParameters
- zeCommandListAppendMemoryFillWithParameters
- zeCommandListImmediateAppendCommandListsWithParameters
Deprecate zeCommandListImmediateAppendCommandListsExp as it lacks pNext.
Part of Level Zero API version 1.16.
Signed-off-by: Radoslaw Jablonski <radoslaw.jablonski@intel.com>
---------
Signed-off-by: Radoslaw Jablonski <radoslaw.jablonski@intel.com>
desc: "Copies host, device, or shared memory with additional parameters."
57
+
version: "1.16"
58
+
class: $xCommandList
59
+
name: AppendMemoryCopyWithParameters
60
+
details:
61
+
- "The application must ensure the memory pointed to by dstptr and srcptr is accessible by the device on which the command list was created."
62
+
- "The implementation must not access the memory pointed to by dstptr and srcptr as they are free to be modified by either the Host or device up until execution."
63
+
- "The application must ensure the events are accessible by the device on which the command list was created."
64
+
- "The application must ensure the command list and events were created, and the memory was allocated, on the same context."
65
+
- "The application must **not** call this function from simultaneous threads with the same command list handle."
66
+
- "The implementation of this function should be lock-free."
67
+
analogue:
68
+
- "**clEnqueueCopyBuffer**"
69
+
- "**clEnqueueReadBuffer**"
70
+
- "**clEnqueueWriteBuffer**"
71
+
- "**clEnqueueSVMMemcpy**"
72
+
params:
73
+
- type: $x_command_list_handle_t
74
+
name: hCommandList
75
+
desc: "[in] handle of command list"
76
+
- type: "void*"
77
+
name: dstptr
78
+
desc: "[in] pointer to destination memory to copy to"
79
+
- type: "const void*"
80
+
name: srcptr
81
+
desc: "[in] pointer to source memory to copy from"
82
+
- type: size_t
83
+
name: size
84
+
desc: "[in] size in bytes to copy"
85
+
- type: "const void*"
86
+
name: pNext
87
+
desc: "[in][optional] additional extensions passed to the function"
88
+
- type: $x_event_handle_t
89
+
name: hSignalEvent
90
+
desc: "[in][optional] handle of the event to signal on completion"
91
+
- type: uint32_t
92
+
name: numWaitEvents
93
+
desc: "[in][optional] number of events to wait on before launching; must be 0 if `nullptr == phWaitEvents`"
94
+
- type: "$x_event_handle_t*"
95
+
name: phWaitEvents
96
+
desc: "[in][optional][range(0, numWaitEvents)] handle of the events to wait on before launching"
0 commit comments