Optimize Zen 4 GEMM macro block sizes (P, Q, R)#5868
Open
Vasudeva-bit wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Zen 4 Cache Boundary Optimisations (uses CooperLake Micro Kernels) #5837
Description:
This PR introduces targeted cache geometry overrides (
P,Q,Rparameters) for the Zen 4 architecture. Parameters were derived using Bayesian Optimization (Optuna) to perfectly align matrix panel footprints with the physical 1MB L2 and 32MB L3 limits of the Zen 4 CCX.1. Successful Optimisations (Implemented)
These standard GEMM variants demonstrated absolute GFLOPs scaling over the baseline OpenBLAS generic fallbacks. These are the configurations included in this patch.
(P, Q, R)384, 512, 5936512, 512, 2288160, 480, 528176, 256, 15202. Discarded
(P, Q, R)368, 712, 4544168, 376, 3920192, 256, 1904