ROCm / ROCm/aiter

[AOT Build] Cannot compile all modules ahead of time

Open
#718 0 comments 1 reaction 1 assignee View on GitHub

@lalala-sh is already working on this.

Since Jul 26, 2025.

Dominant language
Python
Stars
565
Forks
585
Avg merge
3d 4h
Merged PRs (30d)
366

Description

Problem Description

I want to compile all modules ahead of time, so i use the following command to create a wheel package PREBUILD_KERNELS=1 python3 setup.py bdist_wheel
However, setup.py will exclude some modules as follows:

Image

I tried to comment some modules above, such as module_moe_ck2stages, and the compile will fail. The reason why compiling module_moe_ck2stages here will fail is that no blob_gen_cmd is passed to the configs

Image

I am not sure whether other modules will have the same problem

I hope aiter can support fully AOT build, or we can choose what modules we what via say like a config file

Operating System

Ubuntu 22.04

CPU

Null

GPU

MI308X

ROCm Version

ROCm 6.3.3

ROCm Component

No response

Steps to Reproduce

PREBUILD_KERNELS=1 python3 setup.py bdist_wheel

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.