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

@@ -639,9 +639,9 @@ func (u *util) GPU() ([]GPUInfo, error) {
stats := []GPUInfo{}
for i, nv := range nvstats {
for _, nv := range nvstats {
stats = append(stats, GPUInfo{
Index: i,
Index: nv.Index,
ID: nv.ID,
Name: nv.Name,
MemoryTotal: nv.MemoryTotal,