8000 ggml-cpu : set openmp wait time if not set by slaren · Pull Request #13758 · ggml-org/llama.cpp · GitHub
[go: up one dir, main page]

Skip to content

ggml-cpu : set openmp wait time if not set #13758

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 24, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
ggml-cpu : set openmp wait policy to active if not set
  • Loading branch information
slaren committed May 24, 2025
commit 1c55fd6b0ed50616aac4a21a6187b871abc83e66
6 changes: 6 additions & 0 deletions ggml/src/ggml-cpu/ggml-cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -3484,6 +3484,12 @@ void ggml_cpu_init(void) {
const uint64_t t_end = ggml_time_us(); UNUSED(t_end);

GGML_PRINT_DEBUG("%s: GELU, Quick GELU, SILU and EXP tables initialized in %f ms\n", __func__, (t_end - t_start)/1000.0);

#ifdef GGML_USE_OPENMP
if (!getenv("OMP_WAIT_POLICY")) {
putenv("OMP_WAIT_POLICY=active");
}
#endif
}

#if defined(__ARM_ARCH)
Expand Down
Loading
0