nvidia-container-toolkit/internal/ldcache
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
..
ldcache_mock.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