@@ -5972,7 +5972,7 @@ urEnqueueEventsWaitWithBarrier(
5972
5972
UR_APIEXPORT ur_result_t UR_APICALL
5973
5973
urEnqueueMemBufferRead(
5974
5974
ur_queue_handle_t hQueue, ///< [in] handle of the queue object
5975
- ur_mem_handle_t hBuffer, ///< [in] handle of the buffer object
5975
+ ur_mem_handle_t hBuffer, ///< [in][bounds(offset, size)] handle of the buffer object
5976
5976
bool blockingRead, ///< [in] indicates blocking (true), non-blocking (false)
5977
5977
size_t offset, ///< [in] offset in bytes in the buffer object
5978
5978
size_t size, ///< [in] size in bytes of data being read
@@ -6021,7 +6021,7 @@ urEnqueueMemBufferRead(
6021
6021
UR_APIEXPORT ur_result_t UR_APICALL
6022
6022
urEnqueueMemBufferWrite(
6023
6023
ur_queue_handle_t hQueue, ///< [in] handle of the queue object
6024
- ur_mem_handle_t hBuffer, ///< [in] handle of the buffer object
6024
+ ur_mem_handle_t hBuffer, ///< [in][bounds(offset, size)] handle of the buffer object
6025
6025
bool blockingWrite, ///< [in] indicates blocking (true), non-blocking (false)
6026
6026
size_t offset, ///< [in] offset in bytes in the buffer object
6027
6027
size_t size, ///< [in] size in bytes of data being written
@@ -6080,7 +6080,7 @@ urEnqueueMemBufferWrite(
6080
6080
UR_APIEXPORT ur_result_t UR_APICALL
6081
6081
urEnqueueMemBufferReadRect(
6082
6082
ur_queue_handle_t hQueue, ///< [in] handle of the queue object
6083
- ur_mem_handle_t hBuffer, ///< [in] handle of the buffer object
6083
+ ur_mem_handle_t hBuffer, ///< [in][bounds(bufferOrigin, region)] handle of the buffer object
6084
6084
bool blockingRead, ///< [in] indicates blocking (true), non-blocking (false)
6085
6085
ur_rect_offset_t bufferOrigin, ///< [in] 3D offset in the buffer
6086
6086
ur_rect_offset_t hostOrigin, ///< [in] 3D offset in the host region
@@ -6146,7 +6146,7 @@ urEnqueueMemBufferReadRect(
6146
6146
UR_APIEXPORT ur_result_t UR_APICALL
6147
6147
urEnqueueMemBufferWriteRect(
6148
6148
ur_queue_handle_t hQueue, ///< [in] handle of the queue object
6149
- ur_mem_handle_t hBuffer, ///< [in] handle of the buffer object
6149
+ ur_mem_handle_t hBuffer, ///< [in][bounds(bufferOrigin, region)] handle of the buffer object
6150
6150
bool blockingWrite, ///< [in] indicates blocking (true), non-blocking (false)
6151
6151
ur_rect_offset_t bufferOrigin, ///< [in] 3D offset in the buffer
6152
6152
ur_rect_offset_t hostOrigin, ///< [in] 3D offset in the host region
@@ -6199,8 +6199,8 @@ urEnqueueMemBufferWriteRect(
6199
6199
UR_APIEXPORT ur_result_t UR_APICALL
6200
6200
urEnqueueMemBufferCopy(
6201
6201
ur_queue_handle_t hQueue, ///< [in] handle of the queue object
6202
- ur_mem_handle_t hBufferSrc, ///< [in] handle of the src buffer object
6203
- ur_mem_handle_t hBufferDst, ///< [in] handle of the dest buffer object
6202
+ ur_mem_handle_t hBufferSrc, ///< [in][bounds(srcOffset, size)] handle of the src buffer object
6203
+ ur_mem_handle_t hBufferDst, ///< [in][bounds(dstOffset, size)] handle of the dest buffer object
6204
6204
size_t srcOffset, ///< [in] offset into hBufferSrc to begin copying from
6205
6205
size_t dstOffset, ///< [in] offset info hBufferDst to begin copying into
6206
6206
size_t size, ///< [in] size in bytes of data being copied
@@ -6252,8 +6252,8 @@ urEnqueueMemBufferCopy(
6252
6252
UR_APIEXPORT ur_result_t UR_APICALL
6253
6253
urEnqueueMemBufferCopyRect(
6254
6254
ur_queue_handle_t hQueue, ///< [in] handle of the queue object
6255
- ur_mem_handle_t hBufferSrc, ///< [in] handle of the source buffer object
6256
- ur_mem_handle_t hBufferDst, ///< [in] handle of the dest buffer object
6255
+ ur_mem_handle_t hBufferSrc, ///< [in][bounds(srcOrigin, region)] handle of the source buffer object
6256
+ ur_mem_handle_t hBufferDst, ///< [in][bounds(dstOrigin, region)] handle of the dest buffer object
6257
6257
ur_rect_offset_t srcOrigin, ///< [in] 3D offset in the source buffer
6258
6258
ur_rect_offset_t dstOrigin, ///< [in] 3D offset in the destination buffer
6259
6259
ur_rect_region_t region, ///< [in] source 3D rectangular region descriptor: width, height, depth
@@ -6307,7 +6307,7 @@ urEnqueueMemBufferCopyRect(
6307
6307
UR_APIEXPORT ur_result_t UR_APICALL
6308
6308
urEnqueueMemBufferFill(
6309
6309
ur_queue_handle_t hQueue, ///< [in] handle of the queue object
6310
- ur_mem_handle_t hBuffer, ///< [in] handle of the buffer object
6310
+ ur_mem_handle_t hBuffer, ///< [in][bounds(offset, size)] handle of the buffer object
6311
6311
const void *pPattern, ///< [in] pointer to the fill pattern
6312
6312
size_t patternSize, ///< [in] size in bytes of the pattern
6313
6313
size_t offset, ///< [in] offset into the buffer
@@ -6357,7 +6357,7 @@ urEnqueueMemBufferFill(
6357
6357
UR_APIEXPORT ur_result_t UR_APICALL
6358
6358
urEnqueueMemImageRead(
6359
6359
ur_queue_handle_t hQueue, ///< [in] handle of the queue object
6360
- ur_mem_handle_t hImage, ///< [in] handle of the image object
6360
+ ur_mem_handle_t hImage, ///< [in][bounds(origin, region)] handle of the image object
6361
6361
bool blockingRead, ///< [in] indicates blocking (true), non-blocking (false)
6362
6362
ur_rect_offset_t origin, ///< [in] defines the (x,y,z) offset in pixels in the 1D, 2D, or 3D image
6363
6363
ur_rect_region_t region, ///< [in] defines the (width, height, depth) in pixels of the 1D, 2D, or 3D
@@ -6410,7 +6410,7 @@ urEnqueueMemImageRead(
6410
6410
UR_APIEXPORT ur_result_t UR_APICALL
6411
6411
urEnqueueMemImageWrite(
6412
6412
ur_queue_handle_t hQueue, ///< [in] handle of the queue object
6413
- ur_mem_handle_t hImage, ///< [in] handle of the image object
6413
+ ur_mem_handle_t hImage, ///< [in][bounds(origin, region)] handle of the image object
6414
6414
bool blockingWrite, ///< [in] indicates blocking (true), non-blocking (false)
6415
6415
ur_rect_offset_t origin, ///< [in] defines the (x,y,z) offset in pixels in the 1D, 2D, or 3D image
6416
6416
ur_rect_region_t region, ///< [in] defines the (width, height, depth) in pixels of the 1D, 2D, or 3D
@@ -6457,8 +6457,8 @@ urEnqueueMemImageWrite(
6457
6457
UR_APIEXPORT ur_result_t UR_APICALL
6458
6458
urEnqueueMemImageCopy(
6459
6459
ur_queue_handle_t hQueue, ///< [in] handle of the queue object
6460
- ur_mem_handle_t hImageSrc, ///< [in] handle of the src image object
6461
- ur_mem_handle_t hImageDst, ///< [in] handle of the dest image object
6460
+ ur_mem_handle_t hImageSrc, ///< [in][bounds(srcOrigin, region)] handle of the src image object
6461
+ ur_mem_handle_t hImageDst, ///< [in][bounds(dstOrigin, region)] handle of the dest image object
6462
6462
ur_rect_offset_t srcOrigin, ///< [in] defines the (x,y,z) offset in pixels in the source 1D, 2D, or 3D
6463
6463
///< image
6464
6464
ur_rect_offset_t dstOrigin, ///< [in] defines the (x,y,z) offset in pixels in the destination 1D, 2D,
@@ -6543,7 +6543,7 @@ typedef enum ur_usm_migration_flag_t {
6543
6543
UR_APIEXPORT ur_result_t UR_APICALL
6544
6544
urEnqueueMemBufferMap(
6545
6545
ur_queue_handle_t hQueue, ///< [in] handle of the queue object
6546
- ur_mem_handle_t hBuffer, ///< [in] handle of the buffer object
6546
+ ur_mem_handle_t hBuffer, ///< [in][bounds(offset, size)] handle of the buffer object
6547
6547
bool blockingMap, ///< [in] indicates blocking (true), non-blocking (false)
6548
6548
ur_map_flags_t mapFlags, ///< [in] flags for read, write, readwrite mapping
6549
6549
size_t offset, ///< [in] offset in bytes of the buffer region being mapped
@@ -6611,7 +6611,7 @@ urEnqueueMemUnmap(
6611
6611
/// - ::UR_RESULT_ERROR_INVALID_NULL_HANDLE
6612
6612
/// + `NULL == hQueue`
6613
6613
/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
6614
- /// + `NULL == ptr `
6614
+ /// + `NULL == pMem `
6615
6615
/// + `NULL == pPattern`
6616
6616
/// - ::UR_RESULT_ERROR_INVALID_QUEUE
6617
6617
/// - ::UR_RESULT_ERROR_INVALID_EVENT
@@ -6631,7 +6631,7 @@ urEnqueueMemUnmap(
6631
6631
UR_APIEXPORT ur_result_t UR_APICALL
6632
6632
urEnqueueUSMFill(
6633
6633
ur_queue_handle_t hQueue, ///< [in] handle of the queue object
6634
- void *ptr , ///< [in] pointer to USM memory object
6634
+ void *pMem , ///< [in][bounds(0, size) ] pointer to USM memory object
6635
6635
size_t patternSize, ///< [in] the size in bytes of the pattern. Must be a power of 2 and less
6636
6636
///< than or equal to width.
6637
6637
const void *pPattern, ///< [in] pointer with the bytes of the pattern to set.
@@ -6674,8 +6674,8 @@ UR_APIEXPORT ur_result_t UR_APICALL
6674
6674
urEnqueueUSMMemcpy(
6675
6675
ur_queue_handle_t hQueue, ///< [in] handle of the queue object
6676
6676
bool blocking, ///< [in] blocking or non-blocking copy
6677
- void *pDst, ///< [in] pointer to the destination USM memory object
6678
- const void *pSrc, ///< [in] pointer to the source USM memory object
6677
+ void *pDst, ///< [in][bounds(0, size)] pointer to the destination USM memory object
6678
+ const void *pSrc, ///< [in][bounds(0, size)] pointer to the source USM memory object
6679
6679
size_t size, ///< [in] size in bytes to be copied
6680
6680
uint32_t numEventsInWaitList, ///< [in] size of the event wait list
6681
6681
const ur_event_handle_t *phEventWaitList, ///< [in][optional][range(0, numEventsInWaitList)] pointer to a list of
@@ -6720,7 +6720,7 @@ urEnqueueUSMMemcpy(
6720
6720
UR_APIEXPORT ur_result_t UR_APICALL
6721
6721
urEnqueueUSMPrefetch(
6722
6722
ur_queue_handle_t hQueue, ///< [in] handle of the queue object
6723
- const void *pMem, ///< [in] pointer to the USM memory object
6723
+ const void *pMem, ///< [in][bounds(0, size)] pointer to the USM memory object
6724
6724
size_t size, ///< [in] size in bytes to be fetched
6725
6725
ur_usm_migration_flags_t flags, ///< [in] USM prefetch flags
6726
6726
uint32_t numEventsInWaitList, ///< [in] size of the event wait list
@@ -6762,7 +6762,7 @@ urEnqueueUSMPrefetch(
6762
6762
UR_APIEXPORT ur_result_t UR_APICALL
6763
6763
urEnqueueUSMAdvise(
6764
6764
ur_queue_handle_t hQueue, ///< [in] handle of the queue object
6765
- const void *pMem, ///< [in] pointer to the USM memory object
6765
+ const void *pMem, ///< [in][bounds(0, size)] pointer to the USM memory object
6766
6766
size_t size, ///< [in] size in bytes to be advised
6767
6767
ur_usm_advice_flags_t advice, ///< [in] USM memory advice
6768
6768
ur_event_handle_t *phEvent ///< [out][optional] return an event object that identifies this particular
@@ -6803,7 +6803,7 @@ urEnqueueUSMAdvise(
6803
6803
UR_APIEXPORT ur_result_t UR_APICALL
6804
6804
urEnqueueUSMFill2D(
6805
6805
ur_queue_handle_t hQueue, ///< [in] handle of the queue to submit to.
6806
- void *pMem, ///< [in] pointer to memory to be filled.
6806
+ void *pMem, ///< [in][bounds(0, pitch * height)] pointer to memory to be filled.
6807
6807
size_t pitch, ///< [in] the total width of the destination memory including padding.
6808
6808
size_t patternSize, ///< [in] the size in bytes of the pattern. Must be a power of 2 and less
6809
6809
///< than or equal to width.
@@ -6853,9 +6853,10 @@ UR_APIEXPORT ur_result_t UR_APICALL
6853
6853
urEnqueueUSMMemcpy2D(
6854
6854
ur_queue_handle_t hQueue, ///< [in] handle of the queue to submit to.
6855
6855
bool blocking, ///< [in] indicates if this operation should block the host.
6856
- void *pDst, ///< [in] pointer to memory where data will be copied.
6856
+ void *pDst, ///< [in][bounds(0, dstPitch * height)] pointer to memory where data will
6857
+ ///< be copied.
6857
6858
size_t dstPitch, ///< [in] the total width of the source memory including padding.
6858
- const void *pSrc, ///< [in] pointer to memory to be copied.
6859
+ const void *pSrc, ///< [in][bounds(0, srcPitch * height)] pointer to memory to be copied.
6859
6860
size_t srcPitch, ///< [in] the total width of the source memory including padding.
6860
6861
size_t width, ///< [in] the width in bytes of each row to be copied.
6861
6862
size_t height, ///< [in] the height of columns to be copied.
@@ -9856,7 +9857,7 @@ typedef struct ur_enqueue_mem_unmap_params_t {
9856
9857
/// allowing the callback the ability to modify the parameter's value
9857
9858
typedef struct ur_enqueue_usm_fill_params_t {
9858
9859
ur_queue_handle_t *phQueue;
9859
- void **pptr ;
9860
+ void **ppMem ;
9860
9861
size_t *ppatternSize;
9861
9862
const void **ppPattern;
9862
9863
size_t *psize;
0 commit comments