[BACKEND] Allow reduce with sliced 3D layout as input (#2480)

This commit is contained in:
Zahi Moudallal
2023-10-10 15:19:11 -07:00
committed by GitHub
parent 5812d970a8
commit 4749072fbd
2 changed files with 13 additions and 12 deletions

View File

@@ -161,8 +161,10 @@ unsigned ReduceOpHelper::getThreadsReductionAxis() {
}
bool ReduceOpHelper::isWarpSynchronous() {
auto argsLayout = getSrcLayout();
return triton::gpu::getWarpsPerCTA(argsLayout)[axis] == 1;
auto srcLayout = getSrcLayout();
auto srcShape = getSrcShape();
return triton::gpu::getWarpsPerCTAWithUniqueData(srcLayout, srcShape)[axis] ==
1;
}
SmallVector<unsigned> ReduceOpHelper::getScratchConfig() {