Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pw_scheduler_reference_find_patc…
Browse files Browse the repository at this point in the history
…h' into HEAD
  • Loading branch information
jjsjann123 committed Dec 11, 2024
2 parents 4ba5baa + b7f628f commit 1d021c7
Show file tree
Hide file tree
Showing 12 changed files with 636 additions and 656 deletions.
11 changes: 10 additions & 1 deletion csrc/codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,16 @@ class CudaKernelGenerator : private kir::ConstIrVisitor {

// Generates the kernel function declaration
void genDeclaration(const std::string& kernel_name) {
code_ << "__global__ void " << kernel_name << "(";
code_ << "__global__ void ";
if (kernel_->hasManaged("cluster_dims")) {
auto cluster_dims =
kernel_->getManaged<std::tuple<int64_t, int64_t, int64_t>>(
"cluster_dims");
code_ << "__cluster_dims__(" << std::get<0>(cluster_dims) << ", "
<< std::get<1>(cluster_dims) << ", " << std::get<2>(cluster_dims)
<< ") ";
}
code_ << kernel_name << "(";

std::unordered_set<Val*> unique_args;

Expand Down
592 changes: 4 additions & 588 deletions csrc/scheduler/hopper_multi_matmul.cpp

Large diffs are not rendered by default.

14 changes: 0 additions & 14 deletions csrc/scheduler/hopper_multi_matmul.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,20 +178,6 @@ class HopperMultipleMatmulScheduler : public MultipleMatmulScheduler {

void setUpCircularBuffering();

//! Schedules the copy operation of output of a Mma op which resided in the
//! registers to shared memory.
void scheduleStMatrixForMmaOutput(
TensorView* tv,
MmaInputSmemSwizzle swizzle,
int64_t tile_m,
int64_t tile_n);

//! Schedules the copy operation of output of a Mma op which resided in the
//! shared memory to global memory.
void scheduleTMAStoreForMmaOutput(
TensorView* tv,
MmaInputSmemSwizzle swizzle);

// Map TensorView's iterDomain to its ValGroup.
// Then, find the MatmulDimRole for the ValGroup.
// Return MatmulDimRole for IterDomain
Expand Down
Loading

0 comments on commit 1d021c7

Please sign in to comment.