Skip to content

Commit 5db8990

Browse files
authored
[mlir][test][gpu] Migrate ROCM tests to the TargetAttr compilation workflow (#65805)
Migrate tests referencing `gpu-to-hsaco` to the new compilation workflow using TargetAttrs.
1 parent aaa0906 commit 5db8990

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

mlir/test/Integration/GPU/ROCM/gpu-to-hsaco.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: mlir-opt %s \
22
// RUN: | mlir-opt -gpu-kernel-outlining \
3-
// RUN: | mlir-opt -pass-pipeline='builtin.module(gpu.module(strip-debuginfo,convert-gpu-to-rocdl,gpu-to-hsaco{chip=%chip}))' \
4-
// RUN: | mlir-opt -gpu-to-llvm \
3+
// RUN: | mlir-opt -pass-pipeline='builtin.module(gpu.module(strip-debuginfo,convert-gpu-to-rocdl),rocdl-attach-target{chip=%chip})' \
4+
// RUN: | mlir-opt -gpu-to-llvm -gpu-module-to-binary \
55
// RUN: | mlir-cpu-runner \
66
// RUN: --shared-libs=%mlir_rocm_runtime \
77
// RUN: --shared-libs=%mlir_runner_utils \

mlir/test/Integration/GPU/ROCM/printf.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: mlir-opt %s \
2-
// RUN: | mlir-opt -pass-pipeline='builtin.module(gpu.module(strip-debuginfo,convert-gpu-to-rocdl{index-bitwidth=32 runtime=HIP},gpu-to-hsaco{chip=%chip}))' \
3-
// RUN: | mlir-opt -gpu-to-llvm \
2+
// RUN: | mlir-opt -pass-pipeline='builtin.module(gpu.module(strip-debuginfo,convert-gpu-to-rocdl{index-bitwidth=32 runtime=HIP}),rocdl-attach-target{chip=%chip})' \
3+
// RUN: | mlir-opt -gpu-to-llvm -gpu-module-to-binary \
44
// RUN: | mlir-cpu-runner \
55
// RUN: --shared-libs=%mlir_rocm_runtime \
66
// RUN: --shared-libs=%mlir_runner_utils \

mlir/test/Integration/GPU/ROCM/two-modules.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: mlir-opt %s \
22
// RUN: | mlir-opt -gpu-kernel-outlining \
3-
// RUN: | mlir-opt -pass-pipeline='builtin.module(gpu.module(strip-debuginfo,convert-gpu-to-rocdl,gpu-to-hsaco{chip=%chip}))' \
4-
// RUN: | mlir-opt -gpu-to-llvm \
3+
// RUN: | mlir-opt -pass-pipeline='builtin.module(gpu.module(strip-debuginfo,convert-gpu-to-rocdl),rocdl-attach-target{chip=%chip})' \
4+
// RUN: | mlir-opt -gpu-to-llvm -gpu-module-to-binary \
55
// RUN: | mlir-cpu-runner \
66
// RUN: --shared-libs=%mlir_rocm_runtime \
77
// RUN: --shared-libs=%mlir_runner_utils \

mlir/test/Integration/GPU/ROCM/vecadd.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// RUN: mlir-opt %s \
22
// RUN: | mlir-opt -convert-scf-to-cf \
33
// RUN: | mlir-opt -gpu-kernel-outlining \
4-
// RUN: | mlir-opt -pass-pipeline='builtin.module(gpu.module(strip-debuginfo,convert-gpu-to-rocdl{use-bare-ptr-memref-call-conv=true},gpu-to-hsaco{chip=%chip}))' \
5-
// RUN: | mlir-opt -gpu-to-llvm=use-bare-pointers-for-kernels=true \
4+
// RUN: | mlir-opt -pass-pipeline='builtin.module(gpu.module(strip-debuginfo,convert-gpu-to-rocdl{use-bare-ptr-memref-call-conv=true}),rocdl-attach-target{chip=%chip})' \
5+
// RUN: | mlir-opt -gpu-to-llvm=use-bare-pointers-for-kernels=true -gpu-module-to-binary \
66
// RUN: | mlir-cpu-runner \
77
// RUN: --shared-libs=%mlir_rocm_runtime \
88
// RUN: --shared-libs=%mlir_runner_utils \

mlir/test/Integration/GPU/ROCM/vector-transferops.mlir

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// RUN: mlir-opt %s \
22
// RUN: | mlir-opt -convert-scf-to-cf \
33
// RUN: | mlir-opt -gpu-kernel-outlining \
4-
// RUN: | mlir-opt -pass-pipeline='builtin.module(gpu.module(strip-debuginfo,convert-gpu-to-rocdl{chipset=%chip index-bitwidth=32},gpu-to-hsaco{chip=%chip}))' \
5-
// RUN: | mlir-opt -gpu-to-llvm \
4+
// RUN: | mlir-opt -pass-pipeline='builtin.module(gpu.module(strip-debuginfo,convert-gpu-to-rocdl{chipset=%chip index-bitwidth=32}),rocdl-attach-target{chip=%chip})' \
5+
// RUN: | mlir-opt -gpu-to-llvm -gpu-module-to-binary \
66
// RUN: | mlir-cpu-runner \
77
// RUN: --shared-libs=%mlir_rocm_runtime \
88
// RUN: --shared-libs=%mlir_runner_utils \

0 commit comments

Comments
 (0)