Skip to content

Execute CPU, GPU, tensor and switch dataflow models in Rust - #5

Closed
ishaansathaye wants to merge 1 commit into
research/silicon-and-brainfrom
feat/silicon-models
Closed

ishaansathaye wants to merge 1 commit into
research/silicon-and-brainfrom
feat/silicon-models

Conversation

@ishaansathaye

Copy link
Copy Markdown
Owner

Selecting a compute family can now execute a bounded Rust model whose operands, queues and results drive the visualization. CPU, GPU and tensor modes calculate the same user-supplied 8 × 8 matrix operation. The switch model preserves packet identities while users block destinations or change FIFO to VOQ.

This is PR 2 of the new silicon/brain stack, based on #4. It supplies the numerical models, Wasm API and shared renderer support; the following PR adds the interactive interface. It contains none of the rejected PRs #1–#3. Please review without merging until the full experience is approved.

  • CPU: dependent operand reads, two-issue work scheduling, bounded LRU cache and merged misses.
  • GPU: two logical 32-lane warps and address-derived 32-byte memory sectors.
  • Tensor: a real 4 × 4 systolic operand wave with neighboring registers and accumulated products.
  • Switch: bounded capacity, one grant per input/output per tick, blocked transfers, FIFO/VOQ and packet conservation.
  • Rendering: original functional geometry, real transfer markers, existing orbit/picking/HDR pipeline. Position and size are schematic, not a vendor die floorplan.

The models use explicitly declared educational ticks. They do not emulate the selected commercial SKU or predict its clock rate, throughput, energy, or biological equivalence. Vendor facts remain separate reference data.

Validation: 29 Rust tests; core Clippy with warnings denied; Wasm compilation; 258 assertions against the generated Wasm including invalid JavaScript numbers, atomic rejection, independent matrix results, traffic differences, conservation and deterministic replay. Existing brain browser suite passed all 13 groups against the changed renderer. New explorer passed WebGPU and WebGL checks during integration. Gitleaks found no secrets in the Rust tree. A separate agent reviewed the numerical models and Wasm boundary; review findings were corrected before this commit.

Copilot AI balanced review requested due to automatic review settings October 15, 2026 06:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@ishaansathaye

Copy link
Copy Markdown
Owner Author

These foundation commits are included in merged PR #8 and are now on main. Closing this stacked PR as superseded. Live release: https://doke-6lk.pages.dev/

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