From ba80449210592aa7e361d02066b683fe31f88792 Mon Sep 17 00:00:00 2001 From: Adrian Seyboldt Date: Thu, 28 Nov 2024 12:23:01 +0100 Subject: [PATCH] test: Fix parallel test in simd mode --- src/sampler.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sampler.rs b/src/sampler.rs index 7481d0b..b112666 100644 --- a/src/sampler.rs +++ b/src/sampler.rs @@ -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()); }