Skip to content

Commit 0c96eba

Browse files
committed
update
1 parent ee12c89 commit 0c96eba

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.github/workflows/_ascend_npu_benchmark.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,28 +61,19 @@ jobs:
6161
apt update
6262
apt install --no-install-recommends -y git gcc g++ make cmake ninja-build
6363
64-
- name: Checkout
65-
uses: actions/checkout@v4
66-
67-
- name: Download distribution artifact
64+
- name: Download ${{ inputs.artifact_name }}
6865
uses: actions/download-artifact@v4
6966
with:
7067
name: ${{ inputs.artifact_name }}
7168
path: ascend_npu
7269

73-
- name: Install torch
74-
working-directory: ascend_npu
75-
run: |
76-
pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
77-
7870
- name: Install torch_npu
7971
working-directory: ascend_npu
8072
run: |
8173
pip install ${{ inputs.artifact_name }}
82-
npu_is_available=$(python -c "import torch; print(torch.npu.is_available())")
83-
npu_count=$(python -c "import torch; print(torch.npu.device_count())")
84-
echo "NPU is available: ${npu_is_available}"
85-
echo "NPU count: ${npu_count}"
74+
75+
- name: Checkout
76+
uses: actions/checkout@v4
8677

8778
- name: Checkout benchmark
8879
uses: actions/checkout@v4

0 commit comments

Comments
 (0)