File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments