Skip to content

Commit

Permalink
[CI] update device type
Browse files Browse the repository at this point in the history
  • Loading branch information
CSY-ModelCloud committed Jan 8, 2025
1 parent 52f92b1 commit d8533e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion device_smi/amd.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class AMDGPUMetrics(BaseMetrics):

class AMDDevice(GPUDevice):
def __init__(self, cls, index):
super().__init__(cls, index)
super().__init__(cls, index, "xpu")
self.gpu_id = self._get_gpu_id()

try:
Expand Down
4 changes: 2 additions & 2 deletions device_smi/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def to_dict(self, text, split: str = ":"):


class GPUDevice(BaseDevice):
def __init__(self, cls, index):
super().__init__(cls, "gpu")
def __init__(self, cls, index, type= "gpu"):
super().__init__(cls, type)
self.index = index

@abstractmethod
Expand Down

0 comments on commit d8533e0

Please sign in to comment.