Report why the host CUDA version could not be read #2113
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 219 lines diff across 2 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.323
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2113"
general
weight: 0.35
tariq1890
Description
getEnableCUDACompatHookOptionsinpkg/nvcdi/lib-csv.goformats the wrong variable:retis assigned once, fromInit(), and the check right below it returns early on anything butnvml.SUCCESS. So by the time the CUDA-version call fails,retisSUCCESSand the message readswhile
err, the only thing that says what went wrong, is dropped.getCUDAVersionStringreturns thenvml.ReturnfromSystemGetCudaDriverVersionas its error, so what is lost is also the value a caller would match on.Wrapping
errwith%wmatches the rest of the file, which uses%win nine other places.Checklist
make test)make lint) — golangci-lint is not installed here;gofmt -s -lon the package is cleanTesting
TestGetEnableCUDACompatHookOptionsReportsWhyTheVersionFaileddrives the function with amock.InterfacewhoseInitsucceeds and whoseSystemGetCudaDriverVersionreturnsERROR_NOT_SUPPORTED, then asserts the error names that and notSUCCESS. On current main:darwin/arm64, Go 1.27.1, no GPU.