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

Implement missing function: hipEventQuery #55

Open
fwyzard opened this issue Jan 1, 2024 · 2 comments
Open

Implement missing function: hipEventQuery #55

fwyzard opened this issue Jan 1, 2024 · 2 comments

Comments

@fwyzard
Copy link
Contributor

fwyzard commented Jan 1, 2024

Would it be possible to implement hipEventQuery ?

According to the current HIP documentation:

hipError_t hipEventQuery(hipEvent_t event)

Query the status of the specified event. This function will return hipSuccess if all commands in the appropriate stream (specified to hipEventRecord()) have completed.

The documentation goes on to say that

If that work has not completed, or if hipEventRecord() was not called on the event, then hipErrorNotReady is returned.

However this is not what I observe: hipEventQuery() returns hipSuccess for an event that has been just created, before hipEventRecord() was ever called with it.

@fwyzard
Copy link
Contributor Author

fwyzard commented Jan 2, 2024

See also ROCm/HIP#3383 for the HIP documentation.

@fwyzard
Copy link
Contributor Author

fwyzard commented Jan 2, 2024

See #56 for an attempt to implement hipEventQuery().

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

1 participant