mirror of
https://github.com/datarhei/core.git
synced 2025-10-08 09:20:16 +08:00
Create GPU index in actual driver
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user