Skip to content

Commit

Permalink
remove gpu pipelining
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxinyu committed Jun 23, 2024
1 parent 0c7ed3e commit fdcbf80
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 252 deletions.
1 change: 0 additions & 1 deletion compiler/include/byteir/Dialect/GPU/Passes.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include "byteir/Dialect/GPU/Transforms/GPUDistributeSharedMemoryCopy.h"
#include "byteir/Dialect/GPU/Transforms/GPUDistributeToWarp.h"
#include "byteir/Dialect/GPU/Transforms/GPUPackSharedMemoryAlloc.h"
#include "byteir/Dialect/GPU/Transforms/GPUPipelining.h"
#include "byteir/Dialect/GPU/Transforms/GPUTensorCoreVectorization.h"
#include "byteir/Dialect/GPU/Transforms/GPUVectorToGPU.h"
#include "byteir/Dialect/GPU/Transforms/OptimizeVectorTransfer.h"
Expand Down
14 changes: 0 additions & 14 deletions compiler/include/byteir/Dialect/GPU/Passes.td
Original file line number Diff line number Diff line change
Expand Up @@ -103,20 +103,6 @@ def GPUPackSharedMemoryAlloc : Pass<"gpu-pack-shared-memory-alloc", "func::FuncO
let constructor = "mlir::createGPUPackSharedMemoryAllocPass()";
}

//===----------------------------------------------------------------------===//
// GPUPipelining
//===----------------------------------------------------------------------===//
def GPUPipelining : Pass<"gpu-pipelining", "func::FuncOp"> {
let summary = "Pipelining async copy and mma oprations to improve performance.";
let constructor = "mlir::createGPUPipeliningPass()";
let options = [
Option<"stages", "stages", "int64_t", /*default=*/"0", "the number of stages for pipelining">,
];
let dependentDialects = [
"NVVM::NVVMDialect",
];
}

//===----------------------------------------------------------------------===//
// GPUVectorToGPU
//===----------------------------------------------------------------------===//
Expand Down
36 changes: 0 additions & 36 deletions compiler/include/byteir/Dialect/GPU/Transforms/GPUPipelining.h

This file was deleted.

1 change: 0 additions & 1 deletion compiler/lib/Dialect/GPU/Transforms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ add_mlir_dialect_library(ByteIRGPUPasses
GPUDistributeToWarp.cpp
GPUTensorCoreVectorization.cpp
GPUPackSharedMemoryAlloc.cpp
GPUPipelining.cpp
GPUVectorToGPU.cpp
OptimizeVectorTransfer.cpp
RemoveTrivialLoops.cpp
Expand Down
196 changes: 0 additions & 196 deletions compiler/lib/Dialect/GPU/Transforms/GPUPipelining.cpp

This file was deleted.

5 changes: 1 addition & 4 deletions compiler/lib/Pipelines/LinalgMemrefOpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ void addGemmOptPasses(OpPassManager &pm) {
anchoredPM.addPass(createCanonicalizerPass());
anchoredPM.addPass(createCSEPass());
anchoredPM.addPass(createCanonicalizerPass());
// anchoredPM.addPass(createGPUPipeliningPass());
// anchoredPM.addPass(createCSEPass());
// anchoredPM.addPass(createCanonicalizerPass());

anchoredPM.addPass(createGPUDistributeToWarpPass());
anchoredPM.addPass(createRemoveTrivialLoopsPass());
anchoredPM.addPass(createGPUTensorCoreVectorizationPass());
Expand Down Expand Up @@ -87,7 +85,6 @@ void addGemmOptPasses(OpPassManager &pm) {
pm.addPass(memref::createFoldMemRefAliasOpsPass());
}

// anchoredPM.addPass(createGPUPipeliningPass());
{
OpPassManager anchoredPM(func::FuncOp::getOperationName());
anchoredPM.addPass(createGPUPackSharedMemoryAllocPass());
Expand Down

0 comments on commit fdcbf80

Please sign in to comment.