From d5b0a7726a033dc321ab920069f1d3722c0394cf Mon Sep 17 00:00:00 2001 From: jiahao su Date: Wed, 4 Sep 2024 14:47:17 +0800 Subject: [PATCH] Update huawei-ascend-npu.yml --- .github/workflows/huawei-ascend-npu.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/huawei-ascend-npu.yml b/.github/workflows/huawei-ascend-npu.yml index d84cd0ea567a0..54e24401a8235 100644 --- a/.github/workflows/huawei-ascend-npu.yml +++ b/.github/workflows/huawei-ascend-npu.yml @@ -22,19 +22,21 @@ jobs: runs-on: [self-hosted, ascend, npu] container: image: ascendai/cann - ports: - - 80 - options: --device /dev/davinci4 + # ports: + # - 80 + volumes: + - /usr/local/dcmi:/usr/local/dcmi + - /usr/local/bin/npu-smi:/usr/local/bin/npu-smi + - /usr/local/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/ + - /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info + - /etc/ascend_install.info:/etc/ascend_install.info + options: --network host + --device /dev/davinci4 --device /dev/davinci_manager --device /dev/devmm_svm --device /dev/hisi_hdc - --shm-size "20g" - -v /usr/local/dcmi:/usr/local/dcmi - -v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi - -v /usr/local/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/ - -v /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info - -v /etc/ascend_install.info:/etc/ascend_install.info - + --shm-size "20g" + steps: - uses: actions/checkout@v4