A simple Go HTTP service to collect NVIDIA-SMI dumps and expose in-memory device information.
POST /dump: Accepts JSON dumps fromnvidia-smioutput (host → devices) and stores in a thread-safe in-memory map.GET /devices: Returns the full map of hosts and their device lists.GET /summary: Returns per-host summaries:total_gpustotal_used_mem(MiB)total_free_mem(MiB)avg_free_mem_per_gpu(MiB)
- Go 1.24.2+
nvidia-smiavailable on agents sending dumps
go run github.com/alphamt/occupancy/...@latest