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

[SYCL] Extend scope of scheduler bypass to safe to bypass events #16735

Open
wants to merge 7 commits into
base: sycl
Choose a base branch
from

Conversation

Alexandr-Konovalov
Copy link
Contributor

  1. Aling scheduler bypass conditions for CG and for memory ops.
  2. Connect an event returned from scheduler bypass case with dependent events.

Copy link
Contributor

@sergey-semenov sergey-semenov left a comment

Choose a reason for hiding this comment

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

The change LGTM, just minor nitpicks

sycl/source/detail/queue_impl.cpp Outdated Show resolved Hide resolved
@@ -332,6 +332,9 @@ TEST_F(DependsOnTests, ShortcutFunctionWithWaitList) {
ASSERT_NE(Cmd, nullptr);
Cmd->MIsBlockable = true;
Cmd->MEnqueueStatus = detail::EnqueueResultT::SyclEnqueueBlocked;
// for the test functionality, depenent task HostTaskEvent must be treated as
Copy link
Contributor

Choose a reason for hiding this comment

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

I would replace this comment with "Mock up an incomplete host task" on L326.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@Alexandr-Konovalov
Copy link
Contributor Author

@intel/llvm-reviewers-runtime Colleagues, could you please look at the PR?

}

if (isInOrder()) {
auto &EventToStoreIn = MGraph.expired() ? MDefaultGraphDeps.LastEventPtr
: MExtGraphDeps.LastEventPtr;
EventToStoreIn = EventImpl;
EventToStoreIn = std::move(EventImpl);
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we make EventImpl a const auto & instead? That way, there would be no point in moving it here and we would avoid conditionally invalid future attempts at accessing EventImpl after this point.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

sycl/source/handler.cpp Show resolved Hide resolved
Alexandr-Konovalov and others added 7 commits February 6, 2025 15:38
1) Aling scheduler bypass conditions for CG and for memory ops.
2) Connect an event returned from scheduler bypass case with dependent
   events.
@Alexandr-Konovalov Alexandr-Konovalov force-pushed the Alexandr-Konovalov/simplify-scheduler-bypass branch from 03df21e to a4fa35a Compare February 6, 2025 16:28
Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

Thanks! I think it looks good, but I also would like to give @sergey-semenov another day to look.

Copy link
Contributor

@sergey-semenov sergey-semenov left a comment

Choose a reason for hiding this comment

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

LGTM

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