From 288db7c25b8f2a32baf6882e2ff24a8bc2cdf184 Mon Sep 17 00:00:00 2001 From: Pantelis Antoniou Date: Fri, 1 Sep 2023 18:58:07 +0300 Subject: [PATCH] dimensioning Signed-off-by: Pantelis Antoniou --- src/blake3/blake3.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/blake3/blake3.c b/src/blake3/blake3.c index b12b3431..c9b55eec 100644 --- a/src/blake3/blake3.c +++ b/src/blake3/blake3.c @@ -744,7 +744,8 @@ static size_t blake3_compress_subtree_wide_panto(blake3_host_state *hs, const ui simd_degree_or_2 = simd_degree < 2 ? 2 : simd_degree; /* for multithreading to be worth it has to be this multiple of simd degree */ - mt_degree = simd_degree * 2; + // mt_degree = simd_degree * 2; + mt_degree = simd_degree * 8; // Note that the single chunk case does *not* bump the SIMD degree up to 2 // when it is 1. If this implementation adds multi-threading in the future, @@ -1390,7 +1391,7 @@ int blake3_host_state_init(blake3_host_state *hs) unsigned int num_threads, i; int rc; - num_threads = 12; + num_threads = 18; /* maximum number of threads for now */ if (num_threads > 64)