intel / intel/mlir-extensions

Checking Test Suite Gives error: failed to legalize operation 'xegpu.load_2d'

Open
#661 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
MLIR
Stars
156
Forks
45
Avg merge
4h 14m
Merged PRs (30d)
22

Description

Hi all,

I'm building imex along side LLVM source (option 1 in README).
And get such error when checking the test. What could be the problem here?

```
> cmake --build build0 --target check-imex
[0/2] Running the IMEX generated regression tests in /home/----/MLIR/llvm-project/build0/tools/Imex/gen_test_src

Testing Time: 1.21s
Passed: 38
[1/2] Running the IMEX regression tests
UNRESOLVED: IMEX :: SPIRV/JointMatrix/gemm_using_joint_matrix_Physical_64_addressing_matrixUse_Param_level_zero.mlir (1 of 153)
******************** TEST 'IMEX :: SPIRV/JointMatrix/gemm_using_joint_matrix_Physical_64_addressing_matrixUse_Param_level_zero.mlir' FAILED ********************
Test has no 'RUN:' line
********************
FAIL: IMEX :: Conversion/XeGPUToVC/gemm_basic.mlir (2 of 153)
******************** TEST 'IMEX :: Conversion/XeGPUToVC/gemm_basic.mlir' FAILED ********************
Script:
--
: 'RUN: at line 1'; /home/----/MLIR/llvm-project/build0/bin/imex-opt -imex-convert-gpu-to-spirv /home/----/MLIR/mlir-extensions/test/Conversion/XeGPUToVC/gemm_basic.mlir | /home/----/MLIR/llvm-project/build0/bin/FileCheck /home/----/MLIR/mlir-extensions/test/Conversion/XeGPUToVC/gemm_basic.mlir
--
Exit Code: 2

Command Output (stderr):
--
/home/----/MLIR/mlir-extensions/test/Conversion/XeGPUToVC/gemm_basic.mlir:30:12: error: failed to legalize operation 'xegpu.load_2d'
%3 = xegpu.load_2d %0 : !xegpu.tile<8x16xf16> -> vector<8x8x2xf16>
^
/home/----/MLIR/mlir-extensions/test/Conversion/XeGPUToVC/gemm_basic.mlir:30:12: note: see current operation: %6 = "xegpu.load_2d"(%1) : (!xegpu.tile<8x16xf16>) -> vector<8x8x2xf16>
FileCheck error: '' is empty.
FileCheck command line: /home/----/MLIR/llvm-project/build0/bin/FileCheck /home/----/MLIR/mlir-extensions/test/Conversion/XeGPUToVC/gemm_basic.mlir

--

********************
********************
Unresolved Tests (1):
IMEX :: SPIRV/JointMatrix/gemm_using_joint_matrix_Physical_64_addressing_matrixUse_Param_level_zero.mlir

********************
Failed Tests (1):
IMEX :: Conversion/XeGPUToVC/gemm_basic.mlir

Testing Time: 33.34s
Unsupported: 1
Passed : 150
Unresolved : 1
Failed : 1
FAILED: tools/Imex/test/CMakeFiles/check-static /home/----/MLIR/llvm-project/build0/tools/Imex/test/CMakeFiles/check-static
cd /home/----/MLIR/llvm-project/build0/tools/Imex/test && /usr/bin/python3.10 /home/----/MLIR/llvm-project/build0/./bin/llvm-lit -sv /home/----/MLIR/llvm-project/build0/tools/Imex/test
ninja: build stopped: subcommand failed.
```

My CPU is 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz, with integrated GPU on chip.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.