From c4d3b13ae21397fa5cee30accdfd06f79743db26 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Wed, 14 Jun 2023 17:55:33 +0200 Subject: [PATCH] Update go-nvlib with new constructor Signed-off-by: Evan Lezar --- cmd/nvidia-ctk/system/create-dev-char-symlinks/all.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/nvidia-ctk/system/create-dev-char-symlinks/all.go b/cmd/nvidia-ctk/system/create-dev-char-symlinks/all.go index f601e3e7..92ddc5f9 100644 --- a/cmd/nvidia-ctk/system/create-dev-char-symlinks/all.go +++ b/cmd/nvidia-ctk/system/create-dev-char-symlinks/all.go @@ -71,8 +71,8 @@ func newAllPossible(logger logger.Interface, driverRoot string) (nodeLister, err // DeviceNodes returns a list of all possible device nodes for NVIDIA GPUs, control devices, and capability devices. func (m allPossible) DeviceNodes() ([]deviceNode, error) { - gpus, err := nvpci.NewFrom( - filepath.Join(m.driverRoot, nvpci.PCIDevicesRoot), + gpus, err := nvpci.New( + nvpci.WithPCIDevicesRoot(filepath.Join(m.driverRoot, nvpci.PCIDevicesRoot)), ).GetGPUs() if err != nil { return nil, fmt.Errorf("failed to get GPU information: %v", err)