|
@@ -681,9 +681,25 @@ jobs:
|
|
|
openEuler-cann:
|
|
openEuler-cann:
|
|
|
strategy:
|
|
strategy:
|
|
|
matrix:
|
|
matrix:
|
|
|
- arch: [x86, aarch64]
|
|
|
|
|
- chip_type: ['910b', '310p']
|
|
|
|
|
- build: ['Release']
|
|
|
|
|
|
|
+ include:
|
|
|
|
|
+ # 910b with aclgraph (both architectures)
|
|
|
|
|
+ - arch: x86
|
|
|
|
|
+ chip_type: '910b'
|
|
|
|
|
+ build: 'Release'
|
|
|
|
|
+ use_acl_graph: 'on'
|
|
|
|
|
+ - arch: aarch64
|
|
|
|
|
+ chip_type: '910b'
|
|
|
|
|
+ build: 'Release'
|
|
|
|
|
+ use_acl_graph: 'on'
|
|
|
|
|
+ # 310p without aclgraph (both architectures)
|
|
|
|
|
+ - arch: x86
|
|
|
|
|
+ chip_type: '310p'
|
|
|
|
|
+ build: 'Release'
|
|
|
|
|
+ use_acl_graph: 'off'
|
|
|
|
|
+ - arch: aarch64
|
|
|
|
|
+ chip_type: '310p'
|
|
|
|
|
+ build: 'Release'
|
|
|
|
|
+ use_acl_graph: 'off'
|
|
|
runs-on: ${{ matrix.arch == 'aarch64' && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }}
|
|
runs-on: ${{ matrix.arch == 'aarch64' && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }}
|
|
|
steps:
|
|
steps:
|
|
|
- name: Checkout
|
|
- name: Checkout
|
|
@@ -709,6 +725,7 @@ jobs:
|
|
|
env:
|
|
env:
|
|
|
BUILD_TYPE: ${{ matrix.build }}
|
|
BUILD_TYPE: ${{ matrix.build }}
|
|
|
SOC_TYPE: ascend${{ matrix.chip_type }}
|
|
SOC_TYPE: ascend${{ matrix.chip_type }}
|
|
|
|
|
+ USE_ACL_GRAPH: ${{ matrix.use_acl_graph }}
|
|
|
run: |
|
|
run: |
|
|
|
HOST_UID=$(id -u)
|
|
HOST_UID=$(id -u)
|
|
|
HOST_GID=$(id -g)
|
|
HOST_GID=$(id -g)
|
|
@@ -718,6 +735,7 @@ jobs:
|
|
|
-w /workspace \
|
|
-w /workspace \
|
|
|
-e SOC_TYPE=${SOC_TYPE} \
|
|
-e SOC_TYPE=${SOC_TYPE} \
|
|
|
-e BUILD_TYPE=${BUILD_TYPE} \
|
|
-e BUILD_TYPE=${BUILD_TYPE} \
|
|
|
|
|
+ -e USE_ACL_GRAPH=${USE_ACL_GRAPH} \
|
|
|
"${{ steps.cann-image.outputs.image }}" \
|
|
"${{ steps.cann-image.outputs.image }}" \
|
|
|
bash -lc '
|
|
bash -lc '
|
|
|
set -e
|
|
set -e
|
|
@@ -728,7 +746,8 @@ jobs:
|
|
|
cmake -S . -B build \
|
|
cmake -S . -B build \
|
|
|
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
|
|
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
|
|
|
-DGGML_CANN=on \
|
|
-DGGML_CANN=on \
|
|
|
- -DSOC_TYPE=${SOC_TYPE}
|
|
|
|
|
|
|
+ -DSOC_TYPE=${SOC_TYPE} \
|
|
|
|
|
+ -DUSE_ACL_GRAPH=${USE_ACL_GRAPH}
|
|
|
cmake --build build -j $(nproc)
|
|
cmake --build build -j $(nproc)
|
|
|
|
|
|
|
|
chown -R '"${HOST_UID}"':'"${HOST_GID}"' /workspace/build
|
|
chown -R '"${HOST_UID}"':'"${HOST_GID}"' /workspace/build
|
|
@@ -741,13 +760,13 @@ jobs:
|
|
|
- name: Pack artifacts
|
|
- name: Pack artifacts
|
|
|
run: |
|
|
run: |
|
|
|
cp LICENSE ./build/bin/
|
|
cp LICENSE ./build/bin/
|
|
|
- tar -czvf llama-${{ steps.tag.outputs.name }}-bin-${{ matrix.chip_type }}-openEuler-${{ matrix.arch }}.tar.gz --transform "s,./,llama-${{ steps.tag.outputs.name }}/," -C ./build/bin .
|
|
|
|
|
|
|
+ tar -czvf llama-${{ steps.tag.outputs.name }}-bin-${{ matrix.chip_type }}-openEuler-${{ matrix.arch }}${{ matrix.use_acl_graph == 'on' && '-aclgraph' || '' }}.tar.gz --transform "s,./,llama-${{ steps.tag.outputs.name }}/," -C ./build/bin .
|
|
|
|
|
|
|
|
- name: Upload artifacts
|
|
- name: Upload artifacts
|
|
|
uses: actions/upload-artifact@v4
|
|
uses: actions/upload-artifact@v4
|
|
|
with:
|
|
with:
|
|
|
- path: llama-${{ steps.tag.outputs.name }}-bin-${{ matrix.chip_type }}-openEuler-${{ matrix.arch }}.tar.gz
|
|
|
|
|
- name: llama-bin-${{ matrix.chip_type }}-openEuler-${{ matrix.arch }}.tar.gz
|
|
|
|
|
|
|
+ path: llama-${{ steps.tag.outputs.name }}-bin-${{ matrix.chip_type }}-openEuler-${{ matrix.arch }}${{ matrix.use_acl_graph == 'on' && '-aclgraph' || '' }}.tar.gz
|
|
|
|
|
+ name: llama-bin-${{ matrix.chip_type }}-openEuler-${{ matrix.arch }}${{ matrix.use_acl_graph == 'on' && '-aclgraph' || '' }}.tar.gz
|
|
|
|
|
|
|
|
release:
|
|
release:
|
|
|
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
|
|
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
|
|
@@ -862,9 +881,9 @@ jobs:
|
|
|
|
|
|
|
|
**openEuler:**
|
|
**openEuler:**
|
|
|
- [openEuler x86 (310p)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-310p-openEuler-x86.tar.gz)
|
|
- [openEuler x86 (310p)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-310p-openEuler-x86.tar.gz)
|
|
|
- - [openEuler x86 (910b)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-910b-openEuler-x86.tar.gz)
|
|
|
|
|
|
|
+ - [openEuler x86 (910b, ACL Graph)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-910b-openEuler-x86-aclgraph.tar.gz)
|
|
|
- [openEuler aarch64 (310p)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-310p-openEuler-aarch64.tar.gz)
|
|
- [openEuler aarch64 (310p)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-310p-openEuler-aarch64.tar.gz)
|
|
|
- - [openEuler aarch64 (910b)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-910b-openEuler-aarch64.tar.gz)
|
|
|
|
|
|
|
+ - [openEuler aarch64 (910b, ACL Graph)](https://github.com/ggml-org/llama.cpp/releases/download/${{ steps.tag.outputs.name }}/llama-${{ steps.tag.outputs.name }}-bin-910b-openEuler-aarch64-aclgraph.tar.gz)
|
|
|
|
|
|
|
|
- name: Upload release
|
|
- name: Upload release
|
|
|
id: upload_release
|
|
id: upload_release
|