Skip to content

Conversation

@gmlueck
Copy link
Contributor

@gmlueck gmlueck commented Nov 13, 2025

Our internal customer who is requesting this feature wants the index returned by this API to match the Level Zero device identifier (which is also an index). This is only possible if the index is per-platform instead of globally unique.

Our internal customer who is requesting this feature wants the index
returned by this API to match the Level Zero device identifier (which
is also an index).  This is only possible if the index is per-platform
instead of globally unique.
@gmlueck gmlueck requested a review from a team as a code owner November 13, 2025 18:37
Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

Overall look good to me! Just one insignificant suggestion.

static device ext_oneapi_from_index(size_t index);
class platform {
// ...
device ext_oneapi_index_to_device(size_t index) const;
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit; I am not fully sold on this name. Maybe ext_oneapi_device_at(size_t index) or ext_oneapi_device_at_index(size_t index)?

Not a strong preference though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that seems better. Done in f4d3524.

@github-actions
Copy link
Contributor

@intel/llvm-gatekeepers please consider merging

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.

2 participants