Skip to content

Commit

Permalink
Bump llvm-project to llvm/llvm-project@4c4fd6b (#20157)
Browse files Browse the repository at this point in the history
Drops a test in LLVMGPU/test/rocdl_pipeline_test.mlir according to
changes in #20152

---------

Signed-off-by: Max Dawkins <[email protected]>
  • Loading branch information
Max191 authored Mar 4, 2025
1 parent 3692165 commit 42b7fc0
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func.func @reshape_and_lowering_config(%src: tensor<3x4xf16>, %dest: tensor<12xf

// CHECK-LABEL: func @reshape_and_lowering_config
// CHECK-SAME: %[[SRC:[A-Za-z0-9]+]]: tensor<3x4xf16>
// CHECK: %[[COPY1:.+]] = linalg.generic {{.*}} ins(%[[SRC]]
// CHECK: %[[COPY1:.+]] = linalg.copy{{.*}} ins(%[[SRC]]
// CHECK: %[[COLLAPSE:.+]] = tensor.collapse_shape %[[COPY1]]
// CHECK: linalg.copy
// CHECK-SAME: lowering_config = #iree_gpu.derived_thread_config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,54 +96,6 @@ hal.executable @dot_dispatch_0 {

// -----

#map = affine_map<(d0) -> (d0)>
#pipeline_layout = #hal.pipeline.layout<bindings = [
#hal.pipeline.binding<storage_buffer>,
#hal.pipeline.binding<storage_buffer>,
#hal.pipeline.binding<storage_buffer>
]>
hal.executable @ext_fp8_dispatch {
hal.executable.variant @rocm_hsaco_fb target(<"rocm", "rocm-hsaco-fb">) {
hal.executable.export @ext_fp8_dispatch layout(#pipeline_layout) {
^bb0(%arg0: !hal.device, %arg1: index, %arg2 : index, %arg3 : index):
%x, %y, %z = flow.dispatch.workgroup_count_from_dag_root %arg1, %arg2, %arg3
hal.return %x, %y, %z : index, index, index
}
builtin.module {
func.func @ext_fp8_dispatch() {
%c0 = arith.constant 0 : index
%0 = hal.interface.binding.subspan layout(#pipeline_layout) binding(0) alignment(64) offset(%c0) flags(ReadOnly) : !flow.dispatch.tensor<readonly:tensor<4096xf8E4M3FNUZ>>
%1 = hal.interface.binding.subspan layout(#pipeline_layout) binding(1) alignment(64) offset(%c0) flags(ReadOnly) : !flow.dispatch.tensor<readonly:tensor<4096xf8E5M2FNUZ>>
%2 = hal.interface.binding.subspan layout(#pipeline_layout) binding(2) alignment(64) offset(%c0) : !flow.dispatch.tensor<writeonly:tensor<4096xf32>>
%3 = flow.dispatch.tensor.load %0, offsets = [0], sizes = [4096], strides = [1] : !flow.dispatch.tensor<readonly:tensor<4096xf8E4M3FNUZ>> -> tensor<4096xf8E4M3FNUZ>
%4 = flow.dispatch.tensor.load %1, offsets = [0], sizes = [4096], strides = [1] : !flow.dispatch.tensor<readonly:tensor<4096xf8E5M2FNUZ>> -> tensor<4096xf8E5M2FNUZ>
%5 = tensor.empty() : tensor<4096xf32>
%6 = linalg.generic {indexing_maps = [#map, #map, #map],
iterator_types = ["parallel"]}
ins(%3, %4 : tensor<4096xf8E4M3FNUZ>, tensor<4096xf8E5M2FNUZ>)
outs(%5 : tensor<4096xf32>) {
^bb0(%in0: f8E4M3FNUZ, %in1: f8E5M2FNUZ, %out: f32):
%7 = arith.extf %in0 : f8E4M3FNUZ to f32
%8 = arith.extf %in1 : f8E5M2FNUZ to f32
%9 = arith.addf %7, %8 : f32
linalg.yield %9 : f32
} -> tensor<4096xf32>
flow.dispatch.tensor.store %6, %2, offsets = [0], sizes = [4096], strides = [1] : tensor<4096xf32> -> !flow.dispatch.tensor<writeonly:tensor<4096xf32>>
return
}
}
}
}

// CDNA3-LABEL: hal.executable public @ext_fp8_dispatch
// CDNA3: hal.executable.variant public @rocm
// CDNA3-COUNT-16: rocdl.cvt.f32.fp8 %{{.*}} : f32
// CDNA3-COUNT-16: rocdl.cvt.f32.bf8 %{{.*}} : f32
// CDNA3: %[[ADD:.+]] = llvm.fadd %{{.*}}, %{{.*}} : vector<16xf32>
// CDNA3: llvm.store %[[ADD]], %{{.*}} : vector<16xf32>, !llvm.ptr<1>

// -----

// Verify that the ceildivsi op gets expanded and lowered successfully all the way to
// the llvm dialect.

Expand Down
1 change: 0 additions & 1 deletion tests/e2e/regression/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ iree_check_single_backend_test_suite(
name = "check_regression_compilation_only_vmvx_ukernels",
srcs = [
"dynamic_matmuls_on_same_accumulator_issue_12060.mlir",
"dynamic_tosa_clamp.mlir",
],
compiler_flags = [
"--iree-vmvx-enable-microkernels",
Expand Down
1 change: 0 additions & 1 deletion tests/e2e/regression/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ iree_check_single_backend_test_suite(
check_regression_compilation_only_vmvx_ukernels
SRCS
"dynamic_matmuls_on_same_accumulator_issue_12060.mlir"
"dynamic_tosa_clamp.mlir"
TARGET_BACKEND
"vmvx"
COMPILER_FLAGS
Expand Down
6 changes: 0 additions & 6 deletions tests/e2e/regression/dynamic_tosa_clamp.mlir

This file was deleted.

2 changes: 1 addition & 1 deletion third_party/llvm-project
Submodule llvm-project updated 1404 files

0 comments on commit 42b7fc0

Please sign in to comment.