Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Adjust multiple tests to queue::wait() changes #338

Merged
merged 6 commits into from
Jul 8, 2021
Merged

[SYCL] Adjust multiple tests to queue::wait() changes #338

merged 6 commits into from
Jul 8, 2021

Conversation

sergey-semenov
Copy link

@sergey-semenov sergey-semenov commented Jul 2, 2021

Adjust tests to expect a call to piQueueFinish rather than piEventsWait
as part of queue::wait(), as well as release of events for queue USM
operations or non-host commands with no implicit dependencies right after
their submission.

Additionally, blocked commands are no longer always waited for before enqueueing
of their users. This introduces more cases where host tasks are used to "glue"
events from different contexts, which makes it so that the order of some calls in the
enqueue-arg-order-image test may vary from run to run.

Adjust tests to expect a call to piQueueFinish rather than piEventsWait
as part of queue::wait().
@sergey-semenov sergey-semenov requested a review from a team as a code owner July 2, 2021 11:46
@sergey-semenov sergey-semenov requested a review from v-klochkov July 2, 2021 11:46
@sergey-semenov
Copy link
Author

Adjusts tests to fix regressions once intel/llvm#4044 is merged.

With a recent update to the runtime pull request blocked commands are no
longer waited for during enqueueing of their users. This introduces more
cases where host tasks are used to "glue" events from different
contexts, which leads to a change to expected order of PI calls in the
test.
s-kanaev
s-kanaev previously approved these changes Jul 6, 2021
Copy link

@s-kanaev s-kanaev left a comment

Choose a reason for hiding this comment

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

LGTM

smaslov-intel
smaslov-intel previously approved these changes Jul 6, 2021
Copy link

@smaslov-intel smaslov-intel left a comment

Choose a reason for hiding this comment

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

LGTM

@v-klochkov
Copy link

Please fix the CI regressions on the updated tests.

Since queue::wait() changes introduced host tasks to
enqueue-arg-order-image.cpp, the order of calls may vary from run to
run. Replace CHECK with CHECK-DAG to allow any ordering of the PI calls
that are made by a host task.
@sergey-semenov
Copy link
Author

The only failed test in CI is basic/subdevice_pi.cpp, which should pass together with changes from intel/llvm#4044

Copy link

@s-kanaev s-kanaev left a comment

Choose a reason for hiding this comment

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

LGTM

@bader bader merged commit 6dff186 into intel:intel Jul 8, 2021
smaslov-intel pushed a commit to smaslov-intel/llvm-test-suite that referenced this pull request Aug 12, 2021
Adjust tests to expect a call to piQueueFinish rather than piEventsWait
as part of queue::wait(), as well as release of events for queue USM
operations or non-host commands with no implicit dependencies right after
their submission.

Additionally, blocked commands are no longer always waited for before enqueueing
of their users. This introduces more cases where host tasks are used to "glue"
events from different contexts, which makes it so that the order of some calls in the
enqueue-arg-order-image test may vary from run to run.
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…t-suite#338)

Adjust tests to expect a call to piQueueFinish rather than piEventsWait
as part of queue::wait(), as well as release of events for queue USM
operations or non-host commands with no implicit dependencies right after
their submission.

Additionally, blocked commands are no longer always waited for before enqueueing
of their users. This introduces more cases where host tasks are used to "glue"
events from different contexts, which makes it so that the order of some calls in the
enqueue-arg-order-image test may vary from run to run.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants