debug-performance
Skill1 starsChanged 2 months agoApache-2.0View on GitHub
Analyze and optimize Buckyball model performance using FPGA end-to-end cycles, layer timing, operation lengths, bank reuse, and measured bottlenecks.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- QuantConnect/Documentationtheir own version, first seen Oct 8, 2026
- francogalfre/skillstheir own version, first seen Mar 17, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- QuantConnect/Documentation★ 268same name
- francogalfre/skills★ 3same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository25 other files it gives its agents.
- agent-runtimeSkill
- ball-alignSkill
- canvas-clientSkill
- checkSkill
- chip-designerSkill
- collaboration-panelSkill
- debug-bemuSkill
- debug-compilerSkill
- debug-p2eSkill
- debug-verilatorSkill
- domain-modelingSkill
- graph-contractSkill
- grillingSkill
- grill-with-docsSkill
- ip-designerSkill
- model-optimizeSkill
- model-portSkill
- model-recipeSkill
- plugin-verifySkill
- programming-principlesSkill
- repo-installSkill
- reportSkill
- role-identitySkill
- waveformSkill
- workload-testsSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Use the current run's timing log.
- Very specific: line 20
Read the actual FPGA UART log and its Cycle count, rather than combined host stdout.
- Distinctive: line 31
If a region dominates, subdivide it or inspect available Ball/memory counters.
- Distinctive: line 45
Use model-optimize for layout, bank-budget, reuse, operator mapping, and scheduling decisions.
- Distinctive: line 48
Keep numerical and regression gates intact.
- Very specific: line 51
Follow $debug-compiler for lowering defects, $debug-bemu for numerical defects, and $debug-verilator/$debug-p2e for hardware failures.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Performance Debugging
Establish the requested performance metric first. Model performance normally means FPGA-measured end-to-end forward cycles, including CPU work, accelerator work, and data movement. Host simulation duration, boot time, compilation time, and BEMU cycles do not establish this result. Keep the same checkpoint, input, inference boundary, chip configuration, and tracing mode when comparing designs.
Report FPGA cycles by default for a model optimization. If the user asks how long a P2E run takes, report host wall-clock duration separately: model RUN-to-PASS, setup/Linux boot, and total command duration. Keep bitstream synthesis/PNR separate. Use the current run's timing log; do not turn one observed duration into a fixed estimate, or infer that diff improves performance from a faster wall-clock run.
Read the actual FPGA UART log and its Cycle count, rather than combined host
stdout. A diff run can print golden-emulator cycle records too; those are not FPGA
measurements. Do not combine overlapping trace scopes or sum a diff session with
the workload duration. Validate with diff first; use a matching performance run
without diff when isolating instrumentation overhead. Report actual cycles and
the baseline-relative change, with bitstream/image identities and correctness.
Locate the bottleneck
- Enable model cycle tracing through the recipe and inspect per-layer or fused region intervals in actual FPGA UART. Map trace IDs to the generated graph. If a region dominates, subdivide it or inspect available Ball/memory counters.
- Separate CPU packing, quantization, and copies from DMA, unfolding, compute, and dependency stalls. BEMU helps expose CPU work and excessive lowering; use RTL/P2E evidence for accelerator timing and utilization.
- Decode instructions with the selected chip's generated ISA.
funct7meanings are chip-local. Bank trace events are writes, not a timing percentage or necessarily one event per instruction. Map PCs to graph regions before drawing conclusions from counts. - Inspect effective rows and useful work per operation, SRAM traffic and reuse, number of outstanding operations, and producer/consumer dependencies. Explain why the measured region is slow instead of stopping at “model execution”.
Apply and validate an optimization
Use model-optimize for layout, bank-budget, reuse, operator mapping, and scheduling decisions. Bring the measured hotspot and baseline into that design step, then remeasure the changed region and end-to-end FPGA cycles. Keep numerical and regression gates intact; do not infer a gain from bank capacity or instruction counts alone.
Follow $debug-compiler for lowering defects, $debug-bemu for numerical defects,
and $debug-verilator/$debug-p2e for hardware failures. Use small independent
reference cases and affected existing models. A performance optimization is complete
only after correct full-model P2E execution satisfies the FPGA cycle target.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

