-
Notifications
You must be signed in to change notification settings - Fork 800
[SYCL][UR][l0v2] Use counter-based evets #20473
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
Conversation
It offers better performance (no need to create event pools)
Signed-off-by: Mateusz P. Nowak <[email protected]>
Signed-off-by: Mateusz P. Nowak <[email protected]>
Signed-off-by: Mateusz P. Nowak <[email protected]>
|
@intel/unified-runtime-reviewers-level-zero This is kind invitation for the review |
07837f0 to
9c99a56
Compare
| std::ignore = platform; | ||
|
|
||
| // TODO: just use per-context id? | ||
| return std::make_unique<v2::provider_normal>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are always creating eventPoolCacheRegular with counter based events (flags param always contains EVENT_FLAGS_COUNTER flag) too. Shouldn't we also enable v2::provider_counter here?
@pbalcer what do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, we should.
| ZE2UR_CALL_THROWS(zeDriverGetExtensionFunctionAddress, | ||
| (platform->ZeDriver, "zexCounterBasedEventCreate", | ||
| (platform->ZeDriver, "zexCounterBasedEventCreate2", | ||
| (void **)&this->eventCreateFunc)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the earlier driver version this function is available in?
This is a key functionality, I think we need to implement a fallback. I suggest creating a function that creates a provider, first by trying to create a "provider counter", and then "provider normal" if that fails.
|
Superseded by #20788 |
No description provided.