nvidia-container-toolkit/internal/lookup
Evan Lezar fa5a4ac499
Read ldcache at construction instead of on each locate call
This change udpates the ldcache locator to read the ldcache at construction
and use these contents to perform future lookups against. Each of the cache
entries are resolved and lookups return the resolved target.

Assuming a symlink chain: libcuda.so -> libcuda.so.1 -> libcuda.so.VERSION, this
means that libcuda.so.VERION will be returned for any of the following inputs:
libcuda.so, libcuda.so.1, libcudal.so.*.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
2024-10-24 23:12:58 +02:00
..
cuda run goimports -local against the entire codebase 2023-12-01 11:13:17 +01:00
root [no-relnote] Add test for libcuda lookup 2024-10-24 15:56:25 +02:00
symlinks Fix typo in error message 2024-10-17 15:46:49 +02:00
device_test.go
device.go
dir.go Use functional options when constructing direcory locator 2023-07-18 15:36:03 +02:00
executable_test.go
executable.go Define a basic logger interface 2023-06-12 10:46:10 +02:00
file_test.go
file.go Remove duplicate not found error 2023-11-21 18:09:42 +01:00
ldcache_test.go Read ldcache at construction instead of on each locate call 2024-10-24 23:12:58 +02:00
ldcache.go Read ldcache at construction instead of on each locate call 2024-10-24 23:12:58 +02:00
library_test.go Read ldcache at construction instead of on each locate call 2024-10-24 23:12:58 +02:00
library.go Read ldcache at construction instead of on each locate call 2024-10-24 23:12:58 +02:00
locator_mock.go
locator.go Add support for specifying search paths 2023-11-22 13:27:47 +01:00
merge.go Make library lookups more robust 2023-11-06 12:15:28 -06:00
null.go Read ldcache at construction instead of on each locate call 2024-10-24 23:12:58 +02:00
path.go
symlinks.go Fix bug in sorting of symlink chain 2024-10-24 15:56:25 +02:00