Skip to content

Commit 5dbb0d4

Browse files
committed
refactor: ignore thead physical index
Signed-off-by: thxCode <thxcode0824@gmail.com>
1 parent 54957e1 commit 5dbb0d4

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

gpustack_runtime/detector/thead.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,6 @@ def detect(self) -> Devices | None:
161161
dev_mig_mode, _ = pyhgml.hgmlDeviceGetMigMode(dev)
162162

163163
dev_index = dev_idx
164-
if envs.GPUSTACK_RUNTIME_DETECT_PHYSICAL_INDEX_PRIORITY:
165-
with contextlib.suppress(pyhgml.HGMLError):
166-
dev_index = pyhgml.hgmlDeviceGetMinorNumber(dev)
167164

168165
# With MIG disabled, treat as a single device.
169166

0 commit comments

Comments
 (0)