Skip to content

Commit 49a789e

Browse files
committed
fix: nvidia vgpu detect error
Signed-off-by: thxCode <thxcode0824@gmail.com>
1 parent f64a307 commit 49a789e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gpustack_runtime/detector/nvidia.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ def _is_vgpu(dev_config: bytes) -> bool:
532532
pos = dev_config[cap_start]
533533
while pos != 0 and pos not in visited and pos < len(dev_config) - 2:
534534
visited.add(pos)
535-
ptr = dev_config[pos : pos + 2] # id, next, length
535+
ptr = dev_config[pos : pos + 3] # id, next, length
536536
if ptr[0] == 0xFF:
537537
break
538538
if ptr[0] == cap_vendor_specific_id:

0 commit comments

Comments
 (0)