Skip to content

Commit

Permalink
chore(ci): add mlu290 and mlu370 runner (Cambricon#159)
Browse files Browse the repository at this point in the history
Co-authored-by: Shengjing Zhu <[email protected]>
  • Loading branch information
zhsj and Shengjing Zhu authored Aug 26, 2022
1 parent 9a2a5cd commit 1201ca6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 20 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,29 @@ on:

jobs:
test:
runs-on: [self-hosted, mlu270-x5k]
strategy:
matrix:
runner: [mlu270-x5k, mlu290-m5, mlu370-m8]
runs-on: ${{matrix.runner}}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: bangc_lint_check
run: >
docker run --rm -v $(pwd):/work -w /work docker-user.extrotec.com:30080/cair/open_cnnl_ubuntu16.04:v1.3
docker run --rm -v $(pwd):/work -w /work docker-user.gotgo.cc:30080/mlu-ops/open_cnnl_ubuntu16.04:v1.3
./tools/pre-commit origin/master
- name: build
run: >
docker run --rm -v $(pwd):/work -w /work docker-user.extrotec.com:30080/cair/open_cnnl_ubuntu16.04:v1.3
docker run --rm -v $(pwd):/work -w /work docker-user.gotgo.cc:30080/mlu-ops/open_cnnl_ubuntu16.04:v1.3
./build.sh
- name: test
run: >
idx=$(hostname | cut -d'-' -f3);docker run --rm --device /dev/cambricon_ctl --device /dev/cambricon_dev${idx}:/dev/cambricon_dev0
--device /dev/commu${idx}:/dev/commu0 -v $(pwd):/work -w /work docker-user.extrotec.com:30080/cair/open_cnnl_ubuntu16.04:v1.3
docker run --rm --device /dev/cambricon_ctl --device /dev/cambricon_dev0 --device /dev/commu0
-v $(pwd):/work -w /work docker-user.gotgo.cc:30080/mlu-ops/open_cnnl_ubuntu16.04:v1.3
./test.sh --target=mlu270
- name: clean
run: >
docker run --rm -v $(pwd):/work -w /work docker-user.extrotec.com:30080/cair/open_cnnl_ubuntu16.04:v1.3
bash -c "rm -rf bangc-ops/build && rm -rf bangpy-ops/outs"
run: |
rm -rf bangc-ops/build
rm -rf bangpy-ops/outs
22 changes: 11 additions & 11 deletions .github/workflows/coverage_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ on:

jobs:
test:
runs-on: [self-hosted, mlu270-x5k]
strategy:
matrix:
runner: [mlu270-x5k, mlu290-m5, mlu370-m8]
runs-on: ${{matrix.runner}}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: bangc_build
run: >
docker run --rm -v $(pwd):/work -w /work docker-user.extrotec.com:30080/cair/open_cnnl_ubuntu16.04:v1.3
bash -c "cd bangc-ops && ./build.sh -c"
docker run --rm -v $(pwd):/work -w /work/bangc-ops docker-user.gotgo.cc:30080/mlu-ops/open_cnnl_ubuntu16.04:v1.3
./build.sh -c
- name: bangc_test
run: >
idx=$(hostname | cut -d'-' -f3);docker run --rm --device /dev/cambricon_ctl --device /dev/cambricon_dev${idx}:/dev/cambricon_dev0
--device /dev/commu${idx}:/dev/commu0 -v $(pwd):/work -w /work docker-user.extrotec.com:30080/cair/open_cnnl_ubuntu16.04:v1.3
bash -c "cd bangc-ops/build/test/ && bash ../../../tools/coverage.sh "./mluop_gtest""
docker run --rm --device /dev/cambricon_ctl --device /dev/cambricon_dev0 --device /dev/commu0
-v $(pwd):/work -w /work/bangc-ops/build/test/ docker-user.gotgo.cc:30080/mlu-ops/open_cnnl_ubuntu16.04:v1.3
../../../tools/coverage.sh ./mluop_gtest
- name: bangc_clean
run: >
docker run --rm -v $(pwd):/work -w /work docker-user.extrotec.com:30080/cair/open_cnnl_ubuntu16.04:v1.3
bash -c "rm -rf bangc-ops/build"
run: rm -rf bangc-ops/build
Empty file modified tools/coverage.sh
100644 → 100755
Empty file.

0 comments on commit 1201ca6

Please sign in to comment.