Skip to content

Commit 64397af

Browse files
authored
Change OpenMP runtime request for MSVC to llvm
1 parent 543f587 commit 64397af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ggml/src/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,10 @@ if (GGML_OPENMP)
164164

165165
# On MSVC request the experimental OpenMP runtime (exposes newer APIs)
166166
if(MSVC)
167-
message(STATUS "MSVC detected — requesting /openmp:experimental")
167+
message(STATUS "MSVC detected — requesting /openmp:llvm")
168168
# Apply to C and C++ compile commands (global fallback)
169-
add_compile_options($<$<COMPILE_LANGUAGE:C>:/openmp:experimental>)
170-
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:/openmp:experimental>)
169+
add_compile_options($<$<COMPILE_LANGUAGE:C>:/openmp:llvm>)
170+
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:/openmp:llvm>)
171171
# (Optional) also export to linker flags if you need; usually not necessary
172172
endif()
173173

0 commit comments

Comments
 (0)