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 {
|
if err != nil {
|
||||||
slog.Error("invalid RocmComputeMajorMin setting", "value", RocmComputeMajorMin, "error", err)
|
slog.Error("invalid RocmComputeMajorMin setting", "value", RocmComputeMajorMin, "error", err)
|
||||||
}
|
}
|
||||||
if int(major) < minVer {
|
// if int(major) < minVer {
|
||||||
reason := fmt.Sprintf("amdgpu too old gfx%d%x%x", major, minor, patch)
|
// reason := fmt.Sprintf("amdgpu too old gfx%d%x%x", major, minor, patch)
|
||||||
slog.Warn(reason, "gpu", gpuID)
|
// slog.Warn(reason, "gpu", gpuID)
|
||||||
unsupportedGPUs = append(unsupportedGPUs, UnsupportedGPUInfo{
|
// unsupportedGPUs = append(unsupportedGPUs, UnsupportedGPUInfo{
|
||||||
GpuInfo: gpuInfo.GpuInfo,
|
// GpuInfo: gpuInfo.GpuInfo,
|
||||||
Reason: reason,
|
// Reason: reason,
|
||||||
})
|
// })
|
||||||
|
|
||||||
continue
|
// continue
|
||||||
}
|
//}
|
||||||
|
|
||||||
slog.Debug("amdgpu memory", "gpu", gpuID, "total", format.HumanBytes2(totalMemory))
|
slog.Debug("amdgpu memory", "gpu", gpuID, "total", format.HumanBytes2(totalMemory))
|
||||||
slog.Debug("amdgpu memory", "gpu", gpuID, "available", format.HumanBytes2(totalMemory-usedMemory))
|
slog.Debug("amdgpu memory", "gpu", gpuID, "available", format.HumanBytes2(totalMemory-usedMemory))
|
||||||
|
|||||||
Reference in New Issue
Block a user