Skip to content

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.

Quick answer

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.
Reliability#device-lost#xid-79#hang#collective-timeout#pipeline-parallel#level-zero

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.

Live diagnosis, no signup

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.

training_logs.txt
No log to hand? Try one:

Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.

3 free cloud diagnoses per day

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.

SymptomPossible explanation
A fatal timeout arriving several minutes after the last normal progress lineA 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 backendSo 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 acceleratorsThe 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 stoppedA 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 allSo 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.

Use your company email, for example alex@yourcompany.com.

Who qualifies?

Company email domains activate the free 30-day Team evaluation (up to 50 diagnoses a day) after an email and domain check, whatever mail provider you use. If we cannot verify your domain automatically, support reviews it: write to support@denpex.com. Free local diagnosis in the editor extension needs no account.

Using a personal email (Gmail, Outlook, Naver, QQ) or solo cluster? Create a free $0 account (no work email required) to save 7-day history and unlock AI fallback, or send a cluster crash log for a live walkthrough.
Already have an account? Sign in

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 logs

No 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 families

Diagnose 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 extension

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?
Rank 2 was waiting in a collective and reported a timeout. The rank that failed lost the device it would have used to report, so it is silent. Find the first rank to go quiet.
Why did nothing fail for half an hour?
Collectives block rather than fail. Nothing detects a missing peer until the timeout expires, so the gap between fault and report is the timeout interval.
A restart fixed it. Was it transient?
Usually not. A restart tends to place ranks on different hardware, so the job avoids the faulty device rather than the device being repaired.
Is this the same as a straggler?
It produces the same waiting, which is why a timeout cannot distinguish them. A straggler eventually arrives; a lost device never does.

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.