Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions sycl/test-e2e/SubGroup/barrier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ void check(queue &Queue, size_t G = 240, size_t L = 60) {
host_accessor sgsizeacc(sgsizebuf);

size_t sg_size = sgsizeacc[0];
if (L % sg_size != 0) {
std::cout << "Sub group size doesn't divide local size, skipping.\n";
return;
}
int WGid = -1, SGid = 0;
T add = 0;
for (int j = 0; j < G; j++) {
Expand Down
6 changes: 5 additions & 1 deletion sycl/test-e2e/SubGroup/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ void check(queue &Queue, unsigned int G, unsigned int L) {
host_accessor syclacc(syclbuf);
host_accessor sgsizeacc(sgsizebuf);
unsigned int sg_size = sgsizeacc[0];
unsigned int num_sg = L / sg_size + (L % sg_size ? 1 : 0);
if (L % sg_size != 0) {
std::cout << "Sub group size doesn't divide local size, skipping.\n";
return;
}
unsigned int num_sg = L / sg_size;
for (int j = 0; j < G; j++) {
unsigned int group_id = j % L / sg_size;
unsigned int local_range =
Expand Down
Loading