Skip to content

threads: fix msvc build without openmp#9615

Merged
max-krasnyansky merged 1 commit intoggml-org:masterfrom
CodeLinaro:fix-msvc-build
Sep 24, 2024
Merged

threads: fix msvc build without openmp#9615
max-krasnyansky merged 1 commit intoggml-org:masterfrom
CodeLinaro:fix-msvc-build

Conversation

@max-krasnyansky
Copy link
Copy Markdown
Member

We're missing atomic_thread_fence() in MSVC builds when openmp is disabled.

We're missing atomic_thread_fence() in MSVC builds when openmp is disabled.
@github-actions github-actions Bot added the ggml changes relating to the ggml tensor library for machine learning label Sep 23, 2024
@max-krasnyansky
Copy link
Copy Markdown
Member Author

@giladgd
Can you please try this? It should fix the issue you were seeing with MSVC builds.
I realized that our CI didn't catch it because all MSVC builds have OpenMP enabled
in which case we don't use those atomic_xyz functions.

@max-krasnyansky max-krasnyansky merged commit c087b6f into ggml-org:master Sep 24, 2024
@giladgd
Copy link
Copy Markdown
Contributor

giladgd commented Sep 24, 2024

@max-krasnyansky I just tested it, and it now compiles as expected.
Thanks for the quick fix :)

dsx1986 pushed a commit to dsx1986/llama.cpp that referenced this pull request Oct 29, 2024
We're missing atomic_thread_fence() in MSVC builds when openmp is disabled.
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 15, 2024
We're missing atomic_thread_fence() in MSVC builds when openmp is disabled.
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 18, 2024
We're missing atomic_thread_fence() in MSVC builds when openmp is disabled.
Seunghhon pushed a commit to Seunghhon/llama.cpp that referenced this pull request Apr 26, 2026
We're missing atomic_thread_fence() in MSVC builds when openmp is disabled.
ljubomirj pushed a commit to ljubomirj/llama.cpp that referenced this pull request May 6, 2026
We're missing atomic_thread_fence() in MSVC builds when openmp is disabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ggml changes relating to the ggml tensor library for machine learning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants