From 345c3ea8e38da5661ee2e31d13aaeae45467a958 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 28 Apr 2024 07:04:23 +0000 Subject: [PATCH] Bump github.com/NVIDIA/go-nvml from 0.12.0-4 to 0.12.0-5 Bumps [github.com/NVIDIA/go-nvml](https://github.com/NVIDIA/go-nvml) from 0.12.0-4 to 0.12.0-5. - [Commits](https://github.com/NVIDIA/go-nvml/compare/v0.12.0-4...v0.12.0-5) --- updated-dependencies: - dependency-name: github.com/NVIDIA/go-nvml dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 +- .../NVIDIA/go-nvml/pkg/nvml/init.go | 6 +-- .../github.com/NVIDIA/go-nvml/pkg/nvml/lib.go | 44 +++++++++---------- vendor/modules.txt | 2 +- 5 files changed, 29 insertions(+), 29 deletions(-) diff --git a/go.mod b/go.mod index d34131dcf..bd3e01b0d 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.22.2 require ( github.com/NVIDIA/go-gpuallocator v0.4.0 github.com/NVIDIA/go-nvlib v0.3.0 - github.com/NVIDIA/go-nvml v0.12.0-4 + github.com/NVIDIA/go-nvml v0.12.0-5 github.com/NVIDIA/nvidia-container-toolkit v1.15.1-0.20240419094620-0aed9a16addf github.com/fsnotify/fsnotify v1.7.0 github.com/google/uuid v1.6.0 diff --git a/go.sum b/go.sum index 77059284a..189ea926a 100644 --- a/go.sum +++ b/go.sum @@ -25,8 +25,8 @@ github.com/NVIDIA/go-gpuallocator v0.4.0 h1:GWiCS6sBCKO/9YYcAi8sAe+NBZ19W3IZQ5eB github.com/NVIDIA/go-gpuallocator v0.4.0/go.mod h1:Mo/KUZtnsf1Wc3NDMfXxErP/IS5iB1xS+0IBoNyd7e0= github.com/NVIDIA/go-nvlib v0.3.0 h1:vd7jSOthJTqzqIWZrv317xDr1+Mnjoy5X4N69W9YwQM= github.com/NVIDIA/go-nvlib v0.3.0/go.mod h1:NasUuId9hYFvwzuOHCu9F2X6oTU2tG0JHTfbJYuDAbA= -github.com/NVIDIA/go-nvml v0.12.0-4 h1:BvPjnjJr6qje0zov57Md7TwEA8i/12kZeUQIpyWzTEE= -github.com/NVIDIA/go-nvml v0.12.0-4/go.mod h1:8Llmj+1Rr+9VGGwZuRer5N/aCjxGuR5nPb/9ebBiIEQ= +github.com/NVIDIA/go-nvml v0.12.0-5 h1:4DYsngBqJEAEj+/RFmBZ43Q3ymoR3tyS0oBuJk12Fag= +github.com/NVIDIA/go-nvml v0.12.0-5/go.mod h1:8Llmj+1Rr+9VGGwZuRer5N/aCjxGuR5nPb/9ebBiIEQ= github.com/NVIDIA/nvidia-container-toolkit v1.15.1-0.20240419094620-0aed9a16addf h1:6eKsIVTytQ34X4rFoPjcW+JbJ8XvYH3ITevLED+enD8= github.com/NVIDIA/nvidia-container-toolkit v1.15.1-0.20240419094620-0aed9a16addf/go.mod h1:92ofuEEVSg9zK6TTFHQyNhKy2nCk3S3Qe9QIATfcfHc= github.com/Shopify/logrus-bugsnag v0.0.0-20171204204709-577dee27f20d h1:UrqY+r/OJnIp5u0s1SbQ8dVfLCZJsnvazdBP5hS4iRs= diff --git a/vendor/github.com/NVIDIA/go-nvml/pkg/nvml/init.go b/vendor/github.com/NVIDIA/go-nvml/pkg/nvml/init.go index 6c4bd58fb..06e644419 100644 --- a/vendor/github.com/NVIDIA/go-nvml/pkg/nvml/init.go +++ b/vendor/github.com/NVIDIA/go-nvml/pkg/nvml/init.go @@ -18,7 +18,7 @@ import "C" // nvml.Init() func (l *library) Init() Return { - if err := libnvml.load(); err != nil { + if err := l.load(); err != nil { return ERROR_LIBRARY_NOT_FOUND } return nvmlInit() @@ -26,7 +26,7 @@ func (l *library) Init() Return { // nvml.InitWithFlags() func (l *library) InitWithFlags(flags uint32) Return { - if err := libnvml.load(); err != nil { + if err := l.load(); err != nil { return ERROR_LIBRARY_NOT_FOUND } return nvmlInitWithFlags(flags) @@ -39,7 +39,7 @@ func (l *library) Shutdown() Return { return ret } - err := libnvml.close() + err := l.close() if err != nil { return ERROR_UNKNOWN } diff --git a/vendor/github.com/NVIDIA/go-nvml/pkg/nvml/lib.go b/vendor/github.com/NVIDIA/go-nvml/pkg/nvml/lib.go index 4d2653183..bc4c3de5e 100644 --- a/vendor/github.com/NVIDIA/go-nvml/pkg/nvml/lib.go +++ b/vendor/github.com/NVIDIA/go-nvml/pkg/nvml/lib.go @@ -198,93 +198,93 @@ func (pis ProcessInfo_v2Slice) ToProcessInfoSlice() []ProcessInfo { // When new versioned symbols are added, these would have to be initialized above and have // corresponding checks and subsequent assignments added below. func (l *library) updateVersionedSymbols() { - err := l.LookupSymbol("nvmlInit_v2") + err := l.dl.Lookup("nvmlInit_v2") if err == nil { nvmlInit = nvmlInit_v2 } - err = l.LookupSymbol("nvmlDeviceGetPciInfo_v2") + err = l.dl.Lookup("nvmlDeviceGetPciInfo_v2") if err == nil { nvmlDeviceGetPciInfo = nvmlDeviceGetPciInfo_v2 } - err = l.LookupSymbol("nvmlDeviceGetPciInfo_v3") + err = l.dl.Lookup("nvmlDeviceGetPciInfo_v3") if err == nil { nvmlDeviceGetPciInfo = nvmlDeviceGetPciInfo_v3 } - err = l.LookupSymbol("nvmlDeviceGetCount_v2") + err = l.dl.Lookup("nvmlDeviceGetCount_v2") if err == nil { nvmlDeviceGetCount = nvmlDeviceGetCount_v2 } - err = l.LookupSymbol("nvmlDeviceGetHandleByIndex_v2") + err = l.dl.Lookup("nvmlDeviceGetHandleByIndex_v2") if err == nil { nvmlDeviceGetHandleByIndex = nvmlDeviceGetHandleByIndex_v2 } - err = l.LookupSymbol("nvmlDeviceGetHandleByPciBusId_v2") + err = l.dl.Lookup("nvmlDeviceGetHandleByPciBusId_v2") if err == nil { nvmlDeviceGetHandleByPciBusId = nvmlDeviceGetHandleByPciBusId_v2 } - err = l.LookupSymbol("nvmlDeviceGetNvLinkRemotePciInfo_v2") + err = l.dl.Lookup("nvmlDeviceGetNvLinkRemotePciInfo_v2") if err == nil { nvmlDeviceGetNvLinkRemotePciInfo = nvmlDeviceGetNvLinkRemotePciInfo_v2 } // Unable to overwrite nvmlDeviceRemoveGpu() because the v2 function takes // a different set of parameters than the v1 function. - //err = l.LookupSymbol("nvmlDeviceRemoveGpu_v2") + //err = l.dl.Lookup("nvmlDeviceRemoveGpu_v2") //if err == nil { // nvmlDeviceRemoveGpu = nvmlDeviceRemoveGpu_v2 //} - err = l.LookupSymbol("nvmlDeviceGetGridLicensableFeatures_v2") + err = l.dl.Lookup("nvmlDeviceGetGridLicensableFeatures_v2") if err == nil { nvmlDeviceGetGridLicensableFeatures = nvmlDeviceGetGridLicensableFeatures_v2 } - err = l.LookupSymbol("nvmlDeviceGetGridLicensableFeatures_v3") + err = l.dl.Lookup("nvmlDeviceGetGridLicensableFeatures_v3") if err == nil { nvmlDeviceGetGridLicensableFeatures = nvmlDeviceGetGridLicensableFeatures_v3 } - err = l.LookupSymbol("nvmlDeviceGetGridLicensableFeatures_v4") + err = l.dl.Lookup("nvmlDeviceGetGridLicensableFeatures_v4") if err == nil { nvmlDeviceGetGridLicensableFeatures = nvmlDeviceGetGridLicensableFeatures_v4 } - err = l.LookupSymbol("nvmlEventSetWait_v2") + err = l.dl.Lookup("nvmlEventSetWait_v2") if err == nil { nvmlEventSetWait = nvmlEventSetWait_v2 } - err = l.LookupSymbol("nvmlDeviceGetAttributes_v2") + err = l.dl.Lookup("nvmlDeviceGetAttributes_v2") if err == nil { nvmlDeviceGetAttributes = nvmlDeviceGetAttributes_v2 } - err = l.LookupSymbol("nvmlComputeInstanceGetInfo_v2") + err = l.dl.Lookup("nvmlComputeInstanceGetInfo_v2") if err == nil { nvmlComputeInstanceGetInfo = nvmlComputeInstanceGetInfo_v2 } - err = l.LookupSymbol("nvmlDeviceGetComputeRunningProcesses_v2") + err = l.dl.Lookup("nvmlDeviceGetComputeRunningProcesses_v2") if err == nil { deviceGetComputeRunningProcesses = deviceGetComputeRunningProcesses_v2 } - err = l.LookupSymbol("nvmlDeviceGetComputeRunningProcesses_v3") + err = l.dl.Lookup("nvmlDeviceGetComputeRunningProcesses_v3") if err == nil { deviceGetComputeRunningProcesses = deviceGetComputeRunningProcesses_v3 } - err = l.LookupSymbol("nvmlDeviceGetGraphicsRunningProcesses_v2") + err = l.dl.Lookup("nvmlDeviceGetGraphicsRunningProcesses_v2") if err == nil { deviceGetGraphicsRunningProcesses = deviceGetGraphicsRunningProcesses_v2 } - err = l.LookupSymbol("nvmlDeviceGetGraphicsRunningProcesses_v3") + err = l.dl.Lookup("nvmlDeviceGetGraphicsRunningProcesses_v3") if err == nil { deviceGetGraphicsRunningProcesses = deviceGetGraphicsRunningProcesses_v3 } - err = l.LookupSymbol("nvmlDeviceGetMPSComputeRunningProcesses_v2") + err = l.dl.Lookup("nvmlDeviceGetMPSComputeRunningProcesses_v2") if err == nil { deviceGetMPSComputeRunningProcesses = deviceGetMPSComputeRunningProcesses_v2 } - err = l.LookupSymbol("nvmlDeviceGetMPSComputeRunningProcesses_v3") + err = l.dl.Lookup("nvmlDeviceGetMPSComputeRunningProcesses_v3") if err == nil { deviceGetMPSComputeRunningProcesses = deviceGetMPSComputeRunningProcesses_v3 } - err = l.LookupSymbol("nvmlDeviceGetGpuInstancePossiblePlacements_v2") + err = l.dl.Lookup("nvmlDeviceGetGpuInstancePossiblePlacements_v2") if err == nil { nvmlDeviceGetGpuInstancePossiblePlacements = nvmlDeviceGetGpuInstancePossiblePlacements_v2 } - err = l.LookupSymbol("nvmlVgpuInstanceGetLicenseInfo_v2") + err = l.dl.Lookup("nvmlVgpuInstanceGetLicenseInfo_v2") if err == nil { nvmlVgpuInstanceGetLicenseInfo = nvmlVgpuInstanceGetLicenseInfo_v2 } diff --git a/vendor/modules.txt b/vendor/modules.txt index 18aacebcb..a007c12df 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -35,7 +35,7 @@ github.com/NVIDIA/go-gpuallocator/internal/links ## explicit; go 1.20 github.com/NVIDIA/go-nvlib/pkg/nvlib/device github.com/NVIDIA/go-nvlib/pkg/nvlib/info -# github.com/NVIDIA/go-nvml v0.12.0-4 +# github.com/NVIDIA/go-nvml v0.12.0-5 ## explicit; go 1.20 github.com/NVIDIA/go-nvml/pkg/dl github.com/NVIDIA/go-nvml/pkg/nvml