gpu: Group GPU Library sets by variant (#6483)

The recent cuda variant changes uncovered a bug in ByLibrary
which failed to group by common variant for GPU types.
This commit is contained in:
Daniel Hiltgen
2024-08-23 15:11:56 -07:00
committed by GitHub
parent 9638c24c58
commit 69be940bf6
2 changed files with 26 additions and 1 deletions

View File

@@ -94,7 +94,7 @@ func (l GpuInfoList) ByLibrary() []GpuInfoList {
}
}
if !found {
libs = append(libs, info.Library)
libs = append(libs, requested)
resp = append(resp, []GpuInfo{info})
}
}