-
Notifications
You must be signed in to change notification settings - Fork 31
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
[MLIR-AIR] Apply outer perm for unpack for air in 4-level tiling #1145
base: main
Are you sure you want to change the base?
[MLIR-AIR] Apply outer perm for unpack for air in 4-level tiling #1145
Conversation
I've also seen the flaky failure on linux ci runner compiling third_party/mlir-air today. Could you please double check to see what caused the problem? |
|
A rerun helps, but it did happen very frequently today on several PRs... |
I can try to go to mlir-air repo and see if I can remove some redundant code, to reduce the codebase size. |
Thanks. You think it's OOM? Did you add a lot of codes compared to your previous bump? |
auto maybePackPeelTiling = | ||
ParameterSetting::create(linalgOp, /*isObjectFifo=*/true, targetDevice, | ||
numRows, numCols, /*kPackScaleL1=*/2); | ||
ParameterSetting::create(linalgOp, isObjectFifo, targetDevice, numRows, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure this is enough to get correct numerics? You have to modify the outer perm similar to this
iree-amd-aie/compiler/plugins/target/AMD-AIE/iree-amd-aie/Transforms/KernelDispatch.cpp
Line 582 in 8ded4b1
if (isObjectFifo) { |
setRootConfigForPackPeel4LevelTilingPipeline
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you like you can add a test in ci to make sure it's running.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh cool, that would be great! Will add a matmul test to make sure.
Yeah I suspect it is OOM, as I notice that the segfault happens when more than one CI gets triggered at the same time. I didn't add a lot of codes recently, but the code base has been pretty big. AIRDependencyScheduleOpt.cpp for example is >5000 lines... |
FWIW I saw this last week once, I'd never seen it before (ever ever). |
pack-peel-4-level-tiling
scheme.