Skip to content

[SYCL] Support online_compiler::compile compiled with pre-C++11 ABI #16179

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

Merged
merged 3 commits into from
Nov 26, 2024

Conversation

aelovikov-intel
Copy link
Contributor

No description provided.

@aelovikov-intel aelovikov-intel marked this pull request as draft November 26, 2024 18:48
@aelovikov-intel aelovikov-intel marked this pull request as ready for review November 26, 2024 20:15
@aelovikov-intel aelovikov-intel merged commit 40e2e66 into intel:sycl Nov 26, 2024
14 checks passed
@aelovikov-intel aelovikov-intel deleted the cxx11abi-online-compiler branch November 26, 2024 20:33
aelovikov-intel added a commit to aelovikov-intel/llvm that referenced this pull request Dec 3, 2024
This is an updated version of intel#16179.

Run-time ABI mismatch resulting in a segmentation fault was uncovered
why enabling extra testing in intel#16235.
aelovikov-intel added a commit to aelovikov-intel/llvm that referenced this pull request Dec 3, 2024
This is an updated version of intel#16179.

Run-time ABI mismatch resulting in a segmentation fault was uncovered
why enabling extra testing in intel#16235.
aelovikov-intel added a commit to aelovikov-intel/llvm that referenced this pull request Dec 3, 2024
This is an updated version of intel#16179.

Run-time ABI mismatch resulting in a segmentation fault was uncovered
why enabling extra testing in intel#16235.
aelovikov-intel added a commit that referenced this pull request Dec 4, 2024
…++11 ABI" (#16248)

Reverts #16179

```
template <source_language Lang>
__SYCL_EXPORT std::vector<byte> online_compiler<Lang>::compile_impl(
    detail::string_view Src, detail::string_view DeviceStepping,
    const std::vector<detail::string_view> &Options) {
```

accesses `this->CompileToSPIRVHandle` which is laid out *after*
`std::string` data member:

```
  /// Target device stepping (implementation defined)
  std::string DeviceStepping;

  /// Handles to helper functions used by the implementation.
  void *CompileToSPIRVHandle = nullptr;
```

resulting in ABI incompatibility.
aelovikov-intel added a commit to aelovikov-intel/llvm that referenced this pull request Dec 4, 2024
This is an updated version of intel#16179.

Run-time ABI mismatch resulting in a segmentation fault was uncovered
why enabling extra testing in intel#16235.
aelovikov-intel added a commit to aelovikov-intel/llvm that referenced this pull request Dec 4, 2024
This is an updated version of intel#16179.

Run-time ABI mismatch resulting in a segmentation fault was uncovered
why enabling extra testing in intel#16235,
this updated version fixes that.
aelovikov-intel added a commit to aelovikov-intel/llvm that referenced this pull request Dec 4, 2024
This is an updated version of intel#16179.

Run-time ABI mismatch resulting in a segmentation fault was uncovered
why enabling extra testing in intel#16235,
this updated version fixes that.
aelovikov-intel added a commit that referenced this pull request Dec 5, 2024
…#16269)

This is an updated version of #16179.

Run-time ABI mismatch resulting in a segmentation fault was uncovered
why enabling extra testing in #16235,
this new version fixes that.
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