Skip to content

Commit

Permalink
Fix to Striad
Browse files Browse the repository at this point in the history
  • Loading branch information
adityauj committed Sep 13, 2024
1 parent 2346304 commit 54e677e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ rustflags = [
"-C",
"target-cpu=native",
"-C",
"target-features=+evex512,+fma4,+fma,+avx512f,+avx512pf,+avx512vl,+avx512dq,+avx512cd,+avx512bw",
"-C",
"llvm-args=-ffast-math",
"-C",
"opt-level=3",
Expand Down
Binary file modified bench
Binary file not shown.
2 changes: 1 addition & 1 deletion src/kernels/striad.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub fn striad(a: &mut [f64], b: &[f64], c: &[f64], d: &[f64], n: usize) -> f64 {
a_slice
.iter_mut()
.enumerate()
.for_each(|(i, val)| *val = c[i].mul_add(d[i], b[i]))
.for_each(|(i, val)| *val = c[i] * d[i] + b[i])
});
s.elapsed().as_secs_f64()
}

0 comments on commit 54e677e

Please sign in to comment.