From 712596cd5e148bf1bf08dbcd6feb46982357583b Mon Sep 17 00:00:00 2001 From: conrad Date: Sat, 30 Aug 2025 20:37:17 +1000 Subject: [PATCH] add TODO --- include/armadillo_bits/mul_gemm.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/armadillo_bits/mul_gemm.hpp b/include/armadillo_bits/mul_gemm.hpp index 099d0e14..f37e6863 100644 --- a/include/armadillo_bits/mul_gemm.hpp +++ b/include/armadillo_bits/mul_gemm.hpp @@ -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) )