Skip to content

Commit

Permalink
dimensioning
Browse files Browse the repository at this point in the history
Signed-off-by: Pantelis Antoniou <[email protected]>
  • Loading branch information
pantoniou committed Sep 1, 2023
1 parent 2582083 commit 288db7c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/blake3/blake3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 288db7c

Please sign in to comment.