feat: diagnose missing render nodes and surface SYCL crash errors#8
Open
offbyonebit wants to merge 2 commits into
Open
feat: diagnose missing render nodes and surface SYCL crash errors#8offbyonebit wants to merge 2 commits into
offbyonebit wants to merge 2 commits into
Conversation
detect.py: add note when driver is bound but no DRM render node exists in sysfs (the direct cause of "No device of requested type available"), and expose render_nodes_in_dev() to check /dev/dri/ independently. launcher.py: capture stderr to a temp file when no log_dir is set so wait_ready() can read and surface the crash output. _surface_crash_logs() detects the canonical SYCL no-device message and emits a numbered checklist (render nodes, render group, dmesg, sycl-ls). Temp file is cleaned up in stop(). cli.py: extend `arc-llama doctor` with a /dev/dri/ render-node listing, a sycl-ls device enumeration block, and a targeted WARNING block when a GPU has its driver bound but no render node — giving users the exact steps needed to unblock the xe driver in bare-metal and container environments. https://claude.ai/code/session_01GNwxSoERiDh1WWnS7Z2LvM
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.
$(cat <<'EOF'
Summary
detect.py: Adds a note toDetectedGPUwhen a driver (xe/i915) is bound but no DRM render node appears in sysfs — the direct cause of SYCL's "No device of requested type available" crash. Exposes a newrender_nodes_in_dev()helper that checks/dev/dri/independently of sysfs.launcher.py: When nolog_diris provided, stderr is now captured to atempfileinstead of discarded to/dev/null.wait_ready()calls_surface_crash_logs()on early exit, which reads the tail of that file, logs it, and — if the canonical SYCL no-device message is found — emits a numbered checklist (render nodes, render group, dmesg, sycl-ls). The temp file is deleted instop().cli.py:arc-llama doctorgains three new sections:renderD*entries (or explains why the directory is missing, e.g. in a container)sycl-lsif available and shows its output, making it immediately obvious whether SYCL can see the GPUTest plan
pytestpasses (46 pass, 9 skipped — no regressions)arc-llama doctoron a host with xe loaded but no/dev/dri/renderD*shows the WARNING block and numbered checklistarc-llama doctoron a working system shows green render nodes and sycl-ls device listhttps://claude.ai/code/session_01GNwxSoERiDh1WWnS7Z2LvM
EOF
)
Generated by Claude Code