-
Notifications
You must be signed in to change notification settings - Fork 768
[NFC][SYCL] Switch to std::enable_if #7628
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
@@ -20,9 +20,6 @@ namespace detail { | |||
// Type traits identical to those in std in newer versions. Can be removed when | |||
// SYCL requires a newer version of the C++ standard. | |||
// C++14 | |||
template <bool B, class T = void> |
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.
sycl::detail::enable_if
is removed here.
No "#include <sycl/include/sycl/detail/stl_type_traits.hpp>" -> "#include <type_traits>"? I suppose this type of transformation is not automated. Right? |
I plan to switch different utilities one by one. Once all uses are cleaned up, I'll remove the header.
I don't understand the question. What I did is
|
Right. I assume that some files are using only |
I don't have experience with it and setting it up might take more time than removing the header completely :) |
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
Could you please fix RHEL build failure, seems relate: http://icl-jenkins2.sc.intel.com:8080/blue/organizations/jenkins/SYCL_CI%2Fintel%2FBuild_PR_RHEL/detail/Build_PR_RHEL/3931/pipeline/152 |
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.
cmake changes looks ok
Should fix "/verify with" in llvm-test-suite. The issue was introduced in intel#7628.
Should fix "/verify with" in llvm-test-suite. The issue was introduced in #7628.
This PR has introduced a build failure due to missing includes, ping @bader @pvchupin
|
@@ -32,6 +32,15 @@ set(compile_opts | |||
-sycl-std=2020 | |||
) | |||
|
|||
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") |
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.
What was the reason for this change @aelovikov-intel ? When using ccache, this gcc_install_dir will resolve to /usr/lib/ccache
, which means that compilation fails due to missing headers
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.
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.
Our testing on a system with older libc where gcc installation is in non-default location (as default is too old).
If ccache was being used, this cmake check would set `gcc_bin_dir` to `/usr/lib/ccache` and `gcc_install_dir` to `/usr/lib`. This would cause build failures due to missing headers. See PR #7628 and comment #7628 (comment)
This reverts commit 74833b2. We found issues when trying to build the project on RHEL7 systems that we need in our OS support matrix.
…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.
No description provided.