index.js: - detectGpusViaSmi(): runs nvidia-smi --query-gpu=index,name,memory.total, driver_version and parses the output into structured GPU objects with name, memory_mb, driver, device — the same fields the cluster UI uses to determine BOUND status - Falls back to /dev/nvidia* file scan if nvidia-smi isn't available docker-compose.worker.yml: - Bind-mount /usr/bin/nvidia-smi and libnvidia-ml.so.1 from host into node-agent container (read-only). These are the minimum binaries needed for nvidia-smi to execute inside the container. - Mounts are optional — Docker ignores them silently if paths don't exist (e.g. on nodes without NVIDIA hardware) |
||
|---|---|---|
| .. | ||
| Dockerfile | ||
| index.js | ||
| package.json | ||