Skip to content

Remove vestigial boost dependencies#38

Merged
erwei-xilinx merged 1 commit into
mainfrom
remove-vestigial-boost-deps
Apr 8, 2026
Merged

Remove vestigial boost dependencies#38
erwei-xilinx merged 1 commit into
mainfrom
remove-vestigial-boost-deps

Conversation

@erwei-xilinx

Copy link
Copy Markdown
Collaborator

Summary

  • Remove -lboost_program_options and -lboost_filesystem link flags from the xclbin-mode JIT compilation path in driver.py
  • Remove libboost-dev, libboost-filesystem-dev, and libboost-program-options-dev from the CI Dockerfile

The test_utils library in mlir-aie was migrated from boost to cxxopts and std::filesystem. Confirmed via nm: libtest_utils.a contains zero boost symbols. These link flags and CI packages are no longer needed.

Test plan

  • Clean build from source (rm -rf third_party/triton/build && ninja -Cbuild)
  • 12/12 NPU1 (aie2) e2e tests pass (python scripts/run_tests.py --device aie2)
    • 1 pre-existing failure in weighted_rms_norm (unrelated mlir-air pipeline error)
    • 3 default-skipped tests (layernorm, load_2d_block, multi_drivers)

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings April 8, 2026 05:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes now-unneeded Boost linkage and CI dependencies after mlir-aie’s test_utils library migration away from Boost (to cxxopts and std::filesystem), simplifying both the JIT build path and the CI image.

Changes:

  • Drop -lboost_program_options and -lboost_filesystem from the xclbin-mode launcher compilation flags.
  • Remove Boost-related dev packages from the CI Docker image.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
ci/docker-based/Dockerfile Removes Boost dev packages from the CI container build dependencies.
amd_triton_npu/backend/driver.py Removes Boost link flags from the xclbin-mode JIT compilation path (keeps -ltest_utils).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

The test_utils library in mlir-aie was migrated from boost
(boost_program_options, boost_filesystem) to cxxopts and
std::filesystem. The boost link flags in the JIT compilation path and
boost packages in the CI Dockerfile are no longer needed.

Verified: libtest_utils.a contains zero boost symbols. Clean build and
12/12 NPU1 e2e tests pass without boost.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
f"-L{os.path.join(aie_test_utils_dir, 'lib')}",
"-lboost_program_options",
"-lboost_filesystem",
"-ltest_utils",

This comment was marked as resolved.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. I confirmed that the Windows mlir-aie wheel ships headers in test_lib/include/ but the test_lib/lib/ directory (containing libtest_utils.a) is missing entirely. I'll get it fixed in mlir-aie.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR created on mlir-aie: Xilinx/mlir-aie#3024

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great thank you. I just figured it was easier to point it out here.

@erwei-xilinx erwei-xilinx merged commit cfb9190 into main Apr 8, 2026
12 of 13 checks passed
@erwei-xilinx erwei-xilinx deleted the remove-vestigial-boost-deps branch April 8, 2026 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants