From 59f7ebd3a897f27859a73fbd87b815c90e814d6c Mon Sep 17 00:00:00 2001 From: "maofeng.huang" Date: Wed, 12 Mar 2025 18:59:05 +0800 Subject: [PATCH] Fix the issue in Standalone mode --- pkg/ixdcgm/standalone.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/ixdcgm/standalone.go b/pkg/ixdcgm/standalone.go index 76f3085..486b156 100644 --- a/pkg/ixdcgm/standalone.go +++ b/pkg/ixdcgm/standalone.go @@ -36,9 +36,9 @@ type standalone struct { } func (s *standalone) Shutdown() error { - result := C.dcgmStopEmbedded(handle.handle) + result := C.dcgmDisconnect(handle.handle) if err := errorString(result); err != nil { - return fmt.Errorf("failed to stop embedded dcgm: %v", err) + return fmt.Errorf("Error disconnecting from ix-hostengine: %s", err) } result = C.dcgmShutdown() -- Gitee