Skip to content

[SYCL][L0] Report events as submitted, not running, until they are completed #9094

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

Merged
merged 1 commit into from
Apr 18, 2023

Conversation

smaslov-intel
Copy link
Contributor

No description provided.

@smaslov-intel smaslov-intel requested a review from a team as a code owner April 18, 2023 03:47
@smaslov-intel smaslov-intel temporarily deployed to aws April 18, 2023 04:15 — with GitHub Actions Inactive
@smaslov-intel smaslov-intel temporarily deployed to aws April 18, 2023 05:04 — with GitHub Actions Inactive
// NOTE: We currently cannot tell if command is currently running, so
// it will always show up "submitted" before it is finally "completed".
//
pi_int32 Result = PI_EVENT_SUBMITTED;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would doing this mess with timings, for applications querying for the submit_time?

Copy link
Contributor Author

@smaslov-intel smaslov-intel Apr 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so. This is returning "status", not time. So, an event status can now being either "submitted" or "completed". There is a separate interface for querying timestamps of a kernel for all "submit", "start", "end" times:

case PI_PROFILING_INFO_COMMAND_START: {

@smaslov-intel smaslov-intel requested a review from againull April 18, 2023 16:24
@smaslov-intel
Copy link
Contributor Author

Failed Tests (1):
SYCL :: Basic/memory-consumption.cpp

This is a know issue: #9008

@againull againull merged commit 502e0fd into intel:sycl Apr 18, 2023
jandres742 pushed a commit to jandres742/llvm that referenced this pull request Apr 21, 2023
jandres742 pushed a commit to jandres742/llvm that referenced this pull request Apr 24, 2023
jandres742 pushed a commit to jandres742/llvm that referenced this pull request May 3, 2023
jandres742 pushed a commit to jandres742/llvm that referenced this pull request May 16, 2023
jandres742 pushed a commit to jandres742/llvm that referenced this pull request May 23, 2023
jandres742 pushed a commit to jandres742/llvm that referenced this pull request May 26, 2023
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.

3 participants