added new speed test functions

This commit is contained in:
2021-04-04 00:47:56 +04:00
parent 9a11b064ee
commit 1c733a694e
7 changed files with 71 additions and 75 deletions

View File

@@ -33,6 +33,8 @@ type GpuClock struct {
GpuMemClock string `xml:"mem_clock"`
}
// Gets GPU information by calling nvidia-smi
// in XML output
func GPUInfo()(*Query,error) {
out, err := exec.Command("nvidia-smi", "-q", "-x").Output()