fix(spmd): export communicator member template instantiations on Windows #4022
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 260 lines diff across 3 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.333
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #4022"
general
weight: 0.35
Alexandr-Solovev
Description
//cpp/oneapi/dal:test_communicator_hostfails to link againstonedal.dllin the Windows Bazelrelease_dynamicnightly legs, with both vc2026 and icx (EC nightlies of 11-12 and 11-13):Cause:
communicatoris declaredONEDAL_EXPORT. On Windows, though, a class template's dllexport does not reach explicit instantiations of its member templates. As a result, neither the Make nor the Bazelonedal.4.dllexportsbcast<D>(const array<D>&)and the otherarray<D>overloads; they export only thebyte_t*overloads. The 2026.2 Make and Bazel packages were both checked.Fix: mark the explicit instantiations
ONEDAL_EXPORT.gemm_dpc.cppandtable/homogen.cppalready use the same form.| Check | Before | After |
|---|---|---|
| Minimal repro,
clang++ -target x86_64-pc-windows-msvc:/EXPORTofcomm<none>::bcast<float>| missing | present ||
communicator.cpp, g++-fvisibility=hidden: exported symbols | — | identical to before ||
pre-commit(clang-format, editorconfig) | — | passed |Linux is unchanged. Static builds are unchanged because
ONEDAL_EXPORTis empty there. On Windows,onedal.dllgains the exports for thenoneandusminstantiations, which is additive to the ABI.Not yet verified on a Windows build: the next EC nightly, or the Azure Windows Bazel job, should show
test_communicator_hostlinking.---
Checklist:
🤖 Generated with Claude Code