Skip to content

Commit 18e1582

Browse files
committed
Disable OpenMP in build since libgomp1 have no static library distribution (see ggml-org/llama.cpp#7606)
1 parent 8442af1 commit 18e1582

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/build-oneapi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- name: CMake
5050
run: |
5151
. /opt/intel/oneapi/setvars.sh
52-
cmake repo -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DCMAKE_C_FLAGS="-Ofast -xCORE-AVX2" -DCMAKE_CXX_FLAGS="-Ofast -xCORE-AVX2" -DLLAMA_NATIVE=OFF -DLLAMA_STATIC=ON -DLLAMA_BUILD_SERVER=ON
52+
cmake repo -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DCMAKE_C_FLAGS="-Ofast -xCORE-AVX2" -DCMAKE_CXX_FLAGS="-Ofast -xCORE-AVX2" -DLLAMA_NATIVE=OFF -DLLAMA_STATIC=ON -DLLAMA_BUILD_SERVER=ON -DLLAMA_OPENMP=OFF
5353
cmake --build build --config Release --target server -j ${{ steps.cpu-cores.outputs.count }}
5454
strip build/bin/server
5555

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858

5959
- name: CMake
6060
run: |
61-
cmake repo -B build -DCMAKE_BUILD_TYPE=Release -DLLAMA_NATIVE=OFF -DLLAMA_STATIC=ON -DLLAMA_BUILD_SERVER=ON ${{ matrix.ssl_defines }} ${{ matrix.avx_defines }}
61+
cmake repo -B build -DCMAKE_BUILD_TYPE=Release -DLLAMA_NATIVE=OFF -DLLAMA_STATIC=ON -DLLAMA_BUILD_SERVER=ON -DLLAMA_OPENMP=OFF ${{ matrix.ssl_defines }} ${{ matrix.avx_defines }}
6262
cmake --build build --config Release --target server -j ${{ steps.cpu-cores.outputs.count }}
6363
strip build/bin/server
6464
shell: alpine.sh {0}

0 commit comments

Comments
 (0)