We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65f6b2e commit 3fd9a98Copy full SHA for 3fd9a98
sycl/include/CL/sycl/sub_group.hpp
@@ -16,5 +16,16 @@ namespace sycl {
16
using ext::oneapi::sub_group;
17
// TODO move the entire sub_group class implementation to this file once
18
// breaking changes are allowed.
19
+
20
+namespace experimental {
21
+inline sub_group this_sub_group() {
22
+#ifdef __SYCL_DEVICE_ONLY__
23
+ return sub_group();
24
+#else
25
+ throw runtime_error("Sub-groups are not supported on host device.",
26
+ PI_INVALID_DEVICE);
27
+#endif
28
+}
29
+} // namespace experimental
30
} // namespace sycl
31
} // __SYCL_INLINE_NAMESPACE(cl)
0 commit comments