Skip to content

Commit 2af9015

Browse files
committed
Add VK_Workgroup_Zoo convergence test with dynamic for loop
A different number of iterations per thread
1 parent b7a40e6 commit 2af9015

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

util/test/demos/vk/vk_subgroup_zoo.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,14 @@ void main()
258258
}
259259
data.x = subgroupAdd(id);
260260
}
261+
else if(IsTest(8))
262+
{
263+
// Loops with different number of iterations per thread
264+
for (uint i = 0; i < id; i++)
265+
{
266+
data.x += subgroupAdd(id);
267+
}
268+
}
261269
SetOuput(data);
262270
}
263271

0 commit comments

Comments
 (0)