mirror of
https://github.com/ollama/ollama.git
synced 2025-05-11 18:36:41 +02:00
Refine CPU load behavior with system memory visibility
This commit is contained in:
parent
434dfe30c5
commit
fc37c192ae
7 changed files with 211 additions and 98 deletions
|
@ -42,6 +42,17 @@ func GetGPUInfo() GpuInfoList {
|
|||
return []GpuInfo{info}
|
||||
}
|
||||
|
||||
func GetCPUInfo() GpuInfoList {
|
||||
mem, _ := GetCPUMem()
|
||||
return []GpuInfo{
|
||||
{
|
||||
Library: "cpu",
|
||||
Variant: GetCPUVariant(),
|
||||
memInfo: mem,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func GetCPUMem() (memInfo, error) {
|
||||
return memInfo{
|
||||
TotalMemory: uint64(C.getPhysicalMemory()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue