@@ -1247,6 +1247,9 @@ urEnqueueMemUnmap(
12471247/// + `NULL == ptr`
12481248/// - ::UR_RESULT_ERROR_INVALID_QUEUE
12491249/// - ::UR_RESULT_ERROR_INVALID_EVENT
1250+ /// - ::UR_RESULT_ERROR_INVALID_SIZE
1251+ /// + `count == 0`
1252+ /// + If `count` is higher than the allocation size of `ptr`
12501253/// - ::UR_RESULT_ERROR_INVALID_EVENT_WAIT_LIST
12511254/// + `phEventWaitList == NULL && numEventsInWaitList > 0`
12521255/// + `phEventWaitList != NULL && numEventsInWaitList == 0`
@@ -1258,7 +1261,8 @@ UR_APIEXPORT ur_result_t UR_APICALL
12581261urEnqueueUSMMemset (
12591262 ur_queue_handle_t hQueue , ///< [in] handle of the queue object
12601263 void * ptr , ///< [in] pointer to USM memory object
1261- int8_t byteValue , ///< [in] byte value to fill
1264+ int value , ///< [in] value to fill. It is interpreted as an 8-bit value and the upper
1265+ ///< 24 bits are ignored
12621266 size_t count , ///< [in] size in bytes to be set
12631267 uint32_t numEventsInWaitList , ///< [in] size of the event wait list
12641268 const ur_event_handle_t * phEventWaitList , ///< [in][optional][range(0, numEventsInWaitList)] pointer to a list of
@@ -1283,6 +1287,9 @@ urEnqueueUSMMemset(
12831287/// + `NULL == pSrc`
12841288/// - ::UR_RESULT_ERROR_INVALID_QUEUE
12851289/// - ::UR_RESULT_ERROR_INVALID_EVENT
1290+ /// - ::UR_RESULT_ERROR_INVALID_SIZE
1291+ /// + `size == 0`
1292+ /// + If `size` is higher than the allocation size of `pSrc` or `pDst`
12861293/// - ::UR_RESULT_ERROR_INVALID_EVENT_WAIT_LIST
12871294/// + `phEventWaitList == NULL && numEventsInWaitList > 0`
12881295/// + `phEventWaitList != NULL && numEventsInWaitList == 0`
@@ -1321,6 +1328,9 @@ urEnqueueUSMMemcpy(
13211328/// + `0x1 < flags`
13221329/// - ::UR_RESULT_ERROR_INVALID_QUEUE
13231330/// - ::UR_RESULT_ERROR_INVALID_EVENT
1331+ /// - ::UR_RESULT_ERROR_INVALID_SIZE
1332+ /// + `size == 0`
1333+ /// + If `size` is higher than the allocation size of `pMem`
13241334/// - ::UR_RESULT_ERROR_INVALID_EVENT_WAIT_LIST
13251335/// + `phEventWaitList == NULL && numEventsInWaitList > 0`
13261336/// + `phEventWaitList != NULL && numEventsInWaitList == 0`
@@ -1368,6 +1378,9 @@ typedef enum ur_mem_advice_t {
13681378/// + `::UR_MEM_ADVICE_DEFAULT < advice`
13691379/// - ::UR_RESULT_ERROR_INVALID_QUEUE
13701380/// - ::UR_RESULT_ERROR_INVALID_EVENT
1381+ /// - ::UR_RESULT_ERROR_INVALID_SIZE
1382+ /// + `size == 0`
1383+ /// + If `size` is higher than the allocation size of `pMem`
13711384/// - ::UR_RESULT_ERROR_INVALID_MEM_OBJECT
13721385/// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
13731386/// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
@@ -1393,10 +1406,19 @@ urEnqueueUSMMemAdvise(
13931406/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
13941407/// + `NULL == pMem`
13951408/// + `NULL == pPattern`
1409+ /// - ::UR_RESULT_ERROR_INVALID_SIZE
1410+ /// + `pitch == 0`
1411+ /// + `width == 0`
1412+ /// + `height == 0`
1413+ /// + `pitch < width`
1414+ /// + If `pitch * height` is higher than the allocation size of `pMem`
13961415/// - ::UR_RESULT_ERROR_INVALID_EVENT_WAIT_LIST
13971416/// + `phEventWaitList == NULL && numEventsInWaitList > 0`
13981417/// + `phEventWaitList != NULL && numEventsInWaitList == 0`
13991418/// + If event objects in phEventWaitList are not valid events.
1419+ /// - ::UR_RESULT_ERROR_INVALID_MEM_OBJECT
1420+ /// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
1421+ /// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
14001422/// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
14011423UR_APIEXPORT ur_result_t UR_APICALL
14021424urEnqueueUSMFill2D (
@@ -1437,13 +1459,17 @@ urEnqueueUSMFill2D(
14371459/// + `phEventWaitList == NULL && numEventsInWaitList > 0`
14381460/// + `phEventWaitList != NULL && numEventsInWaitList == 0`
14391461/// + If event objects in phEventWaitList are not valid events.
1462+ /// - ::UR_RESULT_ERROR_INVALID_MEM_OBJECT
1463+ /// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
1464+ /// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
14401465/// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
14411466UR_APIEXPORT ur_result_t UR_APICALL
14421467urEnqueueUSMMemset2D (
14431468 ur_queue_handle_t hQueue , ///< [in] handle of the queue to submit to.
14441469 void * pMem , ///< [in] pointer to memory to be filled.
14451470 size_t pitch , ///< [in] the total width of the destination memory including padding.
1446- int value , ///< [in] the value to fill into the region in pMem.
1471+ int value , ///< [in] the value to fill into the region in pMem. It is interpreted as
1472+ ///< an 8-bit value and the upper 24 bits are ignored
14471473 size_t width , ///< [in] the width in bytes of each row to set.
14481474 size_t height , ///< [in] the height of the columns to set.
14491475 uint32_t numEventsInWaitList , ///< [in] size of the event wait list
@@ -1467,10 +1493,21 @@ urEnqueueUSMMemset2D(
14671493/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
14681494/// + `NULL == pDst`
14691495/// + `NULL == pSrc`
1496+ /// - ::UR_RESULT_ERROR_INVALID_SIZE
1497+ /// + `srcPitch == 0`
1498+ /// + `dstPitch == 0`
1499+ /// + `srcPitch < width`
1500+ /// + `dstPitch < width`
1501+ /// + `height == 0`
1502+ /// + If `srcPitch * height` is higher than the allocation size of `pSrc`
1503+ /// + If `dstPitch * height` is higher than the allocation size of `pDst`
14701504/// - ::UR_RESULT_ERROR_INVALID_EVENT_WAIT_LIST
14711505/// + `phEventWaitList == NULL && numEventsInWaitList > 0`
14721506/// + `phEventWaitList != NULL && numEventsInWaitList == 0`
14731507/// + If event objects in phEventWaitList are not valid events.
1508+ /// - ::UR_RESULT_ERROR_INVALID_MEM_OBJECT
1509+ /// - ::UR_RESULT_ERROR_OUT_OF_HOST_MEMORY
1510+ /// - ::UR_RESULT_ERROR_OUT_OF_RESOURCES
14741511/// - ::UR_RESULT_ERROR_UNSUPPORTED_FEATURE
14751512UR_APIEXPORT ur_result_t UR_APICALL
14761513urEnqueueUSMMemcpy2D (
@@ -6693,7 +6730,7 @@ typedef void(UR_APICALL *ur_pfnEnqueueMemUnmapCb_t)(
66936730typedef struct ur_enqueue_usm_memset_params_t {
66946731 ur_queue_handle_t * phQueue ;
66956732 void * * pptr ;
6696- int8_t * pbyteValue ;
6733+ int * pvalue ;
66976734 size_t * pcount ;
66986735 uint32_t * pnumEventsInWaitList ;
66996736 const ur_event_handle_t * * pphEventWaitList ;
0 commit comments