Release 0.12.0: Intel GPU support
Release / release (push) Successful in 3m40s

Intel/AMD GPU telemetry in benchmark runs (hwmon power/temperature,
amdgpu sysfs, Intel VRAM/utilization from DRM fdinfo via a minimal
host-PID probe container), temperature for all GPUs, VRAM estimate for
NVIDIA and Intel/AMD in the deployment form, /dev/dri group IDs added to
Intel/AMD runtime containers, Intel llama.cpp presets seeded on first
detection, ZES_ENABLE_SYSMAN=1 for the SYCL preset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pascal LinxweilerandClaude Opus 5.5 committed 2026-10-21 14:47:00 +02:00
1 parent ee6c623e2a
commit e007a35143
16 files changed
+781 -98

No files matched your search

+20 -11
View File
@@ -19,7 +19,7 @@ import { sanitizeLine } from "./job-log";
import { log } from "./log";
import { normalizePciAddress } from "./hardware";
import { errorCauses } from "./log-causes";
import { ResourceSampler } from "./resources";
import { type GpuTargets, ResourceSampler } from "./resources";
import { docker, workerImage } from "./runtimes";
type Current = {
@@ -146,16 +146,27 @@ async function target(deploymentId: string | null): Promise<Target | null> {
return { id: deploymentId, containerId: d.containerId, containerName: d.containerName, engine: d.engine, accelerator: d.accelerator };
}
/** Which GPU links the sampler reads: sysfs where the GPU is on the visible PCI bus, nvidia-smi otherwise. */
async function linkTargets(metas: (RunMeta | null)[]) {
/**
* What the sampler watches for the GPUs a run uses: NVIDIA via nvidia-smi, Intel/AMD via sysfs (and
* the fdinfo probe for Intel), and every GPU's link where sysfs shows it. Probes run from our own image.
*/
async function gpuTargets(metas: (RunMeta | null)[]): Promise<GpuTargets> {
const addrs = [...new Set(metas.flatMap((m) => m?.gpus.map((g) => g.pciAddress) ?? []).filter((a): a is string => !!a))];
const { nvidia } = await effectiveHardware();
const nvidiaIndex: Record<number, string> = {};
const { hardware, nvidia } = await effectiveHardware();
const image = workerImage();
const used = (hardware?.gpus ?? []).filter((g) => addrs.includes(g.pciAddress));
const pciByIndex: Record<number, string> = {};
for (const g of nvidia) {
const addr = g.pciAddress ? normalizePciAddress(g.pciAddress) : `nvidia-${g.index}`;
if (addrs.includes(addr)) nvidiaIndex[g.index] = addr;
if (addrs.includes(addr)) pciByIndex[g.index] = addr;
}
return { sysfs: addrs.filter((a) => !a.startsWith("nvidia-")), nvidiaIndex };
const others = used.filter((g) => g.vendor !== "nvidia");
return {
nvidia: image && Object.keys(pciByIndex).length ? { image, pciByIndex } : null,
sysfs: others.map((g, i) => ({ index: i, pciAddress: g.pciAddress, name: g.name ?? `${g.vendor} GPU`, vendor: g.vendor, vramTotalMb: g.vramMb })),
intelProbeImage: image,
linkAddresses: addrs.filter((a) => !a.startsWith("nvidia-")),
};
}
/** A/B notes: the shared host facts once, the engine and model per side. */
@@ -249,15 +260,13 @@ async function start(run: typeof benchmarkRuns.$inferSelect) {
.set({ state: "running", startedAt: new Date(), error: null, phase: null, meta, metaB, system: setup.system })
.where(eq(benchmarkRuns.id, run.id));
// Resource use of the server(s) under test; GPUs when any side runs on NVIDIA.
// Resource use of the server(s) under test, and of the GPUs they use.
const c = docker();
const nvidia = a.accelerator === "nvidia" || b?.accelerator === "nvidia";
const sampler = c
? new ResourceSampler(
c,
[{ side: "a" as const, containerId: a.containerId }, ...(b ? [{ side: "b" as const, containerId: b.containerId }] : [])],
nvidia ? workerImage() : null,
await linkTargets([meta, metaB]),
await gpuTargets([meta, metaB]),
)
: null;
await sampler?.start().catch((err) => log.warn(`resource sampling failed: ${message(err)}`));