Skip to content

[SYCL][XPTI][NFC] Unify stream type #19399

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

AlexeySachkov
Copy link
Contributor

Data type which identifies an XPTI stream wasn't uniformly the same, even within XPTI itself different APIs expected different data type as a stream identifier.

This PR introduces the xpti::stream_id_t type alias and uses it everywhere.

Motivation for this PR is to address warnings produced by -Wconversion. We don't have that flag enabled yet, but it is a requirement per our SDL processes. It will be enabled in #19306

Data type which identifies an XPTI stream wasn't uniformly the same,
even within XPTI itself different APIs expected different data type as a
stream identifier.

This PR introduces the `xpti::stream_id_t` type alias and uses it
everywhere.

Motivation for this PR is to address warnings produced by
`-Wconversion`. We don't have that flag enabled yet, but it is a
requirement per our SDL processes. It will be enabled in intel#19306
@AlexeySachkov AlexeySachkov marked this pull request as ready for review July 14, 2025 15:24
@AlexeySachkov AlexeySachkov requested review from a team as code owners July 14, 2025 15:24
Copy link
Contributor

@reble reble left a comment

Choose a reason for hiding this comment

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

LGTM for graph related changes

@AlexeySachkov AlexeySachkov merged commit 81f584b into intel:sycl Jul 15, 2025
29 of 30 checks passed
@AlexeySachkov AlexeySachkov deleted the private/asachkov/unify-xpti-stream-data-type branch July 15, 2025 16:55
AlexeySachkov added a commit that referenced this pull request Jul 23, 2025
#19399 made layout of `scheduler` class dependent on whether
or not XPTI instrumentation is enabled. This caused issues with layout
mismatch when `scheduler.hpp` is included directly from unit-tests,
because macro enabling XPTI were not aligned between the RT and
unit-tests.

The issue was caught for scheduler unit-tests and fixed in
#19399, but apparently we have more unit-tests which need
scheduler. Internal testing discovered issues with buffer unit-tests.

Therefore, re-applied the fix from #19399 globally to all
unit-tests to prevent issues like this appearing in new and other
existing unit-tests.
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.

3 participants