Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clarification on zetCommandListAppendMetricQueryEnd phWaitEvents #51

Closed
jandres742 opened this issue Dec 12, 2022 · 4 comments
Closed

Comments

@jandres742
Copy link

For zetCommandListAppendMetricQueryEnd https://spec.oneapi.io/level-zero/latest/tools/api.html?highlight=zetcommandlistappendmetricqueryend#zetcommandlistappendmetricqueryend we have

phWaitEvents – [in][mbz] must be nullptr

ZE_RESULT_ERROR_INVALID_NULL_POINTER

nullptr == phWaitEvents

so it seems we have contradictory statements. phWaitEvents must be zero, but if so, we return INVALID_NULL_POINTER. We need to choose one of the two.

@bmyates
Copy link
Contributor

bmyates commented Dec 12, 2022

This api definition was intentionally changed to mbz in spec 1.1. The error code for nullptr should be removed. This will fix it: #52

@jandres742
Copy link
Author

@bmyates : do you remember why it was changed intentionally to mbz in 1.1? if there was a reason at that moment, do we know if that requirement does not longer apply?

@bmyates
Copy link
Contributor

bmyates commented Dec 12, 2022

Requirements are unchanged. Original customer report that motivated change:

zetCommandListAppendMetricQueryBegin has no hSignalEvent or phWaitEvents parameters whereas zetCommandListAppendMetricQueryEnd does. If zetCommandListAppendMetricQueryBegin is a barrier, the specification doesn't say so.
MetricQueryEnd should only have a signal and not wait. Doesn't hurt that wait is here but not useful. MetricQueryBegin doesn’t need a signal or wait. Need to be defined as barriers.

@jandres742
Copy link
Author

changes merged in #52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants