Support GPUCompiler 2 #3616
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.43) × (1 − Review Confidence (0.64)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 380 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 70%
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.356
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3616"
general
weight: 0.35
maleadt
Supports GPUCompiler 2 next to GPUCompiler 1, so Reactant works with CUDA.jl 6.4.1. The LLVM.jl 10 part is in #3384, which waits for Enzyme (EnzymeAD/Enzyme.jl#3741).
Compat
| Package | Before | After |
|---|---|---|
| GPUCompiler |
1.17|1.17, 2.9 - 2.10|| CUDA |
5.11.3, 6.2|5.11.3, ~6.2, 6.4.1|| CompilerCaching (weak dep) | – |
0.5.3|GPUCompiler 2.11+ needs LLVM.jl 10. CompilerCaching is only a weak dependency: GPUCompiler 1 doesn't pull it in, so its compat only applies with GPUCompiler 2. CUDA.jl 6.3 and 6.4.0 lack the
compile_and_launchmethod overlaid here.Commits
Core.invokewith Reactant's interpreter.@invoketargets were inferred natively, without the overlays, and the optimizer could inline that native code into Reactant's (the LU failures incore/ops). GPUCompiler 1 hid this by always re-inferring.Reactant.GPUCOMPILER_2selects the code for each version. Where only one version defines a function, the code checks for that function instead.gv_to_valuemap. Native compilation keeps them symbolic and reads the addresses from the records. The CUDA extension bakes them into the IR, since it links the IR into MLIR.resolve_dynamic_invokes, new in CompilerCaching 0.5.2, which also fixes native code instances being filled in with Reactant's code).collect_foreign_callees, new in CompilerCaching 0.5.3). Without it, tracingsinproduced 1.7 MB of IR including Base's printing code, which also broke linking ReactantCUDAExt on Windows (undefined symbol: jl_boxed_uint8_cache).showmethods of later-loaded packages exist (test/integration/staticarrays.jl).@cuda. CUDA.jl 6.4.1 compiles and launches behindcompile_and_launch, which is now overlaid.Apart from the
Core.invokefix, GPUCompiler 1 takes the same code paths as onmain.Testing
RTX 5080, Julia 1.12, on
mainfrom 2026-11-04:core,nnandintegrationpass (7556 tests), exceptcore/control_flow.jl:500(-1.8e-15 ≈ 0.0on the GPU), which fails the same way without this PR's changes.core/array_ops,core/ops,core/map_reduction,nnandintegrationpass.---
This PR is AI-assisted.