From 082ce066ed1c8e92a2d65a45ae3922451cbeb2ea Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Thu, 18 Apr 2024 14:50:00 +0200 Subject: [PATCH] Replace go-nvlib/pkg/nvml with go-nvml/pkg/nvml Signed-off-by: Evan Lezar --- internal/info/additional_info.go | 2 +- internal/info/additional_info_test.go | 2 +- internal/info/auto.go | 2 +- pkg/nvcdi/driver-nvml.go | 2 +- pkg/nvcdi/full-gpu-nvml.go | 2 +- pkg/nvcdi/lib-nvml.go | 2 +- pkg/nvcdi/lib.go | 2 +- pkg/nvcdi/mig-device-nvml.go | 2 +- pkg/nvcdi/namer.go | 2 +- pkg/nvcdi/namer_nvml_mock.go | 2 +- pkg/nvcdi/namer_test.go | 2 +- pkg/nvcdi/options.go | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/internal/info/additional_info.go b/internal/info/additional_info.go index 3d37fd2a..760d510d 100644 --- a/internal/info/additional_info.go +++ b/internal/info/additional_info.go @@ -22,7 +22,7 @@ import ( "github.com/NVIDIA/go-nvlib/pkg/nvlib/device" "github.com/NVIDIA/go-nvlib/pkg/nvlib/info" - "github.com/NVIDIA/go-nvlib/pkg/nvml" + "github.com/NVIDIA/go-nvml/pkg/nvml" ) // additionalInfo allows for the info.Interface to be extened to implement the infoInterface. diff --git a/internal/info/additional_info_test.go b/internal/info/additional_info_test.go index a7c9518f..a2b69400 100644 --- a/internal/info/additional_info_test.go +++ b/internal/info/additional_info_test.go @@ -20,7 +20,7 @@ import ( "testing" "github.com/NVIDIA/go-nvlib/pkg/nvlib/device" - "github.com/NVIDIA/go-nvlib/pkg/nvml" + "github.com/NVIDIA/go-nvml/pkg/nvml" "github.com/stretchr/testify/require" ) diff --git a/internal/info/auto.go b/internal/info/auto.go index 3ca7f15e..5d1426d9 100644 --- a/internal/info/auto.go +++ b/internal/info/auto.go @@ -19,7 +19,7 @@ package info import ( "github.com/NVIDIA/go-nvlib/pkg/nvlib/device" "github.com/NVIDIA/go-nvlib/pkg/nvlib/info" - "github.com/NVIDIA/go-nvlib/pkg/nvml" + "github.com/NVIDIA/go-nvml/pkg/nvml" "github.com/NVIDIA/nvidia-container-toolkit/internal/config/image" "github.com/NVIDIA/nvidia-container-toolkit/internal/logger" diff --git a/pkg/nvcdi/driver-nvml.go b/pkg/nvcdi/driver-nvml.go index 10d154d6..99374003 100644 --- a/pkg/nvcdi/driver-nvml.go +++ b/pkg/nvcdi/driver-nvml.go @@ -22,7 +22,7 @@ import ( "path/filepath" "strings" - "github.com/NVIDIA/go-nvlib/pkg/nvml" + "github.com/NVIDIA/go-nvml/pkg/nvml" "golang.org/x/sys/unix" "github.com/NVIDIA/nvidia-container-toolkit/internal/discover" diff --git a/pkg/nvcdi/full-gpu-nvml.go b/pkg/nvcdi/full-gpu-nvml.go index 9e4013ef..c7327757 100644 --- a/pkg/nvcdi/full-gpu-nvml.go +++ b/pkg/nvcdi/full-gpu-nvml.go @@ -23,7 +23,7 @@ import ( "strings" "github.com/NVIDIA/go-nvlib/pkg/nvlib/device" - "github.com/NVIDIA/go-nvlib/pkg/nvml" + "github.com/NVIDIA/go-nvml/pkg/nvml" "tags.cncf.io/container-device-interface/pkg/cdi" "tags.cncf.io/container-device-interface/specs-go" diff --git a/pkg/nvcdi/lib-nvml.go b/pkg/nvcdi/lib-nvml.go index 0403901a..95236651 100644 --- a/pkg/nvcdi/lib-nvml.go +++ b/pkg/nvcdi/lib-nvml.go @@ -22,7 +22,7 @@ import ( "strings" "github.com/NVIDIA/go-nvlib/pkg/nvlib/device" - "github.com/NVIDIA/go-nvlib/pkg/nvml" + "github.com/NVIDIA/go-nvml/pkg/nvml" "tags.cncf.io/container-device-interface/pkg/cdi" "tags.cncf.io/container-device-interface/specs-go" diff --git a/pkg/nvcdi/lib.go b/pkg/nvcdi/lib.go index ad75a239..7f07fd7e 100644 --- a/pkg/nvcdi/lib.go +++ b/pkg/nvcdi/lib.go @@ -21,7 +21,7 @@ import ( "github.com/NVIDIA/go-nvlib/pkg/nvlib/device" "github.com/NVIDIA/go-nvlib/pkg/nvlib/info" - "github.com/NVIDIA/go-nvlib/pkg/nvml" + "github.com/NVIDIA/go-nvml/pkg/nvml" "tags.cncf.io/container-device-interface/pkg/cdi" "github.com/NVIDIA/nvidia-container-toolkit/internal/logger" diff --git a/pkg/nvcdi/mig-device-nvml.go b/pkg/nvcdi/mig-device-nvml.go index 86ce04d2..d67d7d46 100644 --- a/pkg/nvcdi/mig-device-nvml.go +++ b/pkg/nvcdi/mig-device-nvml.go @@ -20,7 +20,7 @@ import ( "fmt" "github.com/NVIDIA/go-nvlib/pkg/nvlib/device" - "github.com/NVIDIA/go-nvlib/pkg/nvml" + "github.com/NVIDIA/go-nvml/pkg/nvml" "tags.cncf.io/container-device-interface/pkg/cdi" "tags.cncf.io/container-device-interface/specs-go" diff --git a/pkg/nvcdi/namer.go b/pkg/nvcdi/namer.go index e6a27f45..8edd8f07 100644 --- a/pkg/nvcdi/namer.go +++ b/pkg/nvcdi/namer.go @@ -20,7 +20,7 @@ import ( "errors" "fmt" - "github.com/NVIDIA/go-nvlib/pkg/nvml" + "github.com/NVIDIA/go-nvml/pkg/nvml" ) // UUIDer is an interface for getting UUIDs. diff --git a/pkg/nvcdi/namer_nvml_mock.go b/pkg/nvcdi/namer_nvml_mock.go index 68bc1782..6a704b45 100644 --- a/pkg/nvcdi/namer_nvml_mock.go +++ b/pkg/nvcdi/namer_nvml_mock.go @@ -6,7 +6,7 @@ package nvcdi import ( "sync" - "github.com/NVIDIA/go-nvlib/pkg/nvml" + "github.com/NVIDIA/go-nvml/pkg/nvml" ) // Ensure, that nvmlUUIDerMock does implement nvmlUUIDer. diff --git a/pkg/nvcdi/namer_test.go b/pkg/nvcdi/namer_test.go index 1a106f68..f959609d 100644 --- a/pkg/nvcdi/namer_test.go +++ b/pkg/nvcdi/namer_test.go @@ -19,7 +19,7 @@ package nvcdi import ( "testing" - "github.com/NVIDIA/go-nvlib/pkg/nvml" + "github.com/NVIDIA/go-nvml/pkg/nvml" "github.com/stretchr/testify/require" ) diff --git a/pkg/nvcdi/options.go b/pkg/nvcdi/options.go index a4e49b60..89992a54 100644 --- a/pkg/nvcdi/options.go +++ b/pkg/nvcdi/options.go @@ -18,7 +18,7 @@ package nvcdi import ( "github.com/NVIDIA/go-nvlib/pkg/nvlib/device" - "github.com/NVIDIA/go-nvlib/pkg/nvml" + "github.com/NVIDIA/go-nvml/pkg/nvml" "github.com/NVIDIA/nvidia-container-toolkit/internal/logger" "github.com/NVIDIA/nvidia-container-toolkit/pkg/nvcdi/transform"