Fix unused variable warning for phys_l1 on non-AVX512 builds

libeigen/eigen!2154

Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
This commit is contained in:
Rasmus Munk Larsen
2026-02-18 20:26:28 -08:00
parent 3c86a013b1
commit c9eab40878

View File

@@ -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