Skip to content

Commit 940aa44

Browse files
committed
update
1 parent 15ef3f9 commit 940aa44

File tree

2 files changed

+27
-25
lines changed

2 files changed

+27
-25
lines changed

.github/workflows/_ascend_npu_benchmark.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ jobs:
3939
- /usr/local/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/
4040
- /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info
4141
- /etc/ascend_install.info:/etc/ascend_install.info
42-
- /data/disk3/jyh/:/jyh
4342
options: >-
4443
--network host
4544
--device ${{ inputs.device }}
@@ -77,9 +76,10 @@ jobs:
7776
path: benchmark
7877

7978
- name: Download ${{ inputs.artifact_name }}
80-
working-directory: ascend_npu
81-
run: |
82-
cp /jyh/*.whl .
79+
uses: actions/download-artifact@v4
80+
with:
81+
name: ${{ inputs.artifact_name }}
82+
path: ascend_npu
8383

8484
- name: Install torch_npu
8585
working-directory: ascend_npu

.github/workflows/ascend_npu_test.yml

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -73,34 +73,36 @@ jobs:
7373
echo "device=${{ github.event.inputs.device || '/dev/davinci5' }}" >> $GITHUB_OUTPUT
7474
echo "image=${{ github.event.inputs.image || 'ascendai/cann:latest' }}" >> $GITHUB_OUTPUT
7575
76-
# build:
77-
# name: Build torch_npu
78-
# needs:
79-
# - prepare
80-
# uses: ./.github/workflows/_ascend_npu_build.yml
81-
# with:
82-
# runner: ${{ needs.prepare.outputs.runner }}
83-
# image: ${{ needs.prepare.outputs.image }}
84-
#
85-
# test:
86-
# name: Test torch_npu
87-
# needs:
88-
# - prepare
89-
# - build
90-
# uses: ./.github/workflows/_ascend_npu_test.yml
91-
# with:
92-
# runner: ${{ needs.prepare.outputs.runner }}
93-
# image: ${{ needs.prepare.outputs.image }}
94-
# device: ${{ needs.prepare.outputs.device }}
95-
# artifact_name: ${{ needs.build.outputs.artifact_name }}
76+
build:
77+
name: Build torch_npu
78+
needs:
79+
- prepare
80+
uses: ./.github/workflows/_ascend_npu_build.yml
81+
with:
82+
runner: ${{ needs.prepare.outputs.runner }}
83+
image: ${{ needs.prepare.outputs.image }}
84+
85+
test:
86+
name: Test torch_npu
87+
needs:
88+
- prepare
89+
- build
90+
uses: ./.github/workflows/_ascend_npu_test.yml
91+
with:
92+
runner: ${{ needs.prepare.outputs.runner }}
93+
image: ${{ needs.prepare.outputs.image }}
94+
device: ${{ needs.prepare.outputs.device }}
95+
artifact_name: ${{ needs.build.outputs.artifact_name }}
9696

9797
benchmark:
9898
name: Run benchmarks
9999
needs:
100100
- prepare
101+
- build
102+
- test
101103
uses: ./.github/workflows/_ascend_npu_benchmark.yml
102104
with:
103105
runner: ${{ needs.prepare.outputs.runner }}
104106
image: ${{ needs.prepare.outputs.image }}
105107
device: ${{ needs.prepare.outputs.device }}
106-
artifact_name: 'torch_npu-2.6.0+git69ceea7-cp310-cp310-linux_aarch64.whl'
108+
artifact_name: ${{ needs.build.outputs.artifact_name }}

0 commit comments

Comments
 (0)