Skip to content

GEMM produces incorrect output for certain MNK tilings on AIE2 (XDNA1) with latest wheels #2793

@Fangtangtang

Description

@Fangtangtang

Hi, I'm encountering incorrect GEMM results when using the latest wheels build of mlir-aie targeting AIE2 (XDNA1). The same example and configurations worked correctly with release v1.0.

I'm following setup instructions in commit e952e58d8c1ec7c2759696318731527de8dcc0b5. I install mlir-aie with

python3 -m pip install mlir_aie==0.0.1.2025122304+e952e58 -f https://github.com/Xilinx/mlir-aie/releases/expanded_assets/latest-wheels-2/

and llvm-aie wheel with

python3 -m pip install llvm-aie -f https://github.com/Xilinx/llvm-aie/releases/expanded_assets/nightly

When running programming_examples/basic/matrix_multiplication/single_core on RyzenAI-npu1, I observe incorrect computation results for certain MNK tiling configurations.

For example:

  • when m = 16, k = 64, n = 16, the output matrix is all zeros

the same example and tiling configurations produced correct results when I was using release v1.0. I'm trying to understand whether this is caused by a misconfiguration on my side or any recent compiler change.

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions