Skip to content

Commit

Permalink
Clarify the reasoning why we don't automate installing the gpu driver.
Browse files Browse the repository at this point in the history
  • Loading branch information
aieri committed Dec 19, 2024
1 parent f36429b commit b0525b5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/hw_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,11 @@ def disk_hw_verifier() -> Set[HWTool]:
def nvidia_gpu_verifier() -> Set[HWTool]:
"""Verify if an NVIDIA gpu is present and the driver is loaded.
Installing the correct driver is a task left to the operator or to the
principal charm that needs to use the gpu.
Depending on the usage of the node (local gpu usage, vgpu configuration,
pci passthrough), a driver must or must not be installed. Since hardware
observer has no way to know what is the intention of the operator, we don't
automate the graphics driver installation. This task should be left to the
principal charm that is going to use the gpu.
"""
gpus = lshw(class_filter="display")
if any("nvidia" in gpu.get("vendor", "").lower() for gpu in gpus):
Expand Down

0 comments on commit b0525b5

Please sign in to comment.