Skip to content

perf(ep-cpu): port MLAS's erf polynomial to AVX2, 3-28x on Erf and exact GELU - #1074

Merged
justinchuby merged 3 commits into
mainfrom
deckard/erf-avx2
Aug 16, 2026
Merged

justinchuby merged 3 commits into
mainfrom
deckard/erf-avx2

Merge remote-tracking branch 'origin/main' into deckard/erf-avx2

6d6e528
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Aug 16, 2026 in 0s

79.54% (+0.00%) compared to f85373c

View this Pull Request on Codecov

79.54% (+0.00%) compared to f85373c

Details

Codecov Report

❌ Patch coverage is 96.15385% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.54%. Comparing base (f85373c) to head (6d6e528).

Files with missing lines Patch % Lines
...nnx-runtime-ep-cpu/src/kernels/simd_activations.rs 96.66% 7 Missing and 1 partial ⚠️
...s/onnx-runtime-ep-cpu/src/kernels/contrib_fused.rs 88.88% 1 Missing ⚠️
...tes/onnx-runtime-ep-cpu/src/kernels/elementwise.rs 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1074   +/-   ##
=======================================
  Coverage   79.53%   79.54%           
=======================================
  Files         366      366           
  Lines      156827   156889   +62     
  Branches   156827   156889   +62     
=======================================
+ Hits       124737   124793   +56     
- Misses      27387    27396    +9     
+ Partials     4703     4700    -3     
Files with missing lines Coverage Δ
...rates/onnx-runtime-ep-cpu/src/assignment_policy.rs 98.56% <ø> (ø)
crates/onnx-runtime-ep-cpu/src/kernels/gelu.rs 88.23% <100.00%> (-0.16%) ⬇️
...s/onnx-runtime-ep-cpu/src/kernels/contrib_fused.rs 86.16% <88.88%> (-0.09%) ⬇️
...tes/onnx-runtime-ep-cpu/src/kernels/elementwise.rs 90.33% <50.00%> (-0.98%) ⬇️
...nnx-runtime-ep-cpu/src/kernels/simd_activations.rs 98.68% <96.66%> (-0.65%) ⬇️

... and 6 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.