mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-26 18:18:24 +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
ac9eee956b
commit
35e0dea1d3
@ -156,6 +156,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