We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fc7ed6 commit d73dedaCopy full SHA for d73deda
1 file changed
data/module/gpus/gpus_linux.go
@@ -13,7 +13,7 @@ import (
13
)
14
15
func getGPUs() ([]types.GPU, error) {
16
- var gpuList []types.GPU
+ gpuList := make([]types.GPU, 0)
17
18
// Try to get NVIDIA GPU info first
19
cmd := exec.Command("nvidia-smi", "--query-gpu=gpu_name,memory.total,memory.used,memory.free,utilization.gpu,clocks.current.graphics,clocks.current.memory,power.draw,temperature.gpu", "--format=csv,noheader,nounits")
0 commit comments