Skip to content

Commit

Permalink
Bump pulp from 0.18.22 to 0.21.4 (#13660)
Browse files Browse the repository at this point in the history
* Bump pulp from 0.18.22 to 0.21.4

Bumps [pulp](https://github.com/sarah-ek/pulp) from 0.18.22 to 0.21.4.
- [Commits](https://github.com/sarah-ek/pulp/commits/pulp-v0.21.4)

---
updated-dependencies:
- dependency-name: pulp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Fix renamed functions

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jake Lishman <[email protected]>
  • Loading branch information
dependabot[bot] and jakelishman authored Jan 22, 2025
1 parent e5165b2 commit ff57b23
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/accelerate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ version = "0.2.0"
features = ["ndarray"]

[dependencies.pulp]
version = "0.18.22"
version = "0.21.4"
features = ["macro"]

[features]
Expand Down
4 changes: 2 additions & 2 deletions crates/accelerate/src/pauli_exp_val.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ const PARALLEL_THRESHOLD: usize = 19;
#[pulp::with_simd(fast_sum = pulp::Arch::new())]
#[inline(always)]
pub fn fast_sum_with_simd<S: Simd>(simd: S, values: &[f64]) -> f64 {
let (head, tail) = S::f64s_as_simd(values);
let (head, tail) = S::as_simd_f64s(values);
let sum: f64 = head
.iter()
.fold(0., |acc, chunk| acc + simd.f64s_reduce_sum(*chunk));
.fold(0., |acc, chunk| acc + simd.reduce_sum_f64s(*chunk));
sum + tail.iter().sum::<f64>()
}

Expand Down

0 comments on commit ff57b23

Please sign in to comment.