Skip to content

[SYCL][E2E] Enable device_global tests #10007

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

Conversation

steffenlarsen
Copy link
Contributor

@steffenlarsen steffenlarsen commented Jun 21, 2023

This commit enables a selection of previously disabled paths for the SYCL E2E tests related to the device_global extension.

Additionally, it splits each test into one case without the device_image_scope on its device_globals and one case with.

This commit enables a selection of previously disabled paths for the
SYCL E2E tests related to the device_global extension.

Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen steffenlarsen temporarily deployed to aws June 21, 2023 10:16 — with GitHub Actions Inactive
steffenlarsen pushed a commit to steffenlarsen/llvm that referenced this pull request Jun 21, 2023
…d::string_view

D149104 converted llvm::demangle to use std::string_view. Enabling
"expensive checks" (via -DLLVM_ENABLE_EXPENSIVE_CHECKS=ON) causes
lld/test/wasm/why-extract.s to fail. The reason for this is obscure:

Reason intel#10007 why std::string_view is dangerous:
Consider the following pattern:

  std::string_view s = ...;
  const char *c = s.data();
  std::strlen(c);

Is c a NUL-terminated C style string? It depends; but if it's not then
it's not safe to call std::strlen on the std::string_view::data().
std::string_view::length() should be used instead.

Fixing this fixes the one lone test that caught this.

microsoftDemangle, rustDemangle, and dlangDemangle should get this same
treatment, too. I will do that next.

Reviewed By: MaskRay, efriedma

Differential Revision: https://reviews.llvm.org/D149675
@steffenlarsen steffenlarsen temporarily deployed to aws June 21, 2023 10:42 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen temporarily deployed to aws June 21, 2023 11:13 — with GitHub Actions Inactive
Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen steffenlarsen temporarily deployed to aws June 21, 2023 14:27 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen temporarily deployed to aws June 21, 2023 14:58 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen temporarily deployed to aws June 26, 2023 09:47 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen temporarily deployed to aws June 26, 2023 10:20 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen temporarily deployed to aws June 27, 2023 15:04 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen temporarily deployed to aws June 27, 2023 15:37 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen temporarily deployed to aws June 28, 2023 09:35 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen temporarily deployed to aws June 28, 2023 10:09 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen marked this pull request as ready for review June 28, 2023 11:08
@steffenlarsen steffenlarsen requested a review from a team as a code owner June 28, 2023 11:08
@steffenlarsen steffenlarsen temporarily deployed to aws June 29, 2023 10:14 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen temporarily deployed to aws June 29, 2023 10:48 — with GitHub Actions Inactive
@steffenlarsen
Copy link
Contributor Author

@sergey-semenov | @intel/llvm-reviewers-runtime - Friendly ping.

@steffenlarsen steffenlarsen temporarily deployed to aws July 13, 2023 16:45 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen temporarily deployed to aws July 13, 2023 18:35 — with GitHub Actions Inactive
@steffenlarsen steffenlarsen merged commit 61fe8e6 into intel:sycl Jul 14, 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.

2 participants