From c9eab4087869c560875f6c472519a05510da4928 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen <4643818-rmlarsen1@users.noreply.gitlab.com> Date: Wed, 18 Feb 2026 20:26:28 -0800 Subject: [PATCH] Fix unused variable warning for phys_l1 on non-AVX512 builds libeigen/eigen!2154 Co-authored-by: Rasmus Munk Larsen --- Eigen/src/Core/products/GeneralBlockPanelKernel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/products/GeneralBlockPanelKernel.h b/Eigen/src/Core/products/GeneralBlockPanelKernel.h index 5352f8656..078a89632 100644 --- a/Eigen/src/Core/products/GeneralBlockPanelKernel.h +++ b/Eigen/src/Core/products/GeneralBlockPanelKernel.h @@ -125,8 +125,8 @@ void evaluateProductBlockingSizesHeuristic(Index& k, Index& m, Index& n, Index n // at the register level. This small horizontal panel has to stay within L1 cache. std::ptrdiff_t l1, l2, l3; manage_caching_sizes(GetAction, &l1, &l2, &l3); - const std::ptrdiff_t phys_l1 = l1; #ifdef EIGEN_VECTORIZE_AVX512 + const std::ptrdiff_t phys_l1 = l1; // We need to find a rationale for that, but without this adjustment, // performance with AVX512 is pretty bad, like -20% slower. // One reason is that with increasing packet-size, the blocking size k