Skip to content

docs: XLA:CPU deadlock knowledge page and the human's eigen-flag decision (2d D12) - #81

Merged
Jammy2211 merged 4 commits into
mainfrom
feature/xla-cpu-deadlock-knowledge
Oct 29, 2026
Merged

Jammy2211 merged 4 commits into
mainfrom
feature/xla-cpu-deadlock-knowledge

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Records the jaxlib 0.11.2 XLA:CPU deadlock found in likelihood-lifecycle phase 2d (autolens_profiling#473, draft PR autolens_profiling#484), and the human's 2026-10-29 ruling: "keep the workaround which ensures we retain the fastest run times and make sure this knowledge is retained in Pulse for going forward".

  • knowledge/xla_cpu_deadlock_jaxlib_0_11_2.md (new). The symptom and how to recognise it (a later call of a compiled CPU executable blocks for ever at 0 % CPU in CpuPjRtRawLoadedExecutable::Execute -> BlockUntilReady -> futex). The affected version and cells. What was ruled out. The minimal repro: an exported group MGE prefix-3 function in a python -I process that imports only jax hangs at ~call 14. The two flags that avoid it, with laptop per-call costs. How to read rows that record the flag (device.xla_flags, configuration.xla_cpu_workaround), which are not like-for-like with the 2a/2b JAX CPU rows. Open questions: RAL, the 2a/2b cells, GPU, and when a jax/jaxlib change should trigger a re-test and dropping the flag.

  • decisions/xla-cpu-deadlock-eigen-workaround.md (new) plus a decisions.yaml row. It records the human's choice of --xla_cpu_multi_thread_eigen=false in the decisions/README template. The board was re-rendered offline: the Decision History gains one line.

  • tasks/pair_jax_xla_env_vars_with_measured.md gets a dated note that links both. The task's question is unchanged.

  • The board now lists all knowledge pages. Until now the lifecycle setup browser's "Extra Information" section was hard-coded to knowledge/cpu_parallel_vs_gpu_batched.md. Now pulse/setup_browser.py (knowledge_pages()) lists every knowledge/*.md page, ordered by file name and titled by its first # heading.

    • HTML: one <p data-id="knowledge-link"> per page, with the same link format and target="_blank", inside a new <div data-id="knowledge-links">.
    • Markdown: one bullet per page under #### Extra Information.
    • tests/test_setup_browser.py checks that every page is linked and that each title matches the page's heading. It also checks the ordering and the no-heading fallback (the file stem).
    • tests/browser_setup.cjs now checks every link instead of a single one. It was not run locally because playwright is not installed; CI runs it.
    • dashboard.md and dashboard.html were re-rendered with board --offline.

Per REFERENCE.md, knowledge pages hold no human decisions and decisions live in decisions/, so this change is split into two files. The knowledge page only points to the decision record.

Pulse stays a reader. The only code change is the knowledge-page listing. Nothing detects, enforces or infers the flag from timings.

Verified

  • ruff check . and ruff format --check . pass.
  • pytest -q tests: 370 passed.
  • bin/pyauto-pulse check --offline: OK.

Do not merge yet. The links to the 2d campaign pages point at the autolens_profiling draft branch and at caa46fad.

🤖 Generated with Claude Code

…sion (2d D12)

knowledge/xla_cpu_deadlock_jaxlib_0_11_2.md records the jaxlib 0.11.2
XLA:CPU deadlock found in likelihood-lifecycle 2d (autolens_profiling#473,
draft PR #484): the symptom and how to recognise it, the minimal repro
(an exported group MGE prefix-3 function in a jax-only python -I process),
what was ruled out, the two flags that avoid it with laptop per-call costs,
how to read rows that record the flag in device.xla_flags /
configuration.xla_cpu_workaround, and the open questions (RAL, 2a/2b
cells, GPU, when to re-test and drop the flag).

decisions/xla-cpu-deadlock-eigen-workaround.md records the human's
2026-10-29 ruling, verbatim, to keep --xla_cpu_multi_thread_eigen=false;
indexed in decisions.yaml and the board re-rendered offline. A dated note
on tasks/pair_jax_xla_env_vars_with_measured.md links both. No reader logic
changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Jammy2211 and others added 3 commits October 29, 2026 14:49
The lifecycle setup browser's "Extra Information" section was hard-coded
to knowledge/cpu_parallel_vs_gpu_batched.md, so a new knowledge page never
showed on the board. setup_browser.knowledge_pages() now lists every
knowledge/*.md page ordered by file name, titled by its first "# "
heading. HTML: one <p data-id="knowledge-link"> per page (same link
format, target=_blank) inside <div data-id="knowledge-links">; Markdown:
one bullet per page under "#### Extra Information". Tests check every page
is linked with its heading as title, plus ordering and the no-heading
fallback; the Chromium check iterates every link. Board re-rendered
offline: it now also links the XLA:CPU deadlock page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…re-rendered with board --offline)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 6f84728 into main Oct 29, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/xla-cpu-deadlock-knowledge branch October 29, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant