File tree Expand file tree Collapse file tree 5 files changed +17
-1
lines changed Expand file tree Collapse file tree 5 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -8914,6 +8914,8 @@ urKernelSuggestMaxCooperativeGroupCountExp(
8914
8914
/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
8915
8915
/// + `NULL == phEvent`
8916
8916
/// - ::UR_RESULT_ERROR_INVALID_EVENT_WAIT_LIST
8917
+ /// + `phEventWaitList == NULL && numEventsInWaitList > 0`
8918
+ /// + `phEventWaitList != NULL && numEventsInWaitList == 0`
8917
8919
UR_APIEXPORT ur_result_t UR_APICALL
8918
8920
urEnqueueTimestampRecordingExp(
8919
8921
ur_queue_handle_t hQueue, ///< [in] handle of the queue object
Original file line number Diff line number Diff line change @@ -63,4 +63,6 @@ params:
63
63
returns :
64
64
- $X_RESULT_ERROR_INVALID_NULL_HANDLE
65
65
- $X_RESULT_ERROR_INVALID_NULL_POINTER
66
- - $X_RESULT_ERROR_INVALID_EVENT_WAIT_LIST
66
+ - $X_RESULT_ERROR_INVALID_EVENT_WAIT_LIST :
67
+ - " `phEventWaitList == NULL && numEventsInWaitList > 0`"
68
+ - " `phEventWaitList != NULL && numEventsInWaitList == 0`"
Original file line number Diff line number Diff line change @@ -8975,6 +8975,14 @@ __urdlllocal ur_result_t UR_APICALL urEnqueueTimestampRecordingExp(
8975
8975
return UR_RESULT_ERROR_INVALID_NULL_POINTER;
8976
8976
}
8977
8977
8978
+ if (phEventWaitList == NULL && numEventsInWaitList > 0 ) {
8979
+ return UR_RESULT_ERROR_INVALID_EVENT_WAIT_LIST;
8980
+ }
8981
+
8982
+ if (phEventWaitList != NULL && numEventsInWaitList == 0 ) {
8983
+ return UR_RESULT_ERROR_INVALID_EVENT_WAIT_LIST;
8984
+ }
8985
+
8978
8986
if (phEventWaitList != NULL && numEventsInWaitList > 0 ) {
8979
8987
for (uint32_t i = 0 ; i < numEventsInWaitList; ++i) {
8980
8988
if (phEventWaitList[i] == NULL ) {
Original file line number Diff line number Diff line change @@ -8328,6 +8328,8 @@ ur_result_t UR_APICALL urKernelSuggestMaxCooperativeGroupCountExp(
8328
8328
// / - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
8329
8329
// / + `NULL == phEvent`
8330
8330
// / - ::UR_RESULT_ERROR_INVALID_EVENT_WAIT_LIST
8331
+ // / + `phEventWaitList == NULL && numEventsInWaitList > 0`
8332
+ // / + `phEventWaitList != NULL && numEventsInWaitList == 0`
8331
8333
ur_result_t UR_APICALL urEnqueueTimestampRecordingExp (
8332
8334
ur_queue_handle_t hQueue, // /< [in] handle of the queue object
8333
8335
bool
Original file line number Diff line number Diff line change @@ -7047,6 +7047,8 @@ ur_result_t UR_APICALL urKernelSuggestMaxCooperativeGroupCountExp(
7047
7047
// / - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
7048
7048
// / + `NULL == phEvent`
7049
7049
// / - ::UR_RESULT_ERROR_INVALID_EVENT_WAIT_LIST
7050
+ // / + `phEventWaitList == NULL && numEventsInWaitList > 0`
7051
+ // / + `phEventWaitList != NULL && numEventsInWaitList == 0`
7050
7052
ur_result_t UR_APICALL urEnqueueTimestampRecordingExp (
7051
7053
ur_queue_handle_t hQueue, // /< [in] handle of the queue object
7052
7054
bool
You can’t perform that action at this time.
0 commit comments