Skip to content

Add Bank View for GPU shared memory visualization#20

Merged
leeliu103 merged 1 commit intomainfrom
feature/bank-view
Jan 29, 2026
Merged

Add Bank View for GPU shared memory visualization#20
leeliu103 merged 1 commit intomainfrom
feature/bank-view

Conversation

@leeliu103
Copy link
Owner

Implements a new Bank View mode in the Shared Layout tab that visualizes how tensor elements are distributed across GPU memory banks. This helps identify bank conflicts and understand physical memory layout patterns.

Key features:

  • Bank layout mapping using standard GPU memory model (32 banks × 32-bit width)
  • Sub-cell rendering for packed elements (8-bit: 4/bank, 16-bit: 2/bank)
  • 64-bit element support spanning two banks with half-labeling
  • Rich tooltips showing segment, bank, and logical index for each element
  • Performance optimized: fast inverse traversal for 32/64-bit elements
  • Comprehensive cross-validation tests ensuring consistency between logical and bank views

Changes:

  • Added createSharedBankLayout() for bank coordinate mapping
  • Extended CanvasRenderer with sub-cell support and rectangular cells
  • Added 32 new tests including cross-view consistency validation
  • UI updates: bank view selector and bank info panel

@leeliu103 leeliu103 merged commit 12774dc into main Jan 29, 2026
1 check passed
@leeliu103 leeliu103 deleted the feature/bank-view branch January 29, 2026 19:08
Implements a new Bank View mode in the Shared Layout tab that visualizes how tensor elements are distributed across GPU memory banks. This helps identify bank conflicts and understand physical memory layout patterns.

Key features:
- Bank layout mapping using standard GPU memory model (32 banks × 32-bit width)
- Sub-cell rendering for packed elements (8-bit: 4/bank, 16-bit: 2/bank)
- 64-bit element support spanning two banks with half-labeling
- Rich tooltips showing segment, bank, and logical index for each element
- Performance optimized: fast inverse traversal for 32/64-bit elements
- Comprehensive cross-validation tests ensuring consistency between logical and bank views

Changes:
- Added createSharedBankLayout() for bank coordinate mapping
- Extended CanvasRenderer with sub-cell support and rectangular cells
- Added 32 new tests including cross-view consistency validation
- UI updates: bank view selector and bank info panel

Co-Authored-By: Claude (claude-sonnet-4.5) <noreply@anthropic.com>
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.

1 participant