lint windows

This commit is contained in:
Michael Yang
2024-05-22 09:26:45 -07:00
parent bf7edb0d5d
commit e919f6811f
4 changed files with 10 additions and 13 deletions

View File

@@ -65,7 +65,7 @@ func AMDGetGPUInfo() []GpuInfo {
slog.Debug("detected hip devices", "count", count)
// TODO how to determine the underlying device ID when visible devices is causing this to subset?
for i := 0; i < count; i++ {
for i := range count {
err = hl.HipSetDevice(i)
if err != nil {
slog.Warn("set device", "id", i, "error", err)