Skip to content

[NFC][SYCL] Switch to std:: equivalents for utilities in stl_type_traits.hpp #9162

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
Apr 24, 2023

Conversation

aelovikov-intel
Copy link
Contributor

Re-commits #7628 and #7668 that were previously reverted due to build issues on RHEL systems. The issues were fixed by introducing SYCL_LIBDEVICE_GCC_TOOLCHAIN cmake configuration option in #7771.

@aelovikov-intel aelovikov-intel requested review from a team as code owners April 21, 2023 17:58
Copy link
Contributor

@sarnex sarnex left a comment

Choose a reason for hiding this comment

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

esimd lgtm, only sed fallout :)

@@ -70,7 +70,7 @@ constexpr unsigned int ElemsPerAddrEncoding() {
else if constexpr (ElemsPerAddr == 4)
return 2;

// other cases not needed since enable_if disallows other values
// other cases not needed since std::enable_if disallows other values
Copy link
Contributor

Choose a reason for hiding this comment

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

prolly revert this?

@@ -849,7 +849,7 @@ line(float P, float Q, __ESIMD_NS::simd<T, SZ> src1, Sat sat = {}) {
// The only input and return types for these APIs are floats.
// In order to be able to use the old emu code, we keep the template argument
// for the type, although the type "T" can only be float.
// We use enable_if to force the float type only.
// We use std::enable_if to force the float type only.
Copy link
Contributor

Choose a reason for hiding this comment

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

same, prolly revert

@@ -1118,7 +1118,7 @@ __ESIMD_API __ESIMD_NS::simd<float, SZ> lrp(__ESIMD_NS::simd<float, SZ> src0,
// The only input and return types for these APIs are floats.
// In order to be able to use the old emu code, we keep the template argument
// for the type, although the type "T" can only be float.
// We use enable_if to force the float type only.
// We use std::enable_if to force the float type only.
Copy link
Contributor

Choose a reason for hiding this comment

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

same, prolly revert

@aelovikov-intel aelovikov-intel temporarily deployed to aws April 21, 2023 18:12 — with GitHub Actions Inactive
@aelovikov-intel
Copy link
Contributor Author

Thanks for the quick review! I noticed those as well, but I think it makes sense to keep the changes.

@sarnex
Copy link
Contributor

sarnex commented Apr 21, 2023

ok sounds good, no strong opinion

@aelovikov-intel
Copy link
Contributor Author

I know that review has already started, but I think rebase for this kind of PR is slightly better than merge.

…its.hpp

Re-commits intel#7628 and intel#7668 that were previously reverted due to build
issues on RHEL systems. The issues were fixed by introducing
`SYCL_LIBDEVICE_GCC_TOOLCHAIN` cmake configuration option in intel#7771.
@aelovikov-intel aelovikov-intel temporarily deployed to aws April 21, 2023 18:48 — with GitHub Actions Inactive
@aelovikov-intel aelovikov-intel temporarily deployed to aws April 21, 2023 19:36 — with GitHub Actions Inactive
@aelovikov-intel aelovikov-intel temporarily deployed to aws April 21, 2023 21:50 — with GitHub Actions Inactive
@aelovikov-intel aelovikov-intel temporarily deployed to aws April 21, 2023 22:58 — with GitHub Actions Inactive
@aelovikov-intel aelovikov-intel temporarily deployed to aws April 24, 2023 15:39 — with GitHub Actions Inactive
@aelovikov-intel aelovikov-intel temporarily deployed to aws April 24, 2023 17:36 — with GitHub Actions Inactive
@aelovikov-intel
Copy link
Contributor Author

aelovikov-intel commented Apr 24, 2023

CUDA failure on SYCL :: Regression/same_unnamed_kernels.cpp is known - #9174.

"STOP AWS" task is just a cleanup and doesn't perform any checks, so no need to wait for it.

@intel/llvm-gatekeepers , this PR is ready.

@againull againull merged commit 1bcc9f0 into intel:sycl Apr 24, 2023
Pennycook added a commit to Pennycook/llvm that referenced this pull request Apr 24, 2023
@aelovikov-intel aelovikov-intel deleted the use-std branch May 1, 2023 16:13
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.

5 participants