Skip to content

Commit bf3d580

Browse files
[SYCL][NFC] Fix unused variables warning in sub_group extension (#9998)
Fixes post-commit after 064f332
1 parent 064f332 commit bf3d580

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sycl/include/sycl/ext/oneapi/sub_group.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,8 @@ struct sub_group {
774774
#ifdef __SYCL_DEVICE_ONLY__
775775
return lhs.get_group_id() == rhs.get_group_id();
776776
#else
777+
std::ignore = lhs;
778+
std::ignore = rhs;
777779
throw runtime_error("Sub-groups are not supported on host device.",
778780
PI_ERROR_INVALID_DEVICE);
779781
#endif
@@ -783,6 +785,8 @@ struct sub_group {
783785
#ifdef __SYCL_DEVICE_ONLY__
784786
return !(lhs == rhs);
785787
#else
788+
std::ignore = lhs;
789+
std::ignore = rhs;
786790
throw runtime_error("Sub-groups are not supported on host device.",
787791
PI_ERROR_INVALID_DEVICE);
788792
#endif

0 commit comments

Comments
 (0)