Skip to content

Conversation

AlexeySachkov
Copy link
Contributor

This PR outlines functions like linearize and unlinearize to their own separate header, because they are only used by a few tests.

The change is expected to have positive (albeit probably unnoticeable) impact on overall CTS compile-times.

The main motivation/background is to refactor CTS in preparation for using modularized sycl.hpp (see KhronosGroup/SYCL-Docs#780). As of today all tests use common.h and therefore CTS won't benefit much from fine grained headers because everything anyways is included through a single entry point in form of common.h.

This PR outlines functions like `linearize` and `unlinearize` to their
own separate header, because they are only used by a few tests.

The change is expected to have positive (albeit probably unnoticeable)
impact on overall CTS compile-times.

The main motivation/background is to refactor CTS in preparation for
using modularized `sycl.hpp` (see KhronosGroup/SYCL-Docs#780). As of
today all tests use `common.h` and therefore CTS won't benefit much from
fine grained headers because everything anyways is included through a
single entry point in form of `common.h`.
@AlexeySachkov AlexeySachkov requested a review from a team as a code owner April 17, 2025 13:08
@keryell
Copy link
Member

keryell commented Jul 10, 2025

@AlexeySachkov So, do you plan to move this into tests/common/range_index_space_id.h instead?

@AlexeySachkov
Copy link
Contributor Author

@AlexeySachkov So, do you plan to move this into tests/common/range_index_space_id.h instead?

Apology, I missed your comment. Yeah, if you agree, then let me move into an existing header instead

@bader bader requested a review from keryell July 23, 2025 15:53
Copy link
Member

@keryell keryell left a comment

Choose a reason for hiding this comment

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

Looks good!
Thank you.

@bader bader merged commit ea1d62b into KhronosGroup:main Jul 30, 2025
9 checks passed
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