Skip to content

Commit

Permalink
[LLVMGPU] Remove duplicate shared memory bank conflict pass (iree-org…
Browse files Browse the repository at this point in the history
…#17322)

One is enough. This was accidentally added in
iree-org#16665.
  • Loading branch information
kuhar authored May 9, 2024
1 parent 07d4fe6 commit afb986e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion compiler/src/iree/compiler/Codegen/LLVMGPU/Passes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,6 @@ void addGPUVectorDistributePassPipeline(OpPassManager &funcPassManager,
funcPassManager.addPass(
createGPUReduceSharedMemoryBankConflicts(/*paddingSizeBits=*/64));

funcPassManager.addPass(createGPUReduceSharedMemoryBankConflicts());
if (clLLVMGPUEnablePrefetch) {
funcPassManager.addPass(createLLVMGPUPrefetchSharedMemoryPass());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,9 @@ hal.executable.variant @rocm target(<"rocm", "rocm-hsaco-fb", {

// CHECK-LABEL: func.func @unaligned_nk_batch_matmul()
// CHECK-SAME: translation_info = #[[$TRANSLATION]]
// CHECK-DAG: %[[RHS_SHARED:.+]] = memref.alloc() : memref<1x16x28xf16, #gpu.address_space<workgroup>>
// CHECK-DAG: %[[RHS_SHARED:.+]] = memref.alloc() : memref<1x16x20xf16, #gpu.address_space<workgroup>>
// CHECK-DAG: %[[RHS_SHARED_SUB:.+]] = memref.subview %[[RHS_SHARED]][0, 0, 0] [1, 16, 16] [1, 1, 1]
// CHECK-DAG: %[[LHS_SHARED:.+]] = memref.alloc() : memref<1x16x28xf16, #gpu.address_space<workgroup>>
// CHECK-DAG: %[[LHS_SHARED:.+]] = memref.alloc() : memref<1x16x20xf16, #gpu.address_space<workgroup>>
// CHECK-DAG: %[[LHS_SHARED_SUB:.+]] = memref.subview %[[LHS_SHARED]][0, 0, 0] [1, 16, 16] [1, 1, 1]
// CHECK-DAG: %[[LHS_GLOBAL:.+]] = hal.interface.binding.subspan set(0) binding(0) type(storage_buffer) alignment(64) offset(%c0) flags(ReadOnly) : memref<64x968x1281xf16, #hal.descriptor_type<storage_buffer>>
// CHECK-DAG: %[[RHS_GLOBAL:.+]] = hal.interface.binding.subspan set(0) binding(1) type(storage_buffer) alignment(64) offset(%c0) flags(ReadOnly) : memref<64x1281x1281xf16, #hal.descriptor_type<storage_buffer>>
Expand Down

0 comments on commit afb986e

Please sign in to comment.