From f1772c9973f89532f61ecf6a9956aa5b1aeb4237 Mon Sep 17 00:00:00 2001 From: slaren Date: Thu, 30 May 2024 11:46:28 +0200 Subject: [PATCH] disable openmp on macos --- CMakeLists.txt | 2 +- Makefile | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5355adaa4416b..0bfa2d4c37838 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -298,7 +298,7 @@ endif() if (LLAMA_OPENMP) find_package(OpenMP) - if(OpenMP_FOUND) + if (OpenMP_FOUND) message(STATUS "OpenMP found") add_compile_definitions(GGML_USE_OPENMP) set(LLAMA_EXTRA_LIBS ${LLAMA_EXTRA_LIBS} OpenMP::OpenMP_C OpenMP::OpenMP_CXX) diff --git a/Makefile b/Makefile index 6ca9ea4b6b52e..39ba2eb9cfff0 100644 --- a/Makefile +++ b/Makefile @@ -57,6 +57,8 @@ ifeq ($(UNAME_S),Darwin) LLAMA_METAL := 1 endif + LLAMA_NO_OPENMP := 1 + ifneq ($(UNAME_P),arm) SYSCTL_M := $(shell sysctl -n hw.optional.arm64 2>/dev/null) ifeq ($(SYSCTL_M),1)