google / uVkCompute

A micro Vulkan compute pipeline and a collection of benchmarking compute shaders
Apache License 2.0
224 stars 38 forks source link

subgroup_arithmetic benchmark fails verification due to unexpected gl_SubgroupSize #45

Closed dneto0 closed 11 months ago

dneto0 commented 11 months ago

Similar to #43 but for subgroup_arithmetic.

uVkCompute/benchmarks/subgroup/subgroup_arithmetic_main.cc:184: check error: destination buffer element #16 has incorrect value: expected to be 1 but found 32

dneto0 commented 11 months ago

This one is a bit more tricky to fix. We have to distinguish between the proposed subgroup size from subgroupSize device property vs. the dynamically computed one. The simplest thing to do is to return the dynamically computed subgroup size back out through the output buffer, then use that.