Skip to content

Commit 35e0dea

Browse files
committed
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 <[email protected]>
1 parent ac9eee9 commit 35e0dea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: pkg/nvcdi/lib.go

+2
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,8 @@ func New(opts ...Option) (Interface, error) {
156156
if l.vendor == "" {
157157
l.vendor = "management.nvidia.com"
158158
}
159+
// Management containers in general do not require CUDA Forward compatibility.
160+
l.disabledHooks[HookEnableCudaCompat] = true
159161
lib = (*managementlib)(l)
160162
case ModeNvml:
161163
lib = (*nvmllib)(l)

0 commit comments

Comments
 (0)