Skip to content

D-RMAP-2: count the row-major B blocks in the BF16 byte total - #1625

Merged
AdaWorldAPI merged 1 commit into
mainfrom
ccr-08f48cec-lbv9l4-tile-gemm
Oct 20, 2026
Merged

AdaWorldAPI merged 1 commit into
mainfrom
ccr-08f48cec-lbv9l4-tile-gemm

Conversation

@AdaWorldAPI

@AdaWorldAPI AdaWorldAPI commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

Follow-up to #1623. Lab probe only, nothing admitted to production.

Bf16Staged::bytes() left out b_rows, the row-major B blocks stage() keeps for the polyfill entry. So tile_gemm_cost reported bf16_bytes as 256 KiB for an object that holds 384 KiB (the BF16 matrix, packed blocks and row-major blocks, 128 KiB each). Codex found this on #1623 at 23f0998. The fix was pushed after #1623 merged and did not make it into the merge, so this PR carries it onto main (one commit, 74eb6cf7, cut from 8b570ed3).

  • bytes() now counts b_rows.
  • New test bf16_bytes_count_every_retained_buffer pins the total to 3 * 256 * 256 * 2. With the b_rows term removed it fails (262 144 vs 393 216).
  • Plan §5a and the D-RMAP-2 board entry say 384 KiB instead of 256 KiB.

Not in this PR: the cost example reported tier AMX TDPBF16PS on one run of the session host, where §5a's numbers come from the F32x16 polyfill tier. One run is not a measurement, so §5a's results and its "AMX hosts not measured" line are unchanged.

Checks: cargo test --release --test tile_gemm (5 passed), clippy -D warnings and fmt clean, entries_index.py --check passes. CI on 74eb6cf7: all 13 checks green.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VyWZYKycy6MoYDxHRVnV5K

Bf16Staged::bytes omitted b_rows, which stage() keeps for the polyfill
entry, so the cost example reported 256 KiB for an object holding
384 KiB (matrix, packed blocks, row-major blocks, 128 KiB each). Adds a
test pinning the total; plan §5a and the board entry corrected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VyWZYKycy6MoYDxHRVnV5K
@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a445f69b-272d-439e-8a7c-09f160b24c9a
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Billing warning: we have not been able to collect payment for this subscription for more than 72 hours. Please update the payment method or pay any pending invoices in Billing to avoid service interruption.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@AdaWorldAPI
AdaWorldAPI marked this pull request as ready for review October 20, 2026 09:08
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 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-20T09:09:41.908599Z 74eb6cf 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.

@AdaWorldAPI
AdaWorldAPI merged commit 37b866e into main Oct 20, 2026
14 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