fix the min error

This commit is contained in:
likelovewant
2025-03-07 12:22:51 +08:00
committed by GitHub
parent d80ea37d36
commit e82001c122

View File

@@ -300,10 +300,10 @@ func AMDGetGPUInfo() ([]RocmGPUInfo, error) {
})
continue
}
minVer, err := strconv.Atoi(RocmComputeMajorMin)
if err != nil {
slog.Error("invalid RocmComputeMajorMin setting", "value", RocmComputeMajorMin, "error", err)
}
//minVer, err := strconv.Atoi(RocmComputeMajorMin)
//if err != nil {
// slog.Error("invalid RocmComputeMajorMin setting", "value", RocmComputeMajorMin, "error", err)
//}
// if int(major) < minVer {
// reason := fmt.Sprintf("amdgpu too old gfx%d%x%x", major, minor, patch)
// slog.Warn(reason, "gpu", gpuID)