lib/nvidia_utils.pm

install

install([ variant => 'cuda' ], [ reboot => 0 ]);

Install the NVIDIA driver and the compute utils, making sure to remove any conflicting variant first. Also, it tries to add the relevant repositories to grab the packages from, defined by the job through NVIDIA_REPO and NVIDIA_CUDA_REPO. Make sure to reboot the SUT after calling this subroutine.

Options:

$variant if set to "cuda", install the CUDA variant of the driver.

$reboot reboot the SUT after a successful installation. Implies serial_terminal and opensusebasetest.

validate

validate();

Do basic testing of the NVIDIA driver: check the GPU name, make sure the module is loaded and log `nvidia-smi` output.