Skip to content

Commit 00ab727

Browse files
[NFC][SYCL] Include sycl/feature_test.hpp in sycl/detail/core.hpp (#13839)
Non-functional because it has been there transitively from `sycl/ext/oneapi/sub_group_mask.hpp`. Make that inclusion explicit so that it would remain there in future even if we will decouple that extension out of "core".
1 parent cef0bdb commit 00ab727

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

sycl/include/sycl/detail/core.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,8 @@
2121
#include <sycl/accessor.hpp>
2222
#include <sycl/buffer.hpp>
2323
#include <sycl/queue.hpp>
24+
25+
// TODO: We assume that this is the property of a vendor's implementation and
26+
// can define feature macros even if the particular header file implementing it
27+
// (if such exists) isn't included.
28+
#include <sycl/feature_test.hpp>

sycl/include/sycl/sycl.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include <sycl/event.hpp>
3131
#include <sycl/exception.hpp>
3232
#include <sycl/ext/oneapi/experimental/group_sort.hpp>
33-
#include <sycl/feature_test.hpp>
3433
#include <sycl/functional.hpp>
3534
#include <sycl/group.hpp>
3635
#include <sycl/group_algorithm.hpp>

0 commit comments

Comments
 (0)