Skip to content

[L0] Enable Disabling of Queue lock during L0 Sync calls #1492

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 15, 2024

Conversation

nrspruit
Copy link
Contributor

@nrspruit nrspruit commented Apr 4, 2024

  • Prevent Queue Lock deadlock while L0 queue sync or host sync is in progress.

@nrspruit nrspruit force-pushed the l0_queue_sync_unblocking branch from 8e028ee to a0b84e0 Compare April 5, 2024 21:07
@nrspruit nrspruit marked this pull request as ready for review April 5, 2024 21:08
@nrspruit nrspruit requested a review from a team as a code owner April 5, 2024 21:08
@nrspruit nrspruit changed the title L0 queue sync unblocking [L0] Enable Disabling of Queue lock during L0 Sync calls Apr 5, 2024
nrspruit added a commit to nrspruit/llvm that referenced this pull request Apr 5, 2024
Copy link
Contributor

@pbalcer pbalcer left a comment

Choose a reason for hiding this comment

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

If we merge this, we should also be able to revert #1371 (but I'm not sure whether we should given the opt-out UrL0QueueSyncNonBlocking flag)

@nrspruit
Copy link
Contributor Author

nrspruit commented Apr 8, 2024

If we merge this, we should also be able to revert #1371 (but I'm not sure whether we should given the opt-out UrL0QueueSyncNonBlocking flag)

So, until we feel "safe" to remove the opt-out flag, then I would probably leave that change in just in case. The opt-out flag is to catch any possible corner cases in the first release, then it may be deprecated.

@nrspruit nrspruit added level-zero L0 adapter specific issues ready to merge Added to PR's which are ready to merge v0.9.x Include in the v0.9.x release labels Apr 8, 2024
@kbenzie
Copy link
Contributor

kbenzie commented Apr 12, 2024

@pbalcer has approved this but this is still pending review from the @oneapi-src/unified-runtime-level-zero-write team. Should @pbalcer (and others?) be in that review team?

@nrspruit
Copy link
Contributor Author

@pbalcer has approved this but this is still pending review from the @oneapi-src/unified-runtime-level-zero-write team. Should @pbalcer (and others?) be in that review team?

@raiyanla is also part of that team so it should have caught his approval, does he need to reapprove?

@kbenzie
Copy link
Contributor

kbenzie commented Apr 12, 2024

@raiyanla is also part of that team so it should have caught his approval, does he need to reapprove?

Weird, perhaps this was a draft PR when that approval happened? Or GitHub being weird. Either way I think its fine, was just a thought about process moving forwards.

@aarongreig aarongreig merged commit 4177e93 into oneapi-src:main Apr 15, 2024
kbenzie pushed a commit to kbenzie/unified-runtime that referenced this pull request Apr 16, 2024
…king

[L0] Enable Disabling of Queue lock during L0 Sync calls
@kbenzie kbenzie mentioned this pull request Apr 16, 2024
19 tasks
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.9.x Include in the v0.9.x release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants