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 064f332 commit bf3d580Copy full SHA for bf3d580
sycl/include/sycl/ext/oneapi/sub_group.hpp
@@ -774,6 +774,8 @@ struct sub_group {
774
#ifdef __SYCL_DEVICE_ONLY__
775
return lhs.get_group_id() == rhs.get_group_id();
776
#else
777
+ std::ignore = lhs;
778
+ std::ignore = rhs;
779
throw runtime_error("Sub-groups are not supported on host device.",
780
PI_ERROR_INVALID_DEVICE);
781
#endif
@@ -783,6 +785,8 @@ struct sub_group {
783
785
784
786
return !(lhs == rhs);
787
788
789
790
791
792
0 commit comments