Skip to content

Commit 5ddbd18

Browse files
committed
enable openmp by default
1 parent 377bc78 commit 5ddbd18

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ set(LLAMA_METAL_MACOSX_VERSION_MIN "" CACHE STRING
125125
set(LLAMA_METAL_STD "" CACHE STRING "llama: metal standard version (-std flag)")
126126
option(LLAMA_KOMPUTE "llama: use Kompute" OFF)
127127
option(LLAMA_RPC "llama: use RPC" OFF)
128-
option(LLAMA_OPENMP "llama: use OpenMP" OFF)
128+
option(LLAMA_OPENMP "llama: use OpenMP" ON)
129129
option(LLAMA_SYCL "llama: use SYCL" OFF)
130130
option(LLAMA_SYCL_F16 "llama: use 16 bit floats for sycl calculations" OFF)
131131
set(LLAMA_SYCL_TARGET "INTEL" CACHE STRING "llama: sycl target device")

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,11 +400,11 @@ ifndef LLAMA_NO_ACCELERATE
400400
endif
401401
endif # LLAMA_NO_ACCELERATE
402402

403-
ifdef LLAMA_OPENMP
403+
ifndef LLAMA_NO_OPENMP
404404
MK_CPPFLAGS += -DGGML_USE_OPENMP
405405
MK_CFLAGS += -fopenmp
406406
MK_CXXFLAGS += -fopenmp
407-
endif # LLAMA_OPENMP
407+
endif # LLAMA_NO_OPENMP
408408

409409
ifdef LLAMA_OPENBLAS
410410
MK_CPPFLAGS += -DGGML_USE_OPENBLAS $(shell pkg-config --cflags-only-I openblas)

0 commit comments

Comments
 (0)