<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63189>63189</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
MLIR rocm tests (two) failure on AMD RX 7900 XTX
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
bondhugula
</td>
</tr>
</table>
<pre>
The latest official git version at 18cc07aa07f6784cc59a4b4cfe33522867805586 (Jun 8) has two ROCM tests in the check-mlir suite failing on a modern AMD Radeon GPU - the RX 7900 XTX (gfx1100) with ROCM 5.4.3. The remaining four in `Integration/GPU/ROCM/` pass.
```
********************
FAIL: MLIR :: Integration/GPU/ROCM/vector-transferops.mlir (3 of 6)
******************** TEST 'MLIR :: Integration/GPU/ROCM/vector-transferops.mlir' FAILED ********************
Script:
--
: 'RUN: at line 1'; /home/uday/llvm-project-upstream/build/bin/mlir-opt /home/uday/llvm-project-upstream/mlir/test/Integration/GPU/ROCM/vector-transferops.mlir | /home/uday/llvm-project-upstream/build/bin/mlir-opt -convert-scf-to-cf | /home/uday/llvm-project-upstream/build/bin/mlir-opt -gpu-kernel-outlining | /home/uday/llvm-project-upstream/build/bin/mlir-opt -pass-pipeline='builtin.module(gpu.module(strip-debuginfo,convert-gpu-to-rocdl{chipset=gfx1100 index-bitwidth=32},gpu-to-hsaco{chip=gfx1100}))' | /home/uday/llvm-project-upstream/build/bin/mlir-opt -gpu-to-llvm | /home/uday/llvm-project-upstream/build/bin/mlir-cpu-runner --shared-libs=/home/uday/llvm-project-upstream/build/lib/libmlir_rocm_runtime.so --shared-libs=/home/uday/llvm-project-upstream/build/lib/libmlir_runner_utils.so --entry-point-result=void | /home/uday/llvm-project-upstream/build/bin/FileCheck /home/uday/llvm-project-upstream/mlir/test/Integration/GPU/ROCM/vector-transferops.mlir
--
Exit Code: 1
Command Output (stderr):
--
/home/uday/llvm-project-upstream/mlir/test/Integration/GPU/ROCM/vector-transferops.mlir:79:12: error: CHECK: expected string not found in input
// CHECK: [1.23, 2.46, 2.46, 1.23]
^
<stdin>:1:1: note: scanning from here
Unranked Memref base@ = 0x562c99d56c80 rank = 1 offset = 0 sizes = [4] strides = [1] data =
^
<stdin>:2:1: note: possible intended match here
[1.23, 1.23, 1.23, 1.23]
^
Input file: <stdin>
Check file: /home/uday/llvm-project-upstream/mlir/test/Integration/GPU/ROCM/vector-transferops.mlir
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: Unranked Memref base@ = 0x562c99d56c80 rank = 1 offset = 0 sizes = [4] strides = [1] data =
check:79'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
2: [1.23, 1.23, 1.23, 1.23]
check:79'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
check:79'1 ? possible intended match
3: Unranked Memref base@ = 0x562c99d56c80 rank = 1 offset = 0 sizes = [4] strides = [1] data =
check:79'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
4: [1.23, 1.23, 1.23, 1.23]
check:79'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>
--
-- Testing: 6 of 2061 tests, 6 workers --
FAIL: MLIR :: Integration/GPU/ROCM/printf.mlir (6 of 6)
******************** TEST 'MLIR :: Integration/GPU/ROCM/printf.mlir' FAILED ********************
Script:
--
: 'RUN: at line 1'; /home/uday/llvm-project-upstream/build/bin/mlir-opt /home/uday/llvm-project-upstream/mlir/test/Integration/GPU/ROCM/printf.mlir | /home/uday/llvm-project-upstream/build/bin/mlir-opt -pass-pipeline='builtin.module(gpu.module(strip-debuginfo,convert-gpu-to-rocdl{index-bitwidth=32 runtime=HIP},gpu-to-hsaco{chip=gfx1100}))' | /home/uday/llvm-project-upstream/build/bin/mlir-opt -gpu-to-llvm | /home/uday/llvm-project-upstream/build/bin/mlir-cpu-runner --shared-libs=/home/uday/llvm-project-upstream/build/lib/libmlir_rocm_runtime.so --shared-libs=/home/uday/llvm-project-upstream/build/lib/libmlir_runner_utils.so --entry-point-result=void | /home/uday/llvm-project-upstream/build/bin/FileCheck /home/uday/llvm-project-upstream/mlir/test/Integration/GPU/ROCM/printf.mlir
--
Exit Code: 2
Command Output (stderr):
--
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace.
Stack dump:
0. Program arguments: /home/uday/llvm-project-upstream/build/bin/mlir-cpu-runner --shared-libs=/home/uday/llvm-project-upstream/build/lib/libmlir_rocm_runtime.so --shared-libs=/home/uday/llvm-project-upstream/build/lib/libmlir_runner_utils.so --entry-point-result=void
#0 0x0000561558409860 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/uday/llvm-project-upstream/build/bin/mlir-cpu-runner+0x9a4860)
#1 0x0000561558406c44 SignalHandler(int) Signals.cpp:0:0
#2 0x00007f8ad5a42520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520)
#3 0x00007f8acd91fb68 (/opt/rocm/lib/libamdhip64.so.5+0x31fb68)
#4 0x00007f8acd94435b (/opt/rocm/lib/libamdhip64.so.5+0x34435b)
#5 0x00007f8acd94cdad (/opt/rocm/lib/libamdhip64.so.5+0x34cdad)
#6 0x00007f8acd94d124 (/opt/rocm/lib/libamdhip64.so.5+0x34d124)
#7 0x00007f8acd912444 (/opt/rocm/lib/libamdhip64.so.5+0x312444)
#8 0x00007f8acd8055d0 (/opt/rocm/lib/libamdhip64.so.5+0x2055d0)
#9 0x00007f8acd813369 hipModuleLaunchKernel (/opt/rocm/lib/libamdhip64.so.5+0x213369)
#10 0x00007f8ad40db874 mgpuLaunchKernel (/home/uday/llvm-project-upstream/build/lib/libmlir_rocm_runtime.so+0x39874)
#11 0x00007f8ad61a808e
#12 0x00007f8ad61a80e1
#13 0x00005615589ef37c compileAndExecute((anonymous namespace)::Options&, mlir::Operation*, llvm::StringRef, (anonymous namespace)::CompileAndExecuteConfig, void**, std::unique_ptr<llvm::TargetMachine, std::default_delete<llvm::TargetMachine>>) JitRunner.cpp:0:0
#14 0x00005615589efa27 compileAndExecuteVoidFunction((anonymous namespace)::Options&, mlir::Operation*, llvm::StringRef, (anonymous namespace)::CompileAndExecuteConfig, std::unique_ptr<llvm::TargetMachine, std::default_delete<llvm::TargetMachine>>) JitRunner.cpp:0:0
#15 0x00005615589ed7a5 mlir::JitRunnerMain(int, char**, mlir::DialectRegistry const&, mlir::JitRunnerConfig) (/home/uday/llvm-project-upstream/build/bin/mlir-cpu-runner+0xf887a5)
#16 0x000056155835742b main (/home/uday/llvm-project-upstream/build/bin/mlir-cpu-runner+0x8f242b)
#17 0x00007f8ad5a29d90 __libc_start_call_main ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#18 0x00007f8ad5a29e40 call_init ./csu/../csu/libc-start.c:128:20
#19 0x00007f8ad5a29e40 __libc_start_main ./csu/../csu/libc-start.c:379:5
#20 0x00005615583e8fc5 _start (/home/uday/llvm-project-upstream/build/bin/mlir-cpu-runner+0x983fc5)
FileCheck error: '<stdin>' is empty.
FileCheck command line: /home/uday/llvm-project-upstream/build/bin/FileCheck /home/uday/llvm-project-upstream/mlir/test/Integration/GPU/ROCM/printf.mlir
--
********************
********************
Failed Tests (2):
MLIR :: Integration/GPU/ROCM/printf.mlir
MLIR :: Integration/GPU/ROCM/vector-transferops.mlir
Testing Time: 159.54s
Excluded: 1633
Passed : 4
Failed : 2
FAILED: tools/mlir/test/CMakeFiles/check-mlir /home/uday/llvm-project-upstream/build/tools/mlir/test/CMakeFiles/check-mlir
cd /home/uday/llvm-project-upstream/build/tools/mlir/test && /usr/bin/python3.10 /home/uday/llvm-project-upstream/build/./bin/llvm-lit -sv /home/uday/llvm-project-upstream/build/tools/mlir/test
ninja: build stopped: subcommand failed.
```
Tagging the authors based on the ChangeLog here.
CC: @krzysz00 @jerryyin
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsWl1z46a7_zTkhpEGgV4vcuG143bbzWkmmz2zdxkMSKKRQAfQJunF-ez_ASl-S7ptNu62M_96HFtGPL_nHR6eiForGyXEOcjegWx1RkfXanO-0Yq3YzN29Gyj-eP5TStgR52wDuq6lkzSDjbSwS_CWKkVpA4mJWOooBQVdV6UKWNZRdNNympBSIZxmRclyrIyhwCXP40KlgBXsKUWunsNr39ZXkIPb6FU0LUCslawu6jvpIF2lE7AmspOqgZ6brDXXBgFF5creE250Ar-cPUJRoHy-jMsKoTg55vPnldTPyQJQp7bvXTtxCqL05jE0KtlRE-l8si1Ho1nD3L0XjnRGOqkVgCvf7j6BPDaEwK8BjmCA7U2BmgF0GL-zNH8nn7iN7wDwnrx_gMgC3j54f01BGThr78i1BfBnDaRM1TZWhg92DiYDuCSQF3DHODq7aLBm4uPNxDg4m1SAVxAr9_FCr7dUB-ZkYPzsoSfUTSrSRZe0OtP_-OvqIOdVAImABeAvIMAr1vdC4DXI6ePAK-77ksfDUb_KpiLxsE6I2gP8Hozyo77b-mV88JHenB_nn5Sd-0jG-D1tziwWL5Z2ohp9UUYF1lWR05HrIanwW2GMboTRoku0qPrpiw6DbTPsGiQg_B-A2QFcOGnOqniXvOxEz6zh3H3wzojh4iLzdhIVWuAl09aeymdjoxmvAPFO9bKwQoHyGpeGaBUXDxEG-nuJXctICuCQbECeDlTtpYyPVPuyMKUKryLE9rT6ciTvR2RDWNkRqWEgVFkW2oEjzq5scGYr4Tt5Gb69Mi3RrP-1ozKyV7EVp8cPgh9OzrZ2QleKGceo0FL5SIj7Nh5733Rkr_JSmvZiaXfZb5fOh-uURcP0sGl5sIvUcn-drLUfU8Vh7-Mbhj9clNax4UxPtqerXTfTXiyKDz7BHt5hTHaD8HljxfLn8PIwyCYExz6VFQNVNr5LVVxv6dKNYxuEtibG-D1jhBk75IYE4CXEMdpvv8dxrPVTL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