cmake: Extract SPIRV-Tools discovery into LinkSPIRVTools.cmake #2900
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.33) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 138 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
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.295
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2900"
general
weight: 0.35
svenvh
test_conformance/extensions/cl_khr_cooperative_matrix/CMakeLists.txtpreviously searched for SPIRV-Tools viapkg_search_modulefirst, ignoring CMakeSPIRV-Toolstargets already defined in the build (e.g. when OpenCL-CTS is included viaadd_subdirectoryin a parent project) and preferring pkg-config over CMake package targets.Extract SPIRV-Tools discovery into
test_common/LinkSPIRVTools.cmakeincluded from the top-levelCMakeLists.txt, matching the structure andCLConform_SPIRV_TOOLS_TARGETinterface proposed in #2782 so it can be shared cleanly:Reuse already-defined
SPIRV-Tools-static,SPIRV-Tools, orSPIRV-Tools-sharedtargets without invokingfind_package.Otherwise try
find_package(SPIRV-Tools CONFIG QUIET)(supportingSPIRV_TOOLS_TARGET_DIR) before falling back topkg_search_module(SPIRV_TOOLS QUIET IMPORTED_TARGET SPIRV-Tools).cl_khr_cooperative_matrixcontinues to be skipped when SPIRV-Tools is not available, and link${CLConform_SPIRV_TOOLS_TARGET}directly without manual include or link flag variables.