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.
2 parents beb3c57 + d2a0a0a commit cdd75dfCopy full SHA for cdd75df
SYCL/SubGroupMask/GroupSize.cpp
@@ -82,9 +82,25 @@ int main() {
82
#ifdef SYCL_EXT_ONEAPI_SUB_GROUP_MASK
83
queue Queue;
84
85
- test<8>(Queue);
86
- test<16>(Queue);
87
- test<32>(Queue);
+ for (const auto &x :
+ Queue.get_device().get_info<info::device::sub_group_sizes>()) {
+
88
+ switch (x) {
89
+ case 8:
90
+ test<8>(Queue);
91
+ break;
92
+ case 16:
93
+ test<16>(Queue);
94
95
+ case 32:
96
+ test<32>(Queue);
97
98
+ default:
99
+ std::cout << "Sub group size of " << x << " supported, but not tested."
100
+ << std::endl;
101
102
+ }
103
104
105
std::cout << "Test passed." << std::endl;
106
#else
0 commit comments