Skip to content

Conversation

@mateuszpn
Copy link
Contributor

No description provided.

Signed-off-by: Mateusz P. Nowak <[email protected]>
@mateuszpn
Copy link
Contributor Author

@intel/unified-runtime-reviewers-level-zero This is kind invitation for the review

std::ignore = platform;

// TODO: just use per-context id?
return std::make_unique<v2::provider_normal>(
Copy link
Contributor

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?

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, we should.

Comment on lines 31 to 33
ZE2UR_CALL_THROWS(zeDriverGetExtensionFunctionAddress,
(platform->ZeDriver, "zexCounterBasedEventCreate",
(platform->ZeDriver, "zexCounterBasedEventCreate2",
(void **)&this->eventCreateFunc));
Copy link
Contributor

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.

@pbalcer
Copy link
Contributor

pbalcer commented Dec 2, 2025

Superseded by #20788

@mateuszpn mateuszpn closed this Dec 3, 2025
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.

5 participants