44
44
# cmake -B build -DCMAKE_BUILD_TYPE=release -DGGML_CANN=on -DSOC_TYPE=ascend910b3 -DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=armv8-a
45
45
# cmake --build build
46
46
47
+ unit-tests :
48
+ runs-on : ubuntu-24.04-arm
49
+ strategy :
50
+ matrix :
51
+ cann :
52
+ - ' openeuler-python3.10-cann8.0.rc3.beta1'
53
+ build :
54
+ - ' Release'
55
+ device :
56
+ - ' ascend910b3'
57
+ container :
58
+ image : ascendai/cann:${{ matrix.cann }}
59
+ steps :
60
+ - name : Dependencies
61
+ yum update -y
62
+ yum install git cmake gcc gcc-c++ make -y
63
+
64
+ - name : Checkout llama.cpp
65
+ uses : actions/checkout@v4
66
+ with :
67
+ repository : ggerganov/llama.cpp
68
+ path : llama.cpp
69
+
70
+ - name : Build
71
+ run : |
72
+ cd llama.cpp
73
+ mkdir build
74
+ cd build
75
+ export LD_LIBRARY_PATH=${ASCEND_TOOLKIT_HOME}/lib64:${ASCEND_TOOLKIT_HOME}/$(uname -m)-linux/devlib/:${LD_LIBRARY_PATH}
76
+ cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DGGML_CANN=on -DSOC_TYPE=${{ matrix.device }} && cmake --build . -j $(nproc)
77
+
47
78
ubuntu-unit-tests :
48
79
runs-on : ubuntu-latest
49
80
@@ -70,32 +101,4 @@ jobs:
70
101
export LD_LIBRARY_PATH=${ASCEND_TOOLKIT_HOME}/$(uname -m)-linux/devlib/:${LD_LIBRARY_PATH}
71
102
cmake -B build -DCMAKE_BUILD_TYPE=release -DGGML_CANN=on -DSOC_TYPE=ascend910b3 && cmake --build build -j $(nproc)
72
103
73
- unit-tests :
74
- runs-on : ubuntu-24.04-arm
75
- strategy :
76
- matrix :
77
- cann : ['openeuler-python3.10-cann8.0.rc3.beta1']
78
- build : ['Release']
79
- device : ['ascend910b3']
80
- container :
81
- image : ascendai/cann:${{ matrix.cann }}
82
- steps :
83
- - uses : actions/checkout@v4
84
- - name : Install llamacpp
85
- uses : nick-fields/retry@v3
86
- with :
87
- timeout_minutes : 30
88
- max_attempts : 3
89
- retry_on : error
90
- command : |
91
- yum update -y
92
- yum install git cmake gcc gcc-c++ make -y
93
- git clone https://github.com/ggerganov/llama.cpp.git
94
-
95
- - name : Build
96
- run : |
97
- cd llama.cpp
98
- mkdir build
99
- cd build
100
- export LD_LIBRARY_PATH${ASCEND_TOOLKIT_HOME}/lib64:${ASCEND_TOOLKIT_HOME}/$(uname -m)-linux/devlib/:${LD_LIBRARY_PATH}
101
- cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DGGML_CANN=on -DSOC_TYPE=${{ matrix.device }} && cmake --build . -j $(nproc)
104
+
0 commit comments