Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions crates/onnx-runtime-ep-cpu/src/kernels/matmul.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 5 additions & 1 deletion crates/onnx-runtime-ep-cpu/src/kernels/x86_sgemm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Loading