Skip to content

[hipBLASLt] [rocRoller] Create a SolutionCache class to replace nested map data structure#2732

Merged
bnemanich merged 7 commits into
developfrom
users/bnemanich/rocroller_solution_cache
Dec 12, 2025
Merged

[hipBLASLt] [rocRoller] Create a SolutionCache class to replace nested map data structure#2732
bnemanich merged 7 commits into
developfrom
users/bnemanich/rocroller_solution_cache

Conversation

@bnemanich
Copy link
Copy Markdown
Contributor

@bnemanich bnemanich commented Nov 18, 2025

Motivation

This PR should not change behavior of selected kernel. It is cleaning up implementation by creating a SolutionCache. This way internal cache can change in the future without the rest of the code needing to be changed.

Technical Details

Cache is currently using nested maps. There are now methods for adding a solution to the cache and retrieving a solution.

Solution Cache is using unordered_maps. In order to use unordered_maps, it was necesary to add hash functions for the KernelType class. To make this easier, a ScaleType struct was added as well.

Test Plan

Run current tests, behavior should not change.

Submission Checklist

@math-ci
Copy link
Copy Markdown

math-ci Bot commented Dec 3, 2025

perfci run on commit a97af09

math-ci run

Copy link
Copy Markdown
Contributor

@jaopaulolc jaopaulolc left a comment

Choose a reason for hiding this comment

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

LGTM overal. More sanity checks around expected/valid values of blockRowSize and blockColSize would be nice.

@math-ci
Copy link
Copy Markdown

math-ci Bot commented Dec 8, 2025

perfci run on commit fa4a9ea

math-ci run

@math-ci
Copy link
Copy Markdown

math-ci Bot commented Dec 11, 2025

perfci run on commit 4d16a40

math-ci run

@bnemanich bnemanich merged commit e47cd43 into develop Dec 12, 2025
43 checks passed
@bnemanich bnemanich deleted the users/bnemanich/rocroller_solution_cache branch December 12, 2025 03:16
ammallya pushed a commit that referenced this pull request Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants