Skip to content

Comments

feat: split global/shared memory words with S@/S!#37

Merged
tetsuo-cpp merged 2 commits intocanonfrom
feat/issue-36-shared-memory-words
Feb 20, 2026
Merged

feat: split global/shared memory words with S@/S!#37
tetsuo-cpp merged 2 commits intocanonfrom
feat/issue-36-shared-memory-words

Conversation

@tetsuo-cpp
Copy link
Owner

@tetsuo-cpp tetsuo-cpp commented Feb 20, 2026

Summary

  • add S@ and S! words for explicit shared-memory load/store while keeping @/! for global memory
  • add new dialect ops and parser mappings (forth.shared_load / forth.shared_store)
  • lower shared memory ops through workgroup address-space pointers using gpu::AddressSpace::Workgroup
  • update translation/conversion tests for the new words and shared address-space lowering
  • update tiled matmul GPU test to use S@/S!

Test plan

  • cmake --build build --target format
  • uv run ruff check gpu_test/
  • cmake --build build --target check-warpforth

Closes #36

@tetsuo-cpp tetsuo-cpp merged commit 3c63197 into canon Feb 20, 2026
1 check passed
@tetsuo-cpp tetsuo-cpp deleted the feat/issue-36-shared-memory-words branch February 20, 2026 09:58
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.

Proposal: split global vs shared memory words (@/! and S@/S!)

1 participant