#!/bin/sh
# Hermetic stand-in for nvidia-smi, put first in PATH by `scripts/check-local.sh --product` (and the Product workflow).
# The leleka-deploy end-to-end tests read the host GPU through `nvidia-smi` and the default loopback ports; without this stand-in
# their result depends on the machine they run on (a CI host has no GPU, a workstation has a busy one). It reports one idle
# RTX 5090 (32 GiB, sm_120, driver 595.71.05) and nothing else; no CUDA, no GPU access, no output beyond the query the tool makes.
case "$*" in
  *--query-gpu*) echo "0, NVIDIA GeForce RTX 5090, 595.71.05, 32607, 32100, 12.0" ;;
  *) echo "scripts/ci/nvidia-smi: hermetic stand-in, not the NVIDIA tool" ;;
esac
