Skip to content

Commit

Permalink
updatint stmatrix memory test
Browse files Browse the repository at this point in the history
  • Loading branch information
protonu committed Dec 20, 2024
1 parent 82b89de commit 390c650
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/cpp/test_memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2859,14 +2859,18 @@ TEST_P(StMatrixTest, Regular) {
tv0->split(0, 32);
tv0->axis(1)->parallelize(ParallelType::TIDx);

auto s =
mma_utils::MmaSwizzler::scheduleMmaOutputAllocation(tv1->getLoopDomain());
tv1->setLoopDomain(s.as<IterDomain*>());
tv1->setAllocationDomain(s.as<IterDomain*>(), true);
for (auto tv : {tv1, tv2}) {
auto s = mma_utils::MmaSwizzler::scheduleMmaOutputAllocation(
tv->getLoopDomain());
tv->setLoopDomain(s.as<IterDomain*>());
}
tv1->setAllocationDomain(tv1->getLoopDomain(), true);

mma_utils::scheduleStMatrixForMmaOutput(
tv2, /*swizzle=*/MmaInputSmemSwizzle::None, tile_m, tile_n);

tv2->axis(-1)->parallelize(ParallelType::Vectorize);

tv3->merge(0);
tv3->split(0, 32);
tv3->axis(1)->parallelize(ParallelType::TIDx);
Expand Down

0 comments on commit 390c650

Please sign in to comment.