From 65afa7e68413399fc73503414a9663d7fcaf54ee Mon Sep 17 00:00:00 2001 From: Deckard Date: Mon, 17 Aug 2026 15:59:38 +0000 Subject: [PATCH] style: rustfmt the two files #1116 left unformatted `Fast (Linux x86_64)` is red on main for every open PR because #1116 landed with rustfmt drift in `matmul.rs` and `x86_sgemm.rs`. Pure `cargo fmt --all` output, no semantic change. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- crates/onnx-runtime-ep-cpu/src/kernels/matmul.rs | 3 +-- crates/onnx-runtime-ep-cpu/src/kernels/x86_sgemm.rs | 6 +++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/crates/onnx-runtime-ep-cpu/src/kernels/matmul.rs b/crates/onnx-runtime-ep-cpu/src/kernels/matmul.rs index f853ce09fb..b1f1aace1b 100644 --- a/crates/onnx-runtime-ep-cpu/src/kernels/matmul.rs +++ b/crates/onnx-runtime-ep-cpu/src/kernels/matmul.rs @@ -4950,8 +4950,7 @@ mod tests { best[i] = best[i].min(t.elapsed().as_secs_f64()); } } - let times: Vec<(&str, f64)> = - avail.iter().copied().zip(best.iter().copied()).collect(); + let times: Vec<(&str, f64)> = avail.iter().copied().zip(best.iter().copied()).collect(); let g = |s: f64| flops / s / 1e9; let get = |k: &str| times.iter().find(|(n, _)| *n == k).map(|(_, s)| *s); let is_control = m >= 2; diff --git a/crates/onnx-runtime-ep-cpu/src/kernels/x86_sgemm.rs b/crates/onnx-runtime-ep-cpu/src/kernels/x86_sgemm.rs index 339683ce19..34912442ee 100644 --- a/crates/onnx-runtime-ep-cpu/src/kernels/x86_sgemm.rs +++ b/crates/onnx-runtime-ep-cpu/src/kernels/x86_sgemm.rs @@ -349,7 +349,11 @@ unsafe fn gemv_m1_strip( let cbase = c.add(j0); let mut jj = 0usize; while jj + 8 <= nc { - let acc = _mm256_fmadd_ps(av, _mm256_loadu_ps(rp.add(jj)), _mm256_loadu_ps(cbase.add(jj))); + let acc = _mm256_fmadd_ps( + av, + _mm256_loadu_ps(rp.add(jj)), + _mm256_loadu_ps(cbase.add(jj)), + ); _mm256_storeu_ps(cbase.add(jj), acc); jj += 8; }