Level Zero UR_RESULT_ERROR_DEVICE_LOST Before a Timeout
Trace Level Zero device lost error 20 to the first worker that stopped and separate it from the collective timeout reported by peers.
When a worker prints UR_RESULT_ERROR_DEVICE_LOST before other workers time out, start with the device-loss worker. Capture its first exception, rank, host, device identity and timestamp. The Unified Runtime result reports device loss but leaves the underlying driver, device or workload cause unresolved.
- Root cause
- A collective is a rendezvous. Every participant blocks until all of them arrive, and there is no mechanism by which a waiting rank learns that a peer has ceased to exist, it can only observe that the data has not come. The absence of a peer and a peer that is merely slow are indistinguishable until a deadline expires.
- Recommended fix
- Investigate the affected worker and host first. On shared infrastructure, send the operator the full Level Zero error and correlated host evidence.
- How Denpex helps
- Denpex investigates Level Zero UR_RESULT_ERROR_DEVICE_LOST Before a Timeout using the evidence you provide or your connected workload collects. Earlier rank, host or application evidence is needed to distinguish an initiating failure from a downstream report.
What this failure is
A stall in which one rank's accelerator becomes unreachable, leaving its peers blocked inside a collective until a timeout fires, so the failure is reported by a healthy rank long after and elsewhere from the fault.
Is this what broke your run? Paste your log.
You're reading about Level Zero UR_RESULT_ERROR_DEVICE_LOST Before a Timeout. Paste your own traceback and relevant evidence for an investigation of your workload, with a next action or a specific missing fact. A reference entry does not establish your cause. No account or card for the free diagnosis. Review data handling before submitting sensitive logs.
Before uploading, review cloud data handling and local options.
Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.
Why it happens (the mechanism)
Collectives have no liveness channel. A rank waiting for data cannot distinguish a peer that is slow from a peer that no longer exists, so it waits for its deadline and then reports what it experienced, which is a timeout. The rank that actually failed lost the device it would have needed to report with, so it says nothing. Every visible piece of evidence therefore comes from the wrong place and the wrong time.
What you'll observe
- The reported error names a rank that is working correctly, not the one that failed
- Minutes pass between the real fault and any log line, so the timestamps mislead
- The job looks alive to the scheduler throughout the stall and keeps its allocation
- Restarting sometimes works, which suggests a transient software fault rather than hardware
Common symptoms and what they mean
Check possible explanations against the incident evidence. A matching symptom alone does not establish its cause.
| Symptom | Possible explanation |
|---|---|
| A fatal timeout arriving several minutes after the last normal progress line | A collective is a rendezvous. Every participant blocks until all of them arrive, and there is no mechanism by which a waiting rank learns that a peer has ceased to exist, it can only observe that the data has not come. The absence of a peer and a peer that is merely slow are indistinguishable until a deadline expires. |
| RuntimeError reporting a worker failed with a device-lost error from the runtime backend | So the failure inverts the usual relationship between cause and report. The rank whose device vanished cannot report anything, because the thing it would report with is gone. The report comes from a healthy rank, describing a symptom of someone else's fault, at a time chosen by the timeout rather than by the event. |
| level_zero backend failed with error 20, UR_RESULT_ERROR_DEVICE_LOST on Intel accelerators | The device loss itself is a host-level event. It is recorded in the kernel log at the instant it happens, which is why that log and the job's own output disagree about when the failure occurred, often by the whole length of the timeout. |
| Xid 79 or a GPU has fallen off the bus message in the host kernel log at the moment progress stopped | A collective is a rendezvous. Every participant blocks until all of them arrive, and there is no mechanism by which a waiting rank learns that a peer has ceased to exist, it can only observe that the data has not come. The absence of a peer and a peer that is merely slow are indistinguishable until a deadline expires. |
| Peer ranks reporting a collective timeout while the failed rank reports nothing at all | So the failure inverts the usual relationship between cause and report. The rank whose device vanished cannot report anything, because the thing it would report with is gone. The report comes from a healthy rank, describing a symptom of someone else's fault, at a time chosen by the timeout rather than by the event. |
Which systems are affected
- Pipeline-parallel and tensor-parallel jobs, where one lost rank stalls every rank downstream of it
- Inference engines that fan a step out to workers and wait on the result
- NVIDIA GPUs raising Xid 79, and Intel accelerators raising a level-zero device-lost result
- Any collective-based workload, since the waiting side is what reports the failure
How to confirm this is the problem
Use this checklist to test the hypothesis against a small reproduction. No single line proves the root cause, so preserve the preceding events and compare one variable at a time.
- ✓Match the worker traceback and exit status to its rank and device. Collect host runtime or driver events from the same window.
- ✓Compare event order across ranks with clock context. A later collective timeout on surviving workers does not explain why the first worker stopped.
Root cause
- A collective is a rendezvous. Every participant blocks until all of them arrive, and there is no mechanism by which a waiting rank learns that a peer has ceased to exist, it can only observe that the data has not come. The absence of a peer and a peer that is merely slow are indistinguishable until a deadline expires.
- So the failure inverts the usual relationship between cause and report. The rank whose device vanished cannot report anything, because the thing it would report with is gone. The report comes from a healthy rank, describing a symptom of someone else's fault, at a time chosen by the timeout rather than by the event.
- The device loss itself is a host-level event. It is recorded in the kernel log at the instant it happens, which is why that log and the job's own output disagree about when the failure occurred, often by the whole length of the timeout.
The fix and how to prevent it
How to fix it
- Investigate the affected worker and host first. On shared infrastructure, send the operator the full Level Zero error and correlated host evidence.
- After the operator resolves the reported device condition, run a small control on the intended device and verify the original collective completes.
How to prevent it
- Alert on host kernel log events for accelerator faults independently of the job, so the cause is captured at the moment it occurs rather than reconstructed afterwards.
- Emit a heartbeat per rank so a silent rank is detectable in seconds rather than at the timeout, which turns an unattributable stall into a named node.
- Record which physical node each rank occupied with the job's output; without it the surviving logs cannot be mapped back to hardware after the allocation is released.
Save this diagnosis and catch the next crash automatically
All root cause, fix, and prevention steps above are free to read. Create a free account with any email or GitHub to keep your saved diagnosis history across the encyclopedia and run cloud checks, or use a work email below for the 30-day Team evaluation. No card required.
Or start a 30-day free Team trial (work email)
Verified work email unlocks all 14 fleet diagnostic tools, Slack alerts, and team history for 30 days. No card and no automatic charge.
Diagnose your own log automatically
The root cause and fix steps above stay free. Create a free account to analyze full job logs, attribute the first failed rank, and keep saved incident history.
Sign up free. Analyze your cluster logsNo credit card. Daily allowance follows verified trust tier. Instant access.
Why the recommended fix works
Anchoring the investigation to the last progress line rather than the error moves it back to when the fault happened, and the host kernel log at that moment records the device event directly. That converts an unattributable job-level timeout into a named piece of hardware, which is the only form of the problem that can be acted on.
Diagnostic note
“The most expensive mistake here is restarting onto the same pool. A restart usually places ranks differently, so the job survives, the incident is closed, and a device that has already failed once stays in service until it takes down something bigger. Treat a single confirmed device loss as grounds to drain the node, not as a transient to retry through.”
Xid 79 in context
Xid 79 identifies a driver-observed event. Preserve the full message, device identity and surrounding workload and host evidence before distinguishing application, driver and hardware causes. The code alone does not justify replacing a board.
Compare Xid event familiesDiagnose this failure in VS Code
Select the traceback or open the failed terminal, then run Denpex locally to inspect matched failure patterns, supporting evidence and next checks without uploading the log. Verify recommendations against your workload before changing production.
Install the free VS Code extensionRelated failures to investigate next
Frequently asked questions
Questions engineers and on-call staff commonly ask about this failure.
The error names rank 2, so why look at rank 3?
Why did nothing fail for half an hour?
A restart fixed it. Was it transient?
Is this the same as a straggler?
References
Don't just read the fix, diagnose your run
The encyclopedia explains documented failure patterns. Denpex investigates your logs, configuration and stack, shows the supporting evidence, and asks for missing details when needed.
Related Reliability errors
GB200 NVL72 driver hang with Xid 150 and 154 after long uptime is a firmware bug, not a dead GPU
Reliability · high
Sequence Length Imbalance Causing Distributed Training Stragglers
Reliability · high
Silent Data Corruption from GPU Hardware Faults Causing Loss Spikes and Model Divergence
Reliability · critical
NIXL Firmware Page Registration Fan-Out Triggers Host OOM Kills on HGX H200 and B200
Reliability · critical