mirror of
https://github.com/ollama/ollama.git
synced 2025-12-07 11:22:41 +01:00
Adapted rocm support to cgo based llama.cpp
This commit is contained in:
10
gpu/types.go
Normal file
10
gpu/types.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package gpu
|
||||
|
||||
// Beginning of an `ollama info` command
|
||||
type GpuInfo struct {
|
||||
Driver string `json:"driver,omitempty"`
|
||||
TotalMemory uint64 `json:"total_memory,omitempty"`
|
||||
FreeMemory uint64 `json:"free_memory,omitempty"`
|
||||
|
||||
// TODO add other useful attributes about the card here for discovery information
|
||||
}
|
||||
Reference in New Issue
Block a user