Skip to content

Conversation

@igchor
Copy link
Contributor

@igchor igchor commented May 6, 2025

The path for non-immediate command lists was incorrect. queue->synchronize() was called without closing and executing command lists leading to deadlock.

Fix this by replacing synchronize() call with executeCommandList()

@igchor igchor temporarily deployed to WindowsCILock May 6, 2025 17:40 — with GitHub Actions Inactive
@igchor igchor temporarily deployed to WindowsCILock May 6, 2025 17:59 — with GitHub Actions Inactive
@igchor igchor temporarily deployed to WindowsCILock May 6, 2025 17:59 — with GitHub Actions Inactive
@igchor igchor marked this pull request as ready for review May 6, 2025 18:49
@igchor igchor requested a review from a team as a code owner May 6, 2025 18:49
@igchor igchor requested a review from winstonzhang-intel May 6, 2025 19:04
@igchor
Copy link
Contributor Author

igchor commented May 6, 2025

In theory, we shouldn't need to block the host, but when I tried calling zeCommandListAppendWaitOnEvents with empty wait list, there were a few llvm test failures: #18342 so for now, I think this fix should be OK.

The path for non-immediate command lists was incorrect.
queue->synchronize() was called without closing and executing
command lists leading to deadlock.

Fix this by add call to executeAllOpenCommandLists
@igchor igchor force-pushed the legacy_fix_wait_events_blocking branch from 45cbc85 to 3e8e258 Compare May 6, 2025 19:40
@igchor igchor temporarily deployed to WindowsCILock May 6, 2025 19:40 — with GitHub Actions Inactive
@igchor igchor temporarily deployed to WindowsCILock May 6, 2025 19:59 — with GitHub Actions Inactive
@igchor igchor temporarily deployed to WindowsCILock May 6, 2025 19:59 — with GitHub Actions Inactive
@igchor igchor requested a review from a team as a code owner May 6, 2025 20:07
@igchor igchor temporarily deployed to WindowsCILock May 6, 2025 20:08 — with GitHub Actions Inactive
@igchor igchor temporarily deployed to WindowsCILock May 6, 2025 20:26 — with GitHub Actions Inactive
@igchor igchor temporarily deployed to WindowsCILock May 6, 2025 20:26 — with GitHub Actions Inactive
@reble
Copy link
Contributor

reble commented May 7, 2025

CI failures look unrelated #18349

@igchor
Copy link
Contributor Author

igchor commented May 7, 2025

@intel/llvm-gatekeepers this should be ready for merge

@kbenzie kbenzie merged commit 1a87eec into intel:sycl May 7, 2025
31 of 32 checks passed
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.

4 participants