-
Notifications
You must be signed in to change notification settings - Fork 796
[SYCL] Simplify check whether a header file is available for inclusion #19759
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
group_interface extension
steffenlarsen
left a comment
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.
While you're at it, could we apply the same to all other uses of defined(__has_include)? I see it in sycl/source/detail/os_util.cpp and sycl/include/syclcompat/kernel.hpp.
Sure |
group_interface extension|
@intel/syclcompat-lib-reviewers Can you please review? |
|
@intel/llvm-gatekeepers please consider merging |
__has_includeis part of the C++ standard since C++17: https://en.cppreference.com/w/cpp/preprocessor/includeWe require C++17 if
sycl.hppis included, so we can use__has_includewithout extra checks for its presence.