Change to run on x86 system
This commit is contained in:
parent
aa11846752
commit
25c912ac11
1 changed files with 8 additions and 11 deletions
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
|
@ -1466,28 +1466,25 @@ jobs:
|
||||||
cann: ['openeuler-python3.10-cann8.0.rc3.beta1']
|
cann: ['openeuler-python3.10-cann8.0.rc3.beta1']
|
||||||
build: ['Release']
|
build: ['Release']
|
||||||
device: ['ascend910b3']
|
device: ['ascend910b3']
|
||||||
|
container:
|
||||||
|
image: ascendai/cann:${{ matrix.cann }}
|
||||||
steps:
|
steps:
|
||||||
- name: Clone
|
- name: Clone
|
||||||
id: checkout
|
id: checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Dependencies & Build
|
- name: Dependencies
|
||||||
uses: uraimo/run-on-arch-action@v2
|
run: |
|
||||||
with:
|
|
||||||
arch: aarch64
|
|
||||||
distro: ubuntu22.04
|
|
||||||
base_image: --platform=linux/arm64 ascendai/cann:${{ matrix.cann }}
|
|
||||||
run: |
|
|
||||||
yum update -y
|
yum update -y
|
||||||
yum install git cmake gcc gcc-c++ make -y
|
yum install git cmake gcc gcc-c++ make -y
|
||||||
export LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/aarch64-linux/devlib/:${LD_LIBRARY_PATH}
|
export LD_LIBRARY_PATH=/usr/local/Ascend/ascend-toolkit/latest/lib64:/usr/local/Ascend/ascend-toolkit/latest/x86_64-linux/devlib/:${LD_LIBRARY_PATH}
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
cmake .. \
|
cmake .. \
|
||||||
-DCMAKE_BUILD_TYPE=${{ matrix.build }}\
|
-DCMAKE_BUILD_TYPE=${{ matrix.build }}\
|
||||||
-DGGML_CANN=on\
|
-DGGML_CANN=on\
|
||||||
-DGGML_NATIVE=OFF\
|
|
||||||
-DSOC_TYPE=${{ matrix.device }}
|
-DSOC_TYPE=${{ matrix.device }}
|
||||||
cmake --build .
|
cmake --build . -j $(nproc)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue