mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-03-09 22:00:31 +00:00
Disable enable-cuda-compat hook for management containers
Management containers don't generally need forward compatibility. We disable the enable-cuda-compat hook to not include this in the generated CDI specifications. Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
88b2aa6707
commit
57851206f0
@ -80,12 +80,6 @@ containerEdits:
|
|||||||
- libcuda.so.1::/lib/x86_64-linux-gnu/libcuda.so
|
- libcuda.so.1::/lib/x86_64-linux-gnu/libcuda.so
|
||||||
hookName: createContainer
|
hookName: createContainer
|
||||||
path: {{ .toolkitRoot }}/nvidia-cdi-hook
|
path: {{ .toolkitRoot }}/nvidia-cdi-hook
|
||||||
- args:
|
|
||||||
- nvidia-cdi-hook
|
|
||||||
- enable-cuda-compat
|
|
||||||
- --host-driver-version=999.88.77
|
|
||||||
hookName: createContainer
|
|
||||||
path: {{ .toolkitRoot }}/nvidia-cdi-hook
|
|
||||||
- args:
|
- args:
|
||||||
- nvidia-cdi-hook
|
- nvidia-cdi-hook
|
||||||
- update-ldcache
|
- update-ldcache
|
||||||
|
@ -144,6 +144,8 @@ func New(opts ...Option) (Interface, error) {
|
|||||||
if l.vendor == "" {
|
if l.vendor == "" {
|
||||||
l.vendor = "management.nvidia.com"
|
l.vendor = "management.nvidia.com"
|
||||||
}
|
}
|
||||||
|
// Management containers in general do not require CUDA Forward compatibility.
|
||||||
|
l.disabledHooks[HookEnableCudaCompat] = true
|
||||||
lib = (*managementlib)(l)
|
lib = (*managementlib)(l)
|
||||||
case ModeNvml:
|
case ModeNvml:
|
||||||
lib = (*nvmllib)(l)
|
lib = (*nvmllib)(l)
|
||||||
|
Loading…
Reference in New Issue
Block a user