Repository navigation
docs: XLA:CPU deadlock knowledge page and the human's eigen-flag decision (2d D12) - #81
Merged
Merged
Conversation
…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>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 inCpuPjRtRawLoadedExecutable::Execute->BlockUntilReady-> futex). The affected version and cells. What was ruled out. The minimal repro: an exported group MGE prefix-3 function in apython -Iprocess 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 adecisions.yamlrow. It records the human's choice of--xla_cpu_multi_thread_eigen=falsein the decisions/README template. The board was re-rendered offline: the Decision History gains one line.tasks/pair_jax_xla_env_vars_with_measured.mdgets 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. Nowpulse/setup_browser.py(knowledge_pages()) lists everyknowledge/*.mdpage, ordered by file name and titled by its first#heading.<p data-id="knowledge-link">per page, with the same link format andtarget="_blank", inside a new<div data-id="knowledge-links">.#### Extra Information.tests/test_setup_browser.pychecks 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.cjsnow checks every link instead of a single one. It was not run locally because playwright is not installed; CI runs it.dashboard.mdanddashboard.htmlwere re-rendered withboard --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 .andruff 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