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] Refactor sycl::vec's operators implementation #16557

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

aelovikov-intel
Copy link
Contributor

  • Don't use sycl::vec::vector_t, as it is planned to be removed from the SYCL 2020 (Remove underspecified vector_t KhronosGroup/SYCL-Docs#676). Note
    that this implementation is NOT required to use it, so this PR can be merged before the specification change.
  • Use ext_vector_type-based optimized implementation whenever it's available and not on device only.

This is a recommit of #16529 with an additional #if __clang_major__ >= 20 guard around static_assert on the expression that wasn't constant in clang-19.

* Don't use `sycl::vec::vector_t`, as it is planned to be removed from
the SYCL 2020 (KhronosGroup/SYCL-Docs#676). Note
that this implementation is NOT required to use it, so this PR can be
merged before the specification change.
* Use `ext_vector_type`-based optimized implementation whenever it's
available and not on device only.

This is a recommit of intel#16529 with an
additional `#if __clang_major__ >= 20` guard around `static_assert`
on the expression that wasn't constant in clang-19.
@aelovikov-intel
Copy link
Contributor Author

See https://godbolt.org/z/dPa9zKfGo for the reduced test case of the previous post-commit error.

@aelovikov-intel aelovikov-intel merged commit f86a60b into intel:sycl Jan 8, 2025
18 checks passed
@aelovikov-intel aelovikov-intel deleted the refactor-vec-ops branch January 8, 2025 19:25
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