ci: calibrate the bfp stack-watermark bucket over all arms (native 53 KB vs fq/g1/s1 102 KB)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- c
- Domain
- ci-cd, embedded-iot, testing-qa
Research direction
Start with check_stack_watermark.py and the c-stack-watermark CI job, then inspect the stage-1 grid configuration to identify the math, gradient, and state arms. Measure stack_peak_b across those arms, set the threshold from the maximum plus the usual margin, and make the bucket a failing gate. Done when CI probes the worst case or documents why the native probe suffices, and the roughly doubled stack use is explained.
Written by the indexing model from the issue text.
Description
Found during the #410 PR7 (#444) campaign. The PR recorded it but did not resolve it.
Observation
PR7 added a bfp bucket to check_stack_watermark.py. It is report-only and uncalibrated by design. The measured stack_peak_b depends on the BFP arm. On the PR7 host:
| Arm | stack_peak_b |
|---|---|
native (xnat, g0, s0) |
52 832 B |
| fq / g1 / s1 | 101 984 B |
The CI c-stack-watermark job probes only one config (EPOCHS=1 SEED=1 BFP_WEIGHT_BLOCK=32 BFP_WIRE_BLOCK=16 BFP_MANTISSA_BITS=6 BFP_EXPONENT_BITS=8, i.e. the native arm).
To do
- Measure
stack_peak_bacross the arms in the stage-1 grid (math native/fq × grads g0/g1 × state s0/s1 at least). - Calibrate the
bfpthreshold to the maximum over arms plus the usual margin, and make it a failing gate like the other buckets. - Either probe the worst-case arm in CI, or document why the native probe is enough.
- Note why fq/g1/s1 roughly doubles the stack (staging VLAs?). This feeds into the SYM/BFP memory investigation.
Parent: #410
- Dominant language
- C
- Stars
- 2
- Forks
- 3
- Avg merge
- 13h 6m
- Merged PRs (30d)
- 9
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from es-ude/OnDeviceTraining
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
es-ude/OnDeviceTraining#549 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
es-ude/OnDeviceTraining#547 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
es-ude/OnDeviceTraining#536 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
es-ude/OnDeviceTraining#478 ·
Maintainers usually reply within 1 day
-
bug documentation
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
es-ude/OnDeviceTraining#459 ·
Maintainers usually reply within 1 day
All issues in es-ude/OnDeviceTraining
Similar issues
-
issue: bug report
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 2 days
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
BasedHardware/omi#26486 ·
Maintainers usually reply within 1 day
-
The LLVM object can build before collection_config.h is generatedPossibly taken @Vonng claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
aws/pgcollection#51 ·
-
area/docdb kind/failing-test priority/medium status/awaiting-triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
yugabyte/yugabyte-db#39462 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
libreswan/libreswan#3185 · 1 comment ·
Maintainers usually reply within 1 day