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] Fix get_specialization_constant segmentation fault #8542

Merged
merged 5 commits into from
Mar 21, 2023

Conversation

steffenlarsen
Copy link
Contributor

In certain cases get_specialization_constant would cause a segmentation fault, likely due to strict aliasing violations. This commit changes the implementation to use memcpy of the data into the resulting object, as this can be assumed to be valid due to specialization constants being device-copyable.

In certain cases get_specialization_constant would cause a segmentation
fault, likely due to strict aliasing violations. This commit changes the
implementation to use memcpy of the data into the resulting object, as
this can be assumed to be valid due to specialization constants being
device-copyable.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
@steffenlarsen steffenlarsen requested a review from a team as a code owner March 6, 2023 12:24
@steffenlarsen steffenlarsen requested review from cperkinsintel and a team March 6, 2023 12:24
@steffenlarsen
Copy link
Contributor Author

/verify with intel/llvm-test-suite#1634

@steffenlarsen steffenlarsen temporarily deployed to aws March 6, 2023 13:02 — with GitHub Actions Inactive
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
@ldrumm ldrumm requested a review from jchlanda March 6, 2023 14:59
@steffenlarsen steffenlarsen temporarily deployed to aws March 6, 2023 15:35 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen temporarily deployed to aws March 8, 2023 12:24 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen temporarily deployed to aws March 8, 2023 13:57 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen temporarily deployed to aws March 8, 2023 18:27 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen temporarily deployed to aws March 9, 2023 09:46 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen temporarily deployed to aws March 9, 2023 10:46 — with GitHub Actions Inactive
@steffenlarsen
Copy link
Contributor Author

@intel/llvm-reviewers-runtime - Friendly ping.

@steffenlarsen
Copy link
Contributor Author

/verify with intel/llvm-test-suite#1634

@steffenlarsen steffenlarsen temporarily deployed to aws March 16, 2023 13:35 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen temporarily deployed to aws March 16, 2023 14:29 — with GitHub Actions Inactive
Copy link
Contributor

@bso-intel bso-intel left a comment

Choose a reason for hiding this comment

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

LGTM

@againull againull merged commit 86c08b3 into intel:sycl Mar 21, 2023
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.

4 participants