This commit is contained in:
conrad
2025-08-30 20:37:17 +10:00
parent 7ee11c94ec
commit 712596cd5e
+2
View File
@@ -237,6 +237,8 @@ struct gemm_emul_large
#if defined(ARMA_USE_OPENMP)
{
// TODO: replace with more sophisticated threshold mechanism
constexpr uword threshold = uword(30);
if( (A_n_rows >= threshold) && (A_n_cols >= threshold) && (B_n_rows >= threshold) && (B_n_cols >= threshold) && (mp_thread_limit::in_parallel() == false) )