nvidia-container-toolkit/internal
Evan Lezar f4981f0876
Add cuda-compat-mode config option
This change adds an nvidia-container-runtime.modes.legacy.cuda-compat-mode
config option. This can be set to one of four values:

* ldconfig (default): the --cuda-compat-mode=ldconfig flag is passed to the nvidia-container-cli
* mount: the --cuda-compat-mode=mount flag is passed to the nvidia-conainer-cli
* disabled: the --cuda-compat-mode=disabled flag is passed to the nvidia-container-cli
* hook: the --cuda-compat-mode=disabled flag is passed to the nvidia-container-cli AND the
  enable-cuda-compat hook is used to provide forward compatibility.

Note that the disable-cuda-compat-lib-hook feature flag will prevent the enable-cuda-compat
hook from being used. This change also means that the allow-cuda-compat-libs-from-container
feature flag no longer has any effect.

Signed-off-by: Evan Lezar <elezar@nvidia.com>
2025-05-13 21:49:53 +02:00
..
config Add cuda-compat-mode config option 2025-05-13 21:49:53 +02:00
cuda Fix build and test on darwin 2024-02-05 23:58:28 +01:00
discover Skip nil discoverers in merge 2025-05-07 12:51:38 +02:00
dxcore Use D3DKMTEnumAdapters3 for adapter enumeration 2024-03-12 11:42:08 +01:00
edits run goimports -local against the entire codebase 2023-12-01 11:13:17 +01:00
info Fix mode detection on Thor-based systems 2025-05-13 21:25:11 +02:00
ldcache Fix resolution of libs in LDCache on ARM 2025-04-23 14:28:28 +02:00
logger Add Tracef to logger Interface 2024-07-01 12:12:38 +02:00
lookup [no-relnotes] Update moq to use rm and goimports 2025-03-12 13:12:13 +02:00
modifier Add cuda-compat-mode config option 2025-05-13 21:49:53 +02:00
nvcaps Correct constructin of MIG Caps 2022-10-13 14:06:30 +02:00
nvsandboxutils [no-relnotes] Update moq to use rm and goimports 2025-03-12 13:12:13 +02:00
oci [no-relnote] Fix QF1008: could remove embedded field lint errors 2025-04-02 14:18:32 +02:00
platform-support [no-relnote] Fix QF1002: could use tagged switch on info.SubType lint errors 2025-04-02 14:18:32 +02:00
requirements [no-relnotes] Update moq to use rm and goimports 2025-03-12 13:12:13 +02:00
runtime Ensure that mode hook is executed last 2025-02-27 15:58:15 +02:00
system [no-relnotes] Update moq to use rm and goimports 2025-03-12 13:12:13 +02:00
test