From e99e1e4cc7b3a11bfc57b5451cc32a39cbfdefb9 Mon Sep 17 00:00:00 2001 From: dotieuthien Date: Mon, 2 Oct 2023 15:08:56 +0700 Subject: [PATCH] Add cmake build for Mac Intel --- README_temp.md | 33 ++++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/README_temp.md b/README_temp.md index 0aab5b11a..dc60c0033 100644 --- a/README_temp.md +++ b/README_temp.md @@ -12,17 +12,28 @@ This will create a build_deps folder, just ignore it ### Step 2: -Build the app from source - -```zsh -mkdir build && cd build -cmake .. - -# MacOS -make -j $(sysctl -n hw.physicalcpu) -# Linux -make -j $(%NUMBER_OF_PROCESSORS%) -``` +Generate build file +- On MacOS with Apple silicon: + + ```zsh + mkdir build && cd build + cmake .. + ``` + +- On MacOS with Intel processors: + ```zsh + mkdir build && cd build + cmake -DLLAMA_METAL=OFF .. + ``` + +Build the app +- On MacOS and Linux + ``` + # MacOS + make -j $(sysctl -n hw.physicalcpu) + # Linux + make -j $(%NUMBER_OF_PROCESSORS%) + ``` ### Step 3: