mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-05 04:06:33 +02:00
x11-drivers/nvidia-drivers: Generate CDI definitions during loading
Nvidia CDI definitions are used by Kubernetes to represent the topology of GPUs available to a node and allow workload placement on suitable GPUs. Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
parent
38024d4b14
commit
f76769f88c
@ -131,6 +131,8 @@ function install_and_load() {
|
||||
mknod -m 666 /dev/nvidia-uvm c $D 0
|
||||
fi
|
||||
|
||||
nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml
|
||||
|
||||
if [ "${NVIDIA_PERSISTENCE_MODE}" = "on" ]; then
|
||||
nvidia-persistenced
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user