[WIP] Enable build mlir-aie and run tests without Vitis#2288
Draft
[WIP] Enable build mlir-aie and run tests without Vitis#2288
Conversation
Collaborator
Author
Upgrade pip before installing Python dependencies.
Add support for building mlir-aie using only the Peano (llvm-aie) compiler instead of requiring Vitis AIE Essentials. This enables fully open-source builds for Ryzen AI NPU development. Key changes: - Add AIE_PEANO_ONLY_BUILD CMake option that forces PEANO compiler/linker - Make chess_intrinsic_wrapper.ll generation conditional on xchesscc (Peano provides native intrinsic implementations through its headers) - Enable AIE2/AIE2P runtime lib builds when Peano components are found - Add peanoWheels.yml GitHub workflow for Peano-only wheel builds - Update LIT test infrastructure to support Peano component detection - Add Peano-only build documentation to docs/Building.md Note: Only AIE2 and AIE2P targets are supported in Peano-only builds. The original Versal AIE architecture requires Vitis. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use the nightly release URL for llvm-aie instead of trying to match the MLIR version, which doesn't exist for Peano releases. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use pip install instead of pip download + unzip to get the correct directory structure for llvm-aie. The wheel's internal layout doesn't match what FindPeano.cmake expects when simply unzipped. Use the same approach as buildAndTestRyzenAI.yml: install with pip and discover the path via pip show llvm-aie. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Ubuntu-latest is now Ubuntu 24.04 with glibc 2.39, which is incompatible with manylinux_2_35. Use manylinux_2_39_x86_64 to match the build environment. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Coverage ReportCreated: 2026-02-25 17:56Click here for information about interpreting this report.
Generated by llvm-cov -- llvm version 18.1.3 |
Tests that call aiecc.py without --no-xchesscc rely on the default compiler which may be xchesscc when the build was configured with Vitis. These tests should require the "chess" feature so they get skipped in environments where aietools/xchesscc is not available. This fixes the "No Chess" CI test failures where tests were trying to use xchesscc but aietools was not installed. Tests modified: - test/unit_tests/aie2: 6 tests - test/npu-xrt: 31 tests Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Discover "supported" components in Peano.
Add workflow to build and run Tests and Examples without xchesscc.
TODOs:
aie_runtime_libswith Peano-> Disabled now in 6d4d691precompile intrinsic wrappers with Peanocopy runtime libs for each AIE architecture 5101d26