Skip to content

Commit

Permalink
[CI] test xpu device
Browse files Browse the repository at this point in the history
  • Loading branch information
CSY-ModelCloud committed Jan 8, 2025
1 parent 5e4e790 commit f03ebee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ jobs:

- name: test gpu
if: always() && !cancelled()
run: python tests/gpu.py
run: python tests/xpu.py

m4:
runs-on: [self-hosted, m4]
Expand Down
1 change: 1 addition & 0 deletions tests/gpu.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from device_smi import Device
import torch

dev = Device("gpu")
print(dev)
Expand Down

0 comments on commit f03ebee

Please sign in to comment.