Skip to content

Commit 466ea66

Browse files
xuedinge233shink
andauthored
CANN: Add Ascend CANN build ci (ggml-org#10217)
* CANN: Add Ascend CANN build ci * Update build.yml * Modify cann image version * Update build.yml * Change to run on x86 system * Update build.yml * Update build.yml * Modify format error * Update build.yml * Add 'Ascend NPU' label restrictions * Exclude non PR event Co-authored-by: Yuanhao Ji <[email protected]> * Update build.yml --------- Co-authored-by: Yuanhao Ji <[email protected]>
1 parent 5f0db95 commit 466ea66

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/build.yml

+34
Original file line numberDiff line numberDiff line change
@@ -1464,3 +1464,37 @@ jobs:
14641464
# popd
14651465
# emcmake cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }}
14661466
# make
1467+
1468+
openEuler-latest-cmake-cann:
1469+
if: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'Ascend NPU') }}
1470+
defaults:
1471+
run:
1472+
shell: bash -el {0}
1473+
runs-on: ubuntu-24.04-arm
1474+
strategy:
1475+
matrix:
1476+
cann:
1477+
- '8.0.rc3.beta1-910b-openeuler22.03-py3.10'
1478+
device:
1479+
- 'ascend910b3'
1480+
build:
1481+
- 'Release'
1482+
container: ascendai/cann:${{ matrix.cann }}
1483+
steps:
1484+
- name: Checkout
1485+
uses: actions/checkout@v4
1486+
1487+
- name: Dependencies
1488+
run: |
1489+
yum update -y
1490+
yum install -y git gcc gcc-c++ make cmake
1491+
1492+
- name: Build
1493+
run: |
1494+
export LD_LIBRARY_PATH=${ASCEND_TOOLKIT_HOME}/lib64:${ASCEND_TOOLKIT_HOME}/$(uname -m)-linux/devlib/:${LD_LIBRARY_PATH}
1495+
1496+
cmake -S . -B build \
1497+
-DCMAKE_BUILD_TYPE=${{ matrix.build }} \
1498+
-DGGML_CANN=on \
1499+
-DSOC_TYPE=${{ matrix.device }}
1500+
cmake --build build -j $(nproc)

0 commit comments

Comments
 (0)