Skip to content

Commit

Permalink
Support for ROCm 6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywonchung committed Jun 6, 2024
1 parent 9d2ba6f commit 7d41581
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion zeus/device/gpu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
!!! Important
In theory, any NVIDIA GPU would be supported.
On the other hand, for AMD GPUs, we currently only support ROCm 6.0 and later.
On the other hand, for AMD GPUs, we currently only support ROCm 6.1 and later.
## Getting handles to GPUs
Expand Down
7 changes: 5 additions & 2 deletions zeus/device/gpu/amd.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ def __init__(self, gpu_index: int) -> None:
"""Initialize the GPU object."""
super().__init__(gpu_index)
self._get_handle()
self._supportsGetTotalEnergyConsumption = None
# XXX(Jae-Won): Right now, the energy API's unit is broken (either the
# `power` field or the `counter_resolution` field). Before that, we're
# disabling the energy API.
self._supportsGetTotalEnergyConsumption = False

_exception_map = {
1: gpu_common.ZeusGPUInvalidArgError, # amdsmi.amdsmi_wrapper.AMDSMI_STATUS_INVAL
Expand Down Expand Up @@ -258,7 +261,7 @@ class AMDGPUs(gpu_common.GPUs):
"""AMD GPU Manager object, containing individual AMDGPU objects, abstracting amdsmi calls and handling related exceptions.
!!! Important
Currently only ROCM 6.0 is supported.
Currently only ROCm >= 6.1 is supported.
`HIP_VISIBLE_DEVICES` environment variable is respected if set.
For example, if there are 4 GPUs on the node and `HIP_VISIBLE_DEVICES=0,2`,
Expand Down

0 comments on commit 7d41581

Please sign in to comment.