|
9 | 9 |
|
10 | 10 | #include <sycl/detail/helpers.hpp> // for Builder
|
11 | 11 | #include <sycl/detail/memcpy.hpp> // detail::memcpy
|
12 |
| -#include <sycl/exception.hpp> // for errc, exception |
13 |
| -#include <sycl/feature_test.hpp> // for SYCL_EXT_ONEAPI_SUB_GROUP_MASK |
14 |
| -#include <sycl/id.hpp> // for id |
15 |
| -#include <sycl/marray.hpp> // for marray |
| 12 | +#include <sycl/detail/spirv.hpp> |
| 13 | +#include <sycl/feature_test.hpp> // for SYCL_EXT_ONEAPI_SUB_GROUP_MASK |
| 14 | +#include <sycl/id.hpp> // for id |
| 15 | +#include <sycl/marray.hpp> // for marray |
16 | 16 | #include <sycl/sub_group.hpp>
|
17 | 17 | #include <sycl/vector.hpp> // for vec
|
18 | 18 |
|
@@ -378,19 +378,11 @@ group_ballot([[maybe_unused]] Group g, [[maybe_unused]] bool predicate) {
|
378 | 378 | #ifdef __SYCL_DEVICE_ONLY__
|
379 | 379 | return sycl::detail::commonGroupBallotImpl(g, predicate);
|
380 | 380 | #else
|
381 |
| - throw exception{errc::feature_not_supported, |
382 |
| - "Sub-group mask is not supported on host device"}; |
| 381 | + // Groups are not user-constructible, this call should not be reachable from |
| 382 | + // host and therefore we do nothing here. |
383 | 383 | #endif
|
384 | 384 | }
|
385 | 385 |
|
386 | 386 | } // namespace ext::oneapi
|
387 | 387 | } // namespace _V1
|
388 | 388 | } // namespace sycl
|
389 |
| - |
390 |
| -// We have a cyclic dependency with |
391 |
| -// sub_group_mask.hpp |
392 |
| -// detail/spirv.hpp |
393 |
| -// non_uniform_groups.hpp |
394 |
| -// "Break" it by including this at the end (instead of beginning). Ideally, we |
395 |
| -// should refactor this somehow... |
396 |
| -#include <sycl/detail/spirv.hpp> |
0 commit comments