[CPU] Fix macOS/Apple Silicon hang by enabling OpenMP in the build (#46769)

Signed-off-by: mgoin <mgoin64@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Michael Goin
2026-06-26 14:32:21 -04:00
committed by GitHub
co-authored by Claude Opus 4.8
parent 3d3b96488f
commit c6554f321c
10 changed files with 49 additions and 15 deletions
+1 -1
View File
@@ -251,7 +251,7 @@ void mla_decode_kvcache_cpu_impl(
constexpr int QK_NUM_ELEM = qk_vec_type::VEC_ELEM_NUM;
// shared across threads
const int max_threads = omp_get_max_threads();
const int max_threads = cpu_utils::get_max_threads();
const int acc_out_nbytes =
max_threads * num_heads * V_HEAD_DIM * sizeof(float);
float* acc_out = static_cast<float*>(std::aligned_alloc(64, acc_out_nbytes));