mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-20 21:23:10 +00:00
b69ff46c7e
Signed-off-by: mudler <mudler@localai.io>
16 lines
230 B
Go
16 lines
230 B
Go
package xsysinfo
|
|
|
|
import (
|
|
"github.com/jaypipes/ghw"
|
|
"github.com/jaypipes/ghw/pkg/gpu"
|
|
)
|
|
|
|
func GPUs() ([]*gpu.GraphicsCard, error) {
|
|
gpu, err := ghw.GPU()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return gpu.GraphicsCards, nil
|
|
}
|