mirror of
https://github.com/likelovewant/ollama-for-amd.git
synced 2025-12-23 15:08:27 +00:00
disable old cards limits again
This commit is contained in:
@@ -304,16 +304,16 @@ func AMDGetGPUInfo() ([]RocmGPUInfo, error) {
|
||||
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)
|
||||
unsupportedGPUs = append(unsupportedGPUs, UnsupportedGPUInfo{
|
||||
GpuInfo: gpuInfo.GpuInfo,
|
||||
Reason: reason,
|
||||
})
|
||||
// if int(major) < minVer {
|
||||
// reason := fmt.Sprintf("amdgpu too old gfx%d%x%x", major, minor, patch)
|
||||
// slog.Warn(reason, "gpu", gpuID)
|
||||
// unsupportedGPUs = append(unsupportedGPUs, UnsupportedGPUInfo{
|
||||
// GpuInfo: gpuInfo.GpuInfo,
|
||||
// Reason: reason,
|
||||
// })
|
||||
|
||||
continue
|
||||
}
|
||||
// continue
|
||||
//}
|
||||
|
||||
slog.Debug("amdgpu memory", "gpu", gpuID, "total", format.HumanBytes2(totalMemory))
|
||||
slog.Debug("amdgpu memory", "gpu", gpuID, "available", format.HumanBytes2(totalMemory-usedMemory))
|
||||
|
||||
Reference in New Issue
Block a user