Skip to content

Commit

Permalink
full column
Browse files Browse the repository at this point in the history
  • Loading branch information
newling committed Oct 8, 2024
1 parent 4dc5ec2 commit 3784918
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,10 @@ static LogicalResult setRootConfigForConvDecomposePipeline(
innerPerm = {{}, {{1, 0}}, {}};
outerPerm = {{0, 1, 3, 2}, {}, {0, 1, 2, 3}};
packingSizes = {0, 0, 0, OC, 0, 0, IC};
// Target one column of 4 cores, each core processing a different
// output image row. TODO(newling) use 4x4 array.
// https://github.com/nod-ai/iree-amd-aie/issues/821
tileSizeLevel0 = {1, 4, OW, OC, 0, 0, 0};
tileSizeLevel1 = {1, 1, OW, OC, 0, 0, 0};
// scf.for tiling of KH, KW, and (packed) IC dimensions:
tileSizeLevel2 = {0, 0, 0, 0, 1, 1, 1, 0, 0};
Expand Down Expand Up @@ -567,6 +571,10 @@ static LogicalResult setRootConfigForConvDecomposePipeline(
packingSizes = {0, 0, 0, OC_1, 0, 0};
innerPerm = {{}, {}, {}};
outerPerm = {{0, 1, 2, 3}, {0, 1, 2}, {0, 1, 2, 3}};
// Target one column of 4 cores, each core processing a different
// output image row. TODO(newling) use 4x4 array.
// https://github.com/nod-ai/iree-amd-aie/issues/821
tileSizeLevel0 = {1, 4 * OH_1, OW_0, OC_0, 0, 0};
tileSizeLevel1 = {1, OH_1, OW_0, OC_1, 0, 0};
tileSizeLevel2 = {0, 0, 0, 0, 1, 1, 0};
}
Expand All @@ -576,10 +584,6 @@ static LogicalResult setRootConfigForConvDecomposePipeline(
"unrecognised convolution op, cannot set packing config. ");
}

// For the objectFifo backend we currently target a single core.
// FIXME(newling) https://github.com/nod-ai/iree-amd-aie/issues/821
tileSizeLevel0 = tileSizeLevel1;

assert(!innerPerm.empty() && !outerPerm.empty() && !packingSizes.empty() &&
!tileSizeLevel0.empty() && !tileSizeLevel1.empty() &&
"not all vectors for initializing config are non-empty");
Expand Down

0 comments on commit 3784918

Please sign in to comment.