Skip to content

CICD-442 · NVIDIA driver validation ​

Encyclopedia · GPU and inference infrastructure · All snippets

Previous · CICD-441 · Next · CICD-443

1. Where it fits ​

  • Placement CI run step or authorized lab terminal.
  • Prerequisites dedicated GPU lab, approved images and model revision, fixed benchmark profile.
  • Platforms local-linux, github-actions, gitea-actions.
  • Parameters MIN_DRIVER.

2. Copy the snippet ​

bash
actual=$(nvidia-smi --query-gpu=driver_version --format=csv,noheader | head -n 1)
test "$(printf '%s\n' "${MIN_DRIVER:?}" "$actual" | sort -V | head -n 1)" = "$MIN_DRIVER"

3. How it works ​

The configured minimum and observed driver versions are sorted using version ordering. The minimum should sort first for a supported driver.

4. Verify the result ​

Use the minimum driver from the engine and CUDA compatibility matrix. Report the actual driver in evidence.

Validation syntax-validated (Bash parse). Status definitions.