Every run records GPUs (PCIe link under load and maximum, ReBAR, P2P), runtime image/tag/digest and the engine version the server reports, model, quant, KV cache, context and concurrency, plus a whitelisted system summary and a description. Shown on the run page, compare and sweep views; passed to BetterBench as notes and to the launch80 preview as sections. Settings -> Hardware for manual values. Also: scripts/intel-probe.sh (read-only diagnostics for Intel hosts), and --quick is no longer passed together with --passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
981c4170fc
commit
ee6c623e2a
45 files changed
+4627
-60
No files matched your search
Executable
+86
@@ -0,0 +1,86 @@
|
||||
#!/usr/bin/env bash
|
||||
# Read-only diagnostics for Intel GPU support (Arc / Arc Pro B-series) on a Kaname host.
|
||||
# Shows which telemetry sources this kernel and driver offer, so Kaname uses ones that exist.
|
||||
# Changes nothing. Run it on the Docker host (or VM) that has the GPU:
|
||||
#
|
||||
# bash scripts/intel-probe.sh # as your user: what an unprivileged container can see
|
||||
# sudo bash scripts/intel-probe.sh # adds lspci's link/ReBAR capability details
|
||||
#
|
||||
# Paste the output back. It contains no hostname, IP addresses or user names.
|
||||
|
||||
set -u
|
||||
section() { printf '\n=== %s ===\n' "$1"; }
|
||||
show() { [ -e "$1" ] && printf '%s: %s\n' "$1" "$(tr '\n' ' ' < "$1" 2>/dev/null || echo '(not readable)')"; }
|
||||
|
||||
section "System"
|
||||
echo "kernel: $(uname -r)"
|
||||
grep -E '^(PRETTY_NAME|VERSION_ID)=' /etc/os-release 2>/dev/null
|
||||
command -v systemd-detect-virt >/dev/null && echo "virt: $(systemd-detect-virt 2>/dev/null)"
|
||||
show /sys/class/dmi/id/sys_vendor
|
||||
show /sys/class/dmi/id/product_name
|
||||
echo "running as uid $(id -u)"
|
||||
|
||||
section "Intel display devices"
|
||||
gpus=()
|
||||
for d in /sys/bus/pci/devices/*; do
|
||||
[ "$(cat "$d/vendor" 2>/dev/null)" = "0x8086" ] || continue
|
||||
case "$(cat "$d/class" 2>/dev/null)" in 0x03*) gpus+=("$(basename "$d")") ;; esac
|
||||
done
|
||||
[ ${#gpus[@]} -eq 0 ] && echo "no Intel GPU found on the PCI bus"
|
||||
|
||||
for a in "${gpus[@]}"; do
|
||||
d=$(readlink -f "/sys/bus/pci/devices/$a")
|
||||
section "GPU $a"
|
||||
echo "sysfs path: $d"
|
||||
show "$d/device"
|
||||
show "$d/subsystem_device"
|
||||
echo "driver: $(basename "$(readlink "$d/driver" 2>/dev/null)" 2>/dev/null)"
|
||||
command -v lspci >/dev/null && lspci -nn -s "$a"
|
||||
echo "-- link per level (GPU up to the root port):"
|
||||
p=$d
|
||||
while [[ $(basename "$p") =~ ^[0-9a-f]{4}:[0-9a-f]{2}:[0-9a-f]{2}\.[0-7]$ ]]; do
|
||||
printf '%s vendor=%s cur=%s x%s max=%s x%s\n' "$(basename "$p")" "$(cat "$p/vendor" 2>/dev/null)" \
|
||||
"$(cat "$p/current_link_speed" 2>/dev/null)" "$(cat "$p/current_link_width" 2>/dev/null)" \
|
||||
"$(cat "$p/max_link_speed" 2>/dev/null)" "$(cat "$p/max_link_width" 2>/dev/null)"
|
||||
p=$(dirname "$p")
|
||||
done
|
||||
echo "-- BARs (start end flags):"
|
||||
head -6 "$d/resource" 2>/dev/null
|
||||
echo "-- VRAM / memory files:"
|
||||
find "$d" -maxdepth 3 \( -iname '*vram*' -o -iname '*lmem*' -o -iname '*mem_info*' \) 2>/dev/null | while read -r f; do
|
||||
[ -f "$f" ] && show "$f"
|
||||
done
|
||||
ls "$d/tile0" 2>/dev/null | head -30
|
||||
echo "-- hwmon:"
|
||||
for h in "$d"/hwmon/hwmon*; do
|
||||
[ -d "$h" ] || continue
|
||||
show "$h/name"
|
||||
for f in "$h"/*_input "$h"/*_label "$h"/*_crit "$h"/power*_max; do [ -f "$f" ] && show "$f"; done
|
||||
done
|
||||
if [ "$(id -u)" = 0 ] && command -v lspci >/dev/null; then
|
||||
echo "-- lspci capabilities:"
|
||||
lspci -vvv -s "$a" | grep -E 'LnkCap:|LnkSta:|Resizable BAR|BAR [0-9]: current size|Region'
|
||||
fi
|
||||
done
|
||||
|
||||
section "/dev/dri"
|
||||
ls -ln /dev/dri 2>/dev/null
|
||||
for n in /dev/dri/renderD*; do [ -e "$n" ] && echo "$n gid=$(stat -c %g "$n") group=$(stat -c %G "$n")"; done
|
||||
getent group render video | cut -d: -f1,3
|
||||
|
||||
section "DRM fdinfo (per-process VRAM / engine time)"
|
||||
found=0
|
||||
for f in /proc/[0-9]*/fdinfo/*; do
|
||||
grep -q '^drm-driver:' "$f" 2>/dev/null || continue
|
||||
found=1
|
||||
echo "readable example: $f"
|
||||
grep -E '^drm-(driver|client-id|engine-|cycles-|total-cycles-|memory-|total-|resident-)' "$f" | head -25
|
||||
break
|
||||
done
|
||||
[ $found = 0 ] && echo "no readable DRM fdinfo (no GPU process running, or not permitted for this user)"
|
||||
|
||||
section "Tools"
|
||||
for t in xpu-smi intel_gpu_top clinfo sycl-ls vulkaninfo docker; do
|
||||
printf '%s: %s\n' "$t" "$(command -v "$t" || echo missing)"
|
||||
done
|
||||
command -v docker >/dev/null && docker version --format 'docker server {{.Server.Version}}' 2>/dev/null
|
||||
Reference in new issue
Block a user