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 @@ -8910,6 +8910,8 @@ urKernelSuggestMaxCooperativeGroupCountExp(
8910
8910
/// - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
8911
8911
/// + `NULL == phEvent`
8912
8912
/// - ::UR_RESULT_ERROR_INVALID_EVENT_WAIT_LIST
8913
+ /// + `phEventWaitList == NULL && numEventsInWaitList > 0`
8914
+ /// + `phEventWaitList != NULL && numEventsInWaitList == 0`
8913
8915
UR_APIEXPORT ur_result_t UR_APICALL
8914
8916
urEnqueueTimestampRecordingExp(
8915
8917
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 @@ -8965,6 +8965,14 @@ __urdlllocal ur_result_t UR_APICALL urEnqueueTimestampRecordingExp(
8965
8965
return UR_RESULT_ERROR_INVALID_NULL_POINTER;
8966
8966
}
8967
8967
8968
+ if (phEventWaitList == NULL && numEventsInWaitList > 0 ) {
8969
+ return UR_RESULT_ERROR_INVALID_EVENT_WAIT_LIST;
8970
+ }
8971
+
8972
+ if (phEventWaitList != NULL && numEventsInWaitList == 0 ) {
8973
+ return UR_RESULT_ERROR_INVALID_EVENT_WAIT_LIST;
8974
+ }
8975
+
8968
8976
if (phEventWaitList != NULL && numEventsInWaitList > 0 ) {
8969
8977
for (uint32_t i = 0 ; i < numEventsInWaitList; ++i) {
8970
8978
if (phEventWaitList[i] == NULL ) {
Original file line number Diff line number Diff line change @@ -8324,6 +8324,8 @@ ur_result_t UR_APICALL urKernelSuggestMaxCooperativeGroupCountExp(
8324
8324
// / - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
8325
8325
// / + `NULL == phEvent`
8326
8326
// / - ::UR_RESULT_ERROR_INVALID_EVENT_WAIT_LIST
8327
+ // / + `phEventWaitList == NULL && numEventsInWaitList > 0`
8328
+ // / + `phEventWaitList != NULL && numEventsInWaitList == 0`
8327
8329
ur_result_t UR_APICALL urEnqueueTimestampRecordingExp (
8328
8330
ur_queue_handle_t hQueue, // /< [in] handle of the queue object
8329
8331
bool
Original file line number Diff line number Diff line change @@ -7043,6 +7043,8 @@ ur_result_t UR_APICALL urKernelSuggestMaxCooperativeGroupCountExp(
7043
7043
// / - ::UR_RESULT_ERROR_INVALID_NULL_POINTER
7044
7044
// / + `NULL == phEvent`
7045
7045
// / - ::UR_RESULT_ERROR_INVALID_EVENT_WAIT_LIST
7046
+ // / + `phEventWaitList == NULL && numEventsInWaitList > 0`
7047
+ // / + `phEventWaitList != NULL && numEventsInWaitList == 0`
7046
7048
ur_result_t UR_APICALL urEnqueueTimestampRecordingExp (
7047
7049
ur_queue_handle_t hQueue, // /< [in] handle of the queue object
7048
7050
bool
You can’t perform that action at this time.
0 commit comments