Document multi-GPU CLI flags and add README examples#5
Merged
arkadianet merged 2 commits intomainfrom Jan 1, 2026
Merged
Conversation
📝 WalkthroughWalkthroughAdds multi-GPU CLI options and README examples; implements device-list parsing, formatted result printing, worker message variants, and a new MultiGpuRunner to coordinate per-device vanity searches with optional duration limits. Changes
Sequence Diagram(s)sequenceDiagram
participant CLI as CLI (main.rs)
participant Runner as MultiGpuRunner
participant Worker as GPU Worker (per-device)
participant Out as Output/STDOUT
CLI->>Runner: parse args (devices, patterns, max-results, duration)
Runner->>Worker: spawn per-device workers (device_index, pattern)
loop search
Worker->>Runner: WorkerMessage::Hit / Error / Stats
Runner-->>Out: print_result() for Hit, log Error/Stats
end
alt duration reached or max-results met
Runner->>Worker: signal stop
Worker->>Runner: final Stats
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Motivation
Description
README.mdto document--list-devices,--devices <list>, and--duration-secs <N>and renamed the-noption to--max-resultsin the options table and examples, and added multi‑GPU usage examples including--devices alland comma lists.crates/erg-vanity-cli/src/main.rsforparse_device_list,print_result, theWorkerMessageenum variants, and theMultiGpuRunnerstruct to explain their roles in multi‑GPU execution.Testing
Codex Task
Summary by CodeRabbit
New Features
--list-devicesto show available devices.--devices <list>to target specific devices for searches.--duration-secs <N>to limit search runtime.Documentation
--numto--max-results.✏️ Tip: You can customize this high-level summary in your review settings.