Add support for cl_khr_subgroups and cl_khr_subgroup_extended_types #938
All Vouch review confidence checks passed
Residual risk 0.05 = Change Risk (0.38) × (1 − Review Confidence (0.87)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.38 · 132 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.83 · 5 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.293
Real PR Conversation Timeline
7 items
Depends on https://github.com/google/clspv/pull/1755
m_features_subgroup_uniform_control_flow.sType =
What was the issue with 0.0.0? Either way it's made up but 0.0.0 makes it more obvious.
Approved
Approved these changes.
Sorry about that, no real issue with 0.0.0, I just didn't remember why it was 0.0.0 when touching that loop, changed it, and forgot to double-check before pushing. I've opened a quick follow-up PR to switch it back to 0.0.0: https://github.com/kpet/clvk/pull/945.
No worries. Thanks for the PR.
kpet
rjodinchr
Initialize the SPIR-V target environment prior to building the device extension list, and require
VK_SHADER_STAGE_COMPUTE_BITinVkPhysicalDeviceSubgroupProperties::supportedStagesfor subgroup support.Expose
cl_khr_subgroup_extended_typeson Vulkan 1.2+ devices that support basic, arithmetic, ballot, and vote subgroup operations along with 8-bit, 16-bit, and 64-bit integer types and 16-bit SSBO access.Add a
subgroup_independent_forward_progressdevice property (defaulting tofalse) to exposecl_khr_subgroupswhen enabled on capable devices, and reportCL_DEVICE_SUB_GROUP_INDEPENDENT_FORWARD_PROGRESSinclGetDeviceInfowhen either the property orcl_khr_subgroupsis enabled.Enable
VK_KHR_shader_subgroup_uniform_control_flowwhen supported and pass-subgroup-uniform-control-flowtoclspv.Fix
config.device_extensionsentries to zero-initialize and null-terminatecl_name_version::name, set version1.0.0, and avoid duplicates.Fix
clGetKernelSubGroupInfoconformance: allowdevice == nullptrfor single-device contexts, validate thatdevicebelongs to the kernel's context and supports subgroups, implementCL_KERNEL_COMPILE_NUM_SUB_GROUPS, and fix parameter validation and return size / required subgroup size handling forCL_KERNEL_LOCAL_SIZE_FOR_SUB_GROUP_COUNT.