From 890e467ef73bd0fa3b83e41b3906a87c5ca8604e Mon Sep 17 00:00:00 2001 From: animetosho Date: Tue, 6 Aug 2024 12:20:14 +1000 Subject: [PATCH] Disable AVX512 single buffer MD5 on Zen5 family --- hasher/hasher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hasher/hasher.cpp b/hasher/hasher.cpp index 41046d1..860acf9 100644 --- a/hasher/hasher.cpp +++ b/hasher/hasher.cpp @@ -39,7 +39,7 @@ struct HasherCpuCap { isSmallCore = CPU_FAMMDL_IS_AMDCAT(family, model); } - isVecRotSlow = (family == 0xaf); // vector rotate has 2 cycle latency on Zen4 + isVecRotSlow = (family == 0xaf || family == 0xbf); // vector rotate has 2 cycle latency on Zen4/5 hasAVX = false; hasBMI1 = false; hasAVX2 = false; hasAVX512F = false; hasAVX512VLBW = false; #if !defined(_MSC_VER) || _MSC_VER >= 1600