Skip to content

Commit ace9260

Browse files
authored
Update llamacpp.yaml
1 parent 486e45a commit ace9260

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/llamacpp.yaml

+7-13
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: llama.cpp
22

3-
# defaults:
4-
# run:
5-
# shell: bash -el {0}
3+
defaults:
4+
run:
5+
shell: bash -el {0}
66
on:
77
workflow_dispatch:
88
pull_request:
@@ -45,9 +45,6 @@ jobs:
4545
# cmake --build build
4646

4747
ubuntu-unit-tests:
48-
defaults:
49-
run:
50-
shell: bash -el {0}
5148
runs-on: ubuntu-latest
5249

5350
container:
@@ -70,14 +67,11 @@ jobs:
7067
- name: Build
7168
run: |
7269
cd llama.cpp
73-
# export LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/x86_64-linux/devlib/:${LD_LIBRARY_PATH}
70+
export LD_LIBRARY_PATH=${ASCEND_TOOLKIT_HOME}/$(uname -m)-linux/devlib/:${LD_LIBRARY_PATH}
7471
cmake -B build -DCMAKE_BUILD_TYPE=release -DGGML_CANN=on -DSOC_TYPE=ascend910b3 && cmake --build build -j $(nproc)
7572
7673
unit-tests:
77-
defaults:
78-
run:
79-
shell: bash -el {0}
80-
runs-on: ubuntu-latest
74+
runs-on: ubuntu-24.04-arm
8175
strategy:
8276
matrix:
8377
cann: ['openeuler-python3.10-cann8.0.rc3.beta1']
@@ -97,11 +91,11 @@ jobs:
9791
yum update -y
9892
yum install git cmake gcc gcc-c++ make -y
9993
git clone https://github.com/ggerganov/llama.cpp.git
100-
# export LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/x86_64-linux/devlib/:${LD_LIBRARY_PATH}
94+
10195
- name: Build
10296
run: |
10397
cd llama.cpp
10498
mkdir build
10599
cd build
106-
echo $LD_LIBRARY_PATH
100+
# export LD_LIBRARY_PATH${ASCEND_TOOLKIT_HOME}/lib64:${ASCEND_TOOLKIT_HOME}/$(uname -m)-linux/devlib/:${LD_LIBRARY_PATH}
107101
cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DGGML_CANN=on -DSOC_TYPE=${{ matrix.device }} && cmake --build . -j $(nproc)

0 commit comments

Comments
 (0)