Skip to content

configs: model the GPU scalar cache separately from the SQC - #3

Open
Basemism wants to merge 1 commit into
stagingfrom
staging-basem/scalar-cache
Open

configs: model the GPU scalar cache separately from the SQC#3
Basemism wants to merge 1 commit into
stagingfrom
staging-basem/scalar-cache

Conversation

@Basemism

@Basemism Basemism commented Sep 2, 2026

Copy link
Copy Markdown

Create a distinct scalar-cache object and controller instead of reusing the SQC cache configuration for scalar memory requests.

Add size and associativity options while continuing to share the SQC Ruby machine type and controller-version namespace.

Keep existing defaults and route scalar sequencers through the new cache without enabling vector-data requests.

Create a distinct scalar-cache object and controller instead of reusing the
SQC cache configuration for scalar memory requests. Add independent size and
associativity options while continuing to share the SQC Ruby machine type and
controller-version namespace required by GPU_VIPER.

Keep existing defaults and route scalar sequencers through the new cache
without enabling vector-data requests.
@Basemism
Basemism requested review from TomXia, mattsinc and v-ramadas and a lite review from Copilot September 2, 2026 12:13
@Basemism Basemism self-assigned this Sep 2, 2026

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.

🟢 Approval recommended

The changes are localized to configuration code and appear consistent with the stated goal while preserving defaults, with only minor maintainability feedback.

Pull request overview

This PR updates the GPU_VIPER Ruby configuration to model GPU scalar memory requests with a dedicated scalar L1 cache/controller instead of reusing the existing SQC cache configuration, while preserving existing default behavior.

Changes:

  • Adds ScalarCache and ScalarCntrl to provide a distinct cache object/controller for scalar requests.
  • Introduces --scalar-size and --scalar-assoc CLI options to tune the scalar cache independently.
  • Routes scalar sequencers through the new scalar cache/controller while keeping scalar requests on the existing SQC machine type/versioning namespace.
File summaries
File Description
configs/ruby/GPU_VIPER.py Introduces dedicated scalar cache/controller classes, adds scalar cache sizing options, and switches scalar controller construction to use the new controller.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread configs/ruby/GPU_VIPER.py
Comment on lines +278 to +289
class ScalarCache(RubyCache):
dataArrayBanks = 8
tagArrayBanks = 8
dataAccessLatency = 1
tagAccessLatency = 1

def create(self, options):
self.size = MemorySize(options.scalar_size)
self.assoc = options.scalar_assoc
if hasattr(options, "sqc_rp"):
self.replacement_policy = ObjectList.rp_list.get(options.sqc_rp)()

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