Skip to content

[SYCL] Update time bases when submit time exceeds start time #18717

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

Draft
wants to merge 3 commits into
base: sycl
Choose a base branch
from

Conversation

againull
Copy link
Contributor

Currently for command buffers there is a workaround to set submission time
to start time if the recorded submit time is greater than the start time.
This is needed because the submission time is based on estimated clock
and over time device time and host time may drift apart causing
aforementioned estimation to be inaccurate.

I belive same "workaround" should be used for all tasks, not only for
command buffers.

More over it seems like this condition can be used as a trigger to query
synchronized clock from backend, i.e. to correct the estimation. This PR
implements that.

againull added 3 commits May 29, 2025 08:05
Currently for command buffers there is a workaround to set submission time
to start time if the recorded submit time is greater than the start time.
This is needed because the submission time is based on estimated clock
and over time device time and host time may drift apart causing
aforementioned estimation to be inaccurate.

I belive same "workaround" should be used for all tasks, not only for
command buffers.

More over it seems like this condition can be used as a trigger to query
synchronized clock from backend, i.e. to correct the estimation. This PR
implements that.
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

Successfully merging this pull request may close these issues.

1 participant