Skip to content
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

[SYCL][NATIVECPU] Fix local scope module variables for native cpu #15280

Merged
merged 3 commits into from
Sep 10, 2024

Conversation

coldav
Copy link
Contributor

@coldav coldav commented Sep 4, 2024

Although local scope variables inside the kernel are less common in SYCL, they can happen with hierarchical.

This fixes the problem by adding a pass to replace the local scope variables which start life as globals with a struct which is allocated on the stack.

Additionally, this required updating of the code which renames and removes kernel based on wrappers and vecz success. To simplify this we run the OCK utility pass TransferKernelMetadata which adds metadata to store the original kernel name. This in turn simplifies this code significantly.

Note this fixes fails in kernel/kernel_attributes_wg_hint.cpp SYCL CTS for native cpu, which is being tested locally.

@coldav coldav requested a review from a team as a code owner September 4, 2024 09:30
@coldav coldav changed the title [NATIVECPU] Fix local scope module variables for native cpu [SYCL][NATIVECPU] Fix local scope module variables for native cpu Sep 4, 2024
Although local scope variables inside the kernel are less common in
SYCL, they can happen with hierarchical.

This fixes the problem by adding a pass to replace the local scope variables
which start life as globals with a struct which is allocated on the
stack.

Additionally, this required updating of the code which renames and removes
kernel based on wrappers and vecz success. To simplify this we run the
OCK utility pass TransferKernelMetadata which adds metadata to store
the original kernel name. This in turn simplifies this code significantly.
@coldav
Copy link
Contributor Author

coldav commented Sep 10, 2024

@intel/llvm-gatekeepers Could we merge this please now?

@steffenlarsen steffenlarsen merged commit ad494e9 into intel:sycl Sep 10, 2024
13 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