-
Notifications
You must be signed in to change notification settings - Fork 789
[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
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same, prolly revert
Thanks for the quick review! I noticed those as well, but I think it makes sense to keep the changes. |
ok sounds good, no strong opinion |
f2aa008
to
37bce59
Compare
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.
37bce59
to
8d1f841
Compare
CUDA failure on "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. |
Required after intel#9162.
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.