Skip to content

Commit 3d7eb96

Browse files
Update specification for AppendMemoryFill (#472)
The implementation of AppendMemoryFill and AppendMemoryFillWithParameters has been updated to validate for size to be a multiple of pattern size. Update the specification to match the implementation. Signed-off-by: Pawel Richert <pawel.richert@intel.com>
1 parent 7c24314 commit 3d7eb96

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/core/copy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ details:
111111
- "The ptr must be aligned to pattern_size"
112112
- "The value to initialize memory to is described by the pattern and the pattern size."
113113
- "The pattern size must be a power-of-two and less than or equal to the `maxMemoryFillPatternSize` member of $x_command_queue_group_properties_t."
114+
- "The size must be a multiple of pattern size."
114115
- "The application must ensure the events are accessible by the device on which the command list was created."
115116
- "The application must ensure the command list and events were created, and the memory was allocated, on the same context."
116117
- "The application must **not** call this function from simultaneous threads with the same command list handle."
@@ -148,6 +149,7 @@ returns:
148149
- $X_RESULT_ERROR_UNSUPPORTED_ALIGNMENT
149150
- $X_RESULT_ERROR_INVALID_SIZE:
150151
- "`(nullptr == phWaitEvents) && (0 < numWaitEvents)`"
152+
- "`size % pattern_size != 0`"
151153
--- #--------------------------------------------------------------------------
152154
type: function
153155
desc: "Initializes host, device, or shared memory with additional parameters."
@@ -160,6 +162,7 @@ details:
160162
- "The ptr must be aligned to pattern_size."
161163
- "The value to initialize memory to is described by the pattern and the pattern size."
162164
- "The pattern size must be a power-of-two and less than or equal to the `maxMemoryFillPatternSize` member of $x_command_queue_group_properties_t."
165+
- "The size must be a multiple of pattern size."
163166
- "The application must ensure the events are accessible by the device on which the command list was created."
164167
- "The application must ensure the command list and events were created, and the memory was allocated, on the same context."
165168
- "The application must **not** call this function from simultaneous threads with the same command list handle."
@@ -200,6 +203,7 @@ returns:
200203
- $X_RESULT_ERROR_UNSUPPORTED_ALIGNMENT
201204
- $X_RESULT_ERROR_INVALID_SIZE:
202205
- "`(nullptr == phWaitEvents) && (0 < numWaitEvents)`"
206+
- "`size % pattern_size != 0`"
203207
- $X_RESULT_ERROR_UNSUPPORTED_FEATURE:
204208
- "an extension passed via pNext is not supported"
205209
--- #--------------------------------------------------------------------------

0 commit comments

Comments
 (0)