Repository navigation
[Codegen] Distribute workgroups along X dim - #21334
Conversation
|
Wait, how come no tests broke? |
|
I guess we don't have any pipeline tests for anything after LLVMGPULowerExecutableTarget (our lit tests use the pass option, not the dev flag). I'll see if I can add some tests for this. |
MaheshRavishankar
left a comment
There was a problem hiding this comment.
Something is off here. I would have expected https://github.com/iree-org/iree/blob/main/compiler/src/iree/compiler/Codegen/Common/test/reconcile_translation_info.mlir tests to be changed. I dont think this is working as expected.
This PR only changes the flag in Passes.cpp. That lit test creates its own pass pipeline, without the pass option set to distribute from X. |
Oh I see what happened. Ok, can we change the default in the pass also then? |
a8bbf4a to
7c3f9d9
Compare
| @@ -1,4 +1,4 @@ | |||
| // RUN: iree-opt --split-input-file --pass-pipeline="builtin.module(hal.executable(hal.executable.variant(iree-codegen-reconcile-translation-info, canonicalize, cse)))" %s --verify-diagnostics --allow-unregistered-dialect | FileCheck %s | |||
| // RUN: iree-opt --split-input-file --pass-pipeline="builtin.module(hal.executable(hal.executable.variant(iree-codegen-reconcile-translation-info{distribute-along=z}, canonicalize, cse)))" %s --verify-diagnostics --allow-unregistered-dialect | FileCheck %s | |||
There was a problem hiding this comment.
I am sorry, I know you are trying to avoid the pain of changing lit tests, but if we are making x the default, then this file should change accordingly. Otherwise it leads to a testing gap cause the default path wont be as tested as a non-default path.
MaheshRavishankar
left a comment
There was a problem hiding this comment.
Clicked approve by mistake
Signed-off-by: Max Dawkins <[email protected]>
Signed-off-by: Max Dawkins <[email protected]>
Signed-off-by: Max Dawkins <[email protected]>
7c3f9d9 to
c74864b
Compare
MaheshRavishankar
left a comment
There was a problem hiding this comment.
Nice! Thanks!! Now I can wrap up the split-k work on top of this
Sets the default workgroup distribution to only use the X dim, and delinearize all IDs from it. This prevents bugs with trying to use too many workgroups along Y/Z, which have smaller maximum workgroup counts. --------- Signed-off-by: Max Dawkins <[email protected]>
…iree-org#21137)" (iree-org#21382) Undo the revert of iree-org@887d75a and iree-org@7f35ecf now that the failure is fixed by iree-org#21334 Signed-off-by: Max Dawkins <[email protected]>
Sets the default workgroup distribution to only use the X dim, and delinearize all IDs from it. This prevents bugs with trying to use too many workgroups along Y/Z, which have smaller maximum workgroup counts. --------- Signed-off-by: Max Dawkins <[email protected]>
Sets the default workgroup distribution to only use the X dim, and delinearize all IDs from it. This prevents bugs with trying to use too many workgroups along Y/Z, which have smaller maximum workgroup counts.