Skip to content

Commit 7d5a001

Browse files
committed
update
1 parent 969dcb2 commit 7d5a001

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/_ascend_npu_benchmark.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,21 @@ jobs:
7070
name: ${{ inputs.artifact_name }}
7171
path: ascend_npu
7272

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+
7378
- name: Install torch_npu
7479
working-directory: ascend_npu
7580
run: |
7681
pip install ${{ inputs.artifact_name }}
7782
torch_npu_version=$(python -c "import torch_npu; print(torch_npu.__version__)")
83+
npu_is_available=$(python -c "import torch; print(torch.npu.is_available())")
84+
npu_count=$(python -c "import torch; print(torch.npu.device_count())")
7885
echo "Installed torch_npu: ${torch_npu_version}"
86+
echo "NPU is available: ${npu_is_available}"
87+
echo "NPU count: ${npu_count}"
7988
8089
- name: Checkout benchmark
8190
uses: actions/checkout@v4

0 commit comments

Comments
 (0)