Skip to content

Match GPUs in --where - #31

Merged
lydakis merged 2 commits into
mainfrom
claude/errand-gpu-where
Oct 5, 2026
Merged

lydakis merged 2 commits into
mainfrom
claude/errand-gpu-where

Conversation

@lydakis

@lydakis lydakis commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Before: --where had no way to ask for a GPU, and errand peers showed none.

After: --where gpu, gpus>=N, gpu=MODEL and vram>=N select runners by the GPUs nvidia-smi reports, for example errand --where gpu=a100,vram>=80,gpus>=4 -- python train.py. Runners recheck the terms at admission, and errand peers gains a GPUS column. os=windows is accepted as a where term too.

This is the first of three PRs split out of #26: these where terms are useful on their own. Cloud leasing (broker, command provider, CLI, endpoints) follows on top of this, and the Lambda provider comes last.

How: runners ask nvidia-smi at most once a minute, in the background, so a slow or hung driver never holds up /v0/info; only the first measurement is briefly waited for. Combined GPU terms count the GPUs that satisfy all of them. Model names match ignoring case, spaces and hyphens. VRAM is rounded to the nearest GiB, and unified-memory parts that report no size never satisfy vram>=N.

🤖 Generated with Claude Code

https://claude.ai/code/session_013BQxiCNDXMnjv5pvmgo5E6


Generated by Claude Code

Runners report the GPUs nvidia-smi lists, refreshed at most once a
minute in the background so a slow driver never holds up info. --where
gains gpu, gpus>=N, gpu=MODEL and vram>=N, combined per GPU, plus
os=windows. Runners recheck them at admission, and errand peers shows a
GPUS column.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_013BQxiCNDXMnjv5pvmgo5E6
When ssh exited with 255 before saying anything, a read reported the
peer unreachable but a write reported only that ssh ended. Whether the
request write or the response read hit the closed pipe first depended on
timing, so TestSSHConnectFailureIsUnreachable was flaky in CI. Both now
explain the error through one function.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_013BQxiCNDXMnjv5pvmgo5E6

lydakis commented Oct 5, 2026

Copy link
Copy Markdown
Owner Author

github-advanced-security is red here because GitHub's Copilot autofind job fails with "402: You have exceeded your monthly quota". It isn't caused by this PR, and re-running won't help until the quota resets.


Generated by Claude Code

@lydakis
lydakis marked this pull request as ready for review October 5, 2026 06:11
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-05T06:15:30.695503Z bb0e731 Draft marked ready
🔒 Security Review ✅ Completed 2026-10-05T06:20:36.649232Z bb0e731 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@lydakis
lydakis merged commit 60dd807 into main Oct 5, 2026
8 of 9 checks passed
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.

2 participants