3737 runs-on : ${{ inputs.runner }}
3838 container :
3939 image : ${{ inputs.image }}
40- volumes :
41- - /usr/local/dcmi:/usr/local/dcmi
42- - /usr/local/bin/npu-smi:/usr/local/bin/npu-smi
43- - /usr/local/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/
44- - /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info
45- - /etc/ascend_install.info:/etc/ascend_install.info
46- options : >-
47- --network host
48- --device ${{ inputs.device }}
49- --device /dev/davinci_manager
50- --device /dev/devmm_svm
51- --device /dev/hisi_hdc
5240 outputs :
5341 dist-name : ${{ steps.list-dist.outputs.dist-name }}
5442 steps :
@@ -63,21 +51,19 @@ jobs:
6351 apt-get install -y git gcc g++ make cmake ninja-build
6452
6553 # See: https://github.com/actions/checkout/issues/363#issuecomment-1915075699
54+ # See: https://github.com/hunshcn/gh-proxy/issues/28#issuecomment-773769630
6655 - name : Config git
6756 run : |
6857 git config --global --add safe.directory "$GITHUB_WORKSPACE"
58+ git config --global url."https://gh-proxy.test.osinfra.cn/https://github.com/".insteadOf https://github.com/
6959
7060 - name : Checkout
7161 uses : actions/checkout@v4
7262
7363 - name : Checkout torch_npu
7464 uses : actions/checkout@v4
7565 with :
76- # TODO(shink): Use Ascend/pytorch once this pr merged:
77- # https://gitee.com/ascend/pytorch/pulls/12854
78- # repository: Ascend/pytorch
79- repository : shink/torchnpu
80- ref : feat/autoload
66+ repository : Ascend/pytorch
8167 submodules : recursive
8268 path : torch_npu
8369
@@ -118,6 +104,7 @@ jobs:
118104 bash ci/build.sh --python=${{ steps.list-py-version.outputs.py-version }}
119105 env :
120106 _GLIBCXX_USE_CXX11_ABI : 1 # https://gitee.com/ascend/pytorch/issues/IBJFZY
107+ MAX_JOBS : 8
121108
122109 - name : List distribution package
123110 id : list-dist
0 commit comments