Skip to content

Commit

Permalink
test: Fix parallel test in simd mode
Browse files Browse the repository at this point in the history
  • Loading branch information
aseyboldt committed Nov 28, 2024
1 parent 298121d commit ba80449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sampler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ pub mod test_logps {
for (p, g) in pos.chunks_exact(4).zip(grad.chunks_exact_mut(4)) {
let p = f64x4::from_slice(p);
let val = mu_splat - p;
logp = val * val * f64x4::splat(0.5);
logp -= val * val * f64x4::splat(0.5);
g.copy_from_slice(&val.to_array());
}

Expand Down

0 comments on commit ba80449

Please sign in to comment.