Skip to content

Conversation

pbalcer
Copy link
Contributor

@pbalcer pbalcer commented Sep 23, 2024

This patch makes sure that only events from the exact same
cmdlists are filtered out when appending events to wait.

This tests a scenario where a native interop event
is used as part of a barrier. Current implementation
fails because it skips waiting on events if the
queue is using driver in order lists.
@pbalcer pbalcer requested a review from a team as a code owner September 23, 2024 14:54
@pbalcer pbalcer changed the title Fix filter out same cmdlists Fix urEnqueueEventsWaitWithBarrier when used with interop events Sep 23, 2024
@github-actions github-actions bot added the level-zero L0 adapter specific issues label Sep 23, 2024
@pbalcer pbalcer force-pushed the fix-filter-out-same-cmdlists branch 2 times, most recently from e962cf3 to 8da74a0 Compare September 23, 2024 15:01
This patch makes sure that only events from the exact same
cmdlists are filtered out when appending events to wait.
@pbalcer pbalcer force-pushed the fix-filter-out-same-cmdlists branch from 8da74a0 to 96f66e0 Compare September 23, 2024 16:17
@nrspruit nrspruit added v0.10.x Include in the v0.10.x release ready to merge Added to PR's which are ready to merge labels Sep 23, 2024
@pbalcer pbalcer merged commit 7a2caca into oneapi-src:main Sep 24, 2024
73 of 74 checks passed
// is unnecessary IF the cmdlists match.
if (EventWaitList.Length) {
if (CmdList->second.IsInOrderList) {
for (unsigned i = EventWaitList.Length; i-- < 0;) {
Copy link
Contributor

Choose a reason for hiding this comment

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

/unified-runtime-src/source/adapters/level_zero/event.cpp:203:55: warning: comparison of unsigned expression in ‘< 0’ is always false [-Wtype-limits]
203 | for (unsigned i = EventWaitList.Length; i-- < 0;) {
| ~~~~^~~

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup, we are aware of that typo. Thanks. This patch will solve the problem: #2134

@pbalcer pbalcer deleted the fix-filter-out-same-cmdlists branch September 26, 2024 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level-zero L0 adapter specific issues ready to merge Added to PR's which are ready to merge v0.10.x Include in the v0.10.x release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants