File tree 1 file changed +7
-13
lines changed
1 file changed +7
-13
lines changed Original file line number Diff line number Diff line change 1
1
name : llama.cpp
2
2
3
- # defaults:
4
- # run:
5
- # shell: bash -el {0}
3
+ defaults :
4
+ run :
5
+ shell : bash -el {0}
6
6
on :
7
7
workflow_dispatch :
8
8
pull_request :
45
45
# cmake --build build
46
46
47
47
ubuntu-unit-tests :
48
- defaults :
49
- run :
50
- shell : bash -el {0}
51
48
runs-on : ubuntu-latest
52
49
53
50
container :
@@ -70,14 +67,11 @@ jobs:
70
67
- name : Build
71
68
run : |
72
69
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}
74
71
cmake -B build -DCMAKE_BUILD_TYPE=release -DGGML_CANN=on -DSOC_TYPE=ascend910b3 && cmake --build build -j $(nproc)
75
72
76
73
unit-tests :
77
- defaults :
78
- run :
79
- shell : bash -el {0}
80
- runs-on : ubuntu-latest
74
+ runs-on : ubuntu-24.04-arm
81
75
strategy :
82
76
matrix :
83
77
cann : ['openeuler-python3.10-cann8.0.rc3.beta1']
@@ -97,11 +91,11 @@ jobs:
97
91
yum update -y
98
92
yum install git cmake gcc gcc-c++ make -y
99
93
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
+
101
95
- name : Build
102
96
run : |
103
97
cd llama.cpp
104
98
mkdir build
105
99
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}
107
101
cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DGGML_CANN=on -DSOC_TYPE=${{ matrix.device }} && cmake --build . -j $(nproc)
You can’t perform that action at this time.
0 commit comments