Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix VNNI affine maps #998

Merged
merged 26 commits into from
Jan 10, 2025
Merged

Fix VNNI affine maps #998

merged 26 commits into from
Jan 10, 2025

Conversation

adam-smnk
Copy link
Collaborator

Retires incorrect VNNI affine map representation using floordiv 2 and replaces it with an extra separate VNNI dimension in matrix operand A: expand <M x K> into <M x K/VNNI x VNNI>.

The updated VNNI representation is propagated through matchers, lowerings, and tests.
A new test is added to ensure correct results between Linalg to SCF loops and XSMM lowering.

@adam-smnk adam-smnk added the benchmark Triggers benchmark jobs label Jan 6, 2025
@adam-smnk adam-smnk force-pushed the fix-vnni-affine-maps branch from 8d18e4c to 9f400b5 Compare January 6, 2025 14:36
@adam-smnk adam-smnk added benchmark Triggers benchmark jobs and removed benchmark Triggers benchmark jobs labels Jan 6, 2025
@adam-smnk
Copy link
Collaborator Author

No benchmark regressions.

@adam-smnk adam-smnk removed the benchmark Triggers benchmark jobs label Jan 6, 2025
@adam-smnk adam-smnk added the benchmark Triggers benchmark jobs label Jan 6, 2025
lib/TPP/IR/MatcherUtils.cpp Outdated Show resolved Hide resolved
lib/TPP/IR/MatcherUtils.cpp Outdated Show resolved Hide resolved
lib/TPP/Transforms/Utils/VNNIUtils.cpp Show resolved Hide resolved
@adam-smnk adam-smnk merged commit d42506b into plaidml:main Jan 10, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
benchmark Triggers benchmark jobs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants