Skip to content

Commit 89781ad

Browse files
Evan Lezarelezar
authored andcommitted
Merge branch 'use-major-minor-for-cuda-version' into 'main'
Use *.* pattern when locating libcuda.so See merge request nvidia/container-toolkit/container-toolkit!397
1 parent f677245 commit 89781ad

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
* Generate CDI specification files with `644` permissions to allow rootless applications (e.g. podman).
66
* Fix bug causing incorrect nvidia-smi symlink to be created on WSL2 systems with multiple driver roots.
7+
* Fix bug when using driver versions that do not include a patch component in their version number.
78

89
* [toolkit-container] Allow same envars for all runtime configs
910

internal/discover/graphics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ func newXorgDiscoverer(logger *logrus.Logger, driverRoot string, nvidiaCTKPath s
271271
libCudaPaths, err := cuda.New(
272272
cuda.WithLogger(logger),
273273
cuda.WithDriverRoot(driverRoot),
274-
).Locate(".*.*.*")
274+
).Locate(".*.*")
275275
if err != nil {
276276
return nil, fmt.Errorf("failed to locate libcuda.so: %v", err)
277277
}

pkg/nvcdi/management.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (m *managementlib) getCudaVersion() (string, error) {
8888
libCudaPaths, err := cuda.New(
8989
cuda.WithLogger(m.logger),
9090
cuda.WithDriverRoot(m.driverRoot),
91-
).Locate(".*.*.*")
91+
).Locate(".*.*")
9292
if err != nil {
9393
return "", fmt.Errorf("failed to locate libcuda.so: %v", err)
9494
}

0 commit comments

Comments
 (0)