Create GPU index in actual driver

This commit is contained in:
Ingo Oppermann
2024-10-31 15:23:24 +01:00
parent d591a2383e
commit abc821fe4b
4 changed files with 7 additions and 3 deletions

View File

@@ -444,8 +444,9 @@ func (n *nvidia) Stats() ([]gpu.Stats, error) {
return stats, n.err
}
for _, nv := range n.stats.GPU {
for i, nv := range n.stats.GPU {
s := gpu.Stats{
Index: i,
ID: nv.ID,
Name: nv.Name,
Architecture: nv.Architecture,