fix(rocRAND): add linker export allowlist on Linux #14414
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 190 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.314
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #14414"
general
weight: 0.35
amd-jmahovsky
JIRA ID : AIPRIMS-246
Motivation
librocrand.soexported 5,380 dynamic symbols, of which only 38 are public API. The rest leaked because nothing enforced the export set at link time.Technical Details
library\rocrand.mapwith ROCRAND_1 (37 public symbols) and ROCRAND_PRIVATE_1 (rocrand_h_mt19937_jump).LINKER:--version-scriptfor shared, non-Windows builds only..deffile.ROCRANDAPI(__declspec(dllexport)) already limits the DLL to the same 38 symbols. A.defcan only add exports, and the plainrocrand_h_mt19937_jumpname would fail to link (C++ linkage, mangled on Windows).Test Plan
nm -D --defined-only), and check symbol versions (readelf -V,readelf --dyn-syms).ROCRANDAPIdeclarations equals the map (keeps Windows and Linux consistent).ctest.dumpbin /exports rocrand.dllbuilt without a.def.Test Result
@@ROCRAND_1, 1@@ROCRAND_PRIVATE_1).ctest: rocRAND 53/53, hipRAND 5/5 passed.rocrand.dllexports exactly the same 38 symbols.Submission Checklist