From 47894e84c15f7905d4560755981256ad367a4338 Mon Sep 17 00:00:00 2001 From: "maofeng.huang" Date: Wed, 12 Feb 2025 14:09:00 +0800 Subject: [PATCH] Fix go-ixdcgm examples --- README.md | 10 +++++----- samples/devicecommon/main.go | 8 ++++---- samples/deviceinfo/main.go | 8 ++++---- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 305d76f..76bfe26 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ Total Memory (MB): : {{or .MemoryUsage.Total "N/A"}} Used Memory (MB): : {{or .MemoryUsage.Used "N/A"}} Free Memory (MB): : {{or .MemoryUsage.Free "N/A"}} Bandwidth (MB/s) : {{or .PCI.Bandwidth "N/A"}} -Power (W) : {{or .Power "N/A"}} +PowerLimit (W) : {{or .PowerLimit "N/A"}} --------------------------------------------------------------------- ` ) @@ -53,10 +53,10 @@ var ( ) func main() { - // choose dcgm hostengine running mode - // 1. dcgm.Embedded - // 2. dcgm.Standalone -connect "addr", -socket "isSocket" - // 3. dcgm.StartHostengine + // choose ixdcgm hostengine running mode + // 1. ixdcgm.Embedded + // 2. ixdcgm.Standalone -connect "addr", -socket "isSocket" + // 3. ixdcgm.StartHostengine flag.Parse() cleanup, err := ixdcgm.Init(ixdcgm.Standalone, *connectAddr, *isSocket) if err != nil { diff --git a/samples/devicecommon/main.go b/samples/devicecommon/main.go index c09103e..e758b53 100644 --- a/samples/devicecommon/main.go +++ b/samples/devicecommon/main.go @@ -30,10 +30,10 @@ var ( ) func main() { - // choose dcgm hostengine running mode - // 1. dcgm.Embedded - // 2. dcgm.Standalone -connect "addr", -socket "isSocket" - // 3. dcgm.StartHostengine + // choose ixdcgm hostengine running mode + // 1. ixdcgm.Embedded + // 2. ixdcgm.Standalone -connect "addr", -socket "isSocket" + // 3. ixdcgm.StartHostengine flag.Parse() cleanup, err := ixdcgm.Init(ixdcgm.Standalone, *connectAddr, *isSocket) if err != nil { diff --git a/samples/deviceinfo/main.go b/samples/deviceinfo/main.go index 5f71142..a1ededd 100644 --- a/samples/deviceinfo/main.go +++ b/samples/deviceinfo/main.go @@ -51,10 +51,10 @@ var ( ) func main() { - // choose dcgm hostengine running mode - // 1. dcgm.Embedded - // 2. dcgm.Standalone -connect "addr", -socket "isSocket" - // 3. dcgm.StartHostengine + // choose ixdcgm hostengine running mode + // 1. ixdcgm.Embedded + // 2. ixdcgm.Standalone -connect "addr", -socket "isSocket" + // 3. ixdcgm.StartHostengine flag.Parse() cleanup, err := ixdcgm.Init(ixdcgm.Standalone, *connectAddr, *isSocket) if err != nil { -- Gitee