Skip to content

fix PREBUILD_KERNELS=1 build deps - #449

Merged
valarLip merged 1 commit into
ROCm:mainfrom
dtrifiro:fix-build-deps
May 21, 2025
Merged

valarLip merged 1 commit into
ROCm:mainfrom
dtrifiro:fix-build-deps

Conversation

@dtrifiro

@dtrifiro dtrifiro commented May 20, 2025 •

Copy link
Copy Markdown
Contributor

When building this module with PREBUILD_KERNELS=1, the following import errors come up, although they don't break the build process.

$ uv venv
$ source .venv/bin/activate
$ uv pip install setuptools-scm packaging psutil ninja
...
$ PREBUILD_KERNELS=1 python setup.py bdist_wheel
...
Traceback (most recent call last):
  File "/home/runner/_work/aiter/csrc/ck_batched_gemm_bf16/gen_instances.py", line 8, in <module>
    import pandas as pd
ModuleNotFoundError: No module named 'pandas'
Traceback (most recent call last):
  File "/home/runner/_work/aiter/csrc/ck_batched_gemm_a8w8/gen_instances.py", line 8, in <module>
    import pandas as pd
ModuleNotFoundError: No module named 'pandas'
Traceback (most recent call last):
  File "/home/runner/_work/aiter/csrc/ck_gemm_a8w8/gen_instances.py", line 8, in <module>
    import pandas as pd
ModuleNotFoundError: No module named 'pandas'
Traceback (most recent call last):
  File "/home/runner/_work/aiter/csrc/ck_gemm_a8w8_blockscale/gen_instances.py", line 8, in <module>
    import pandas as pd
ModuleNotFoundError: No module named 'pandas'
Traceback (most recent call last):
  File "/home/runner/_work/aiter/hsa//fmoe_2stages/codegen.py", line 7, in <module>
    import pandas as pd
ModuleNotFoundError: No module named 'pandas'
...

Installing pandas solves the issue:

$ uv pip install pandas
...
$ PREBUILD_KERNELS=1 python setup.py bdist_wheel
...
Successfully preprocessed all matching files.
...

And the build continues (failing with another error :), see #450) .

Comment thread pyproject.toml Resolved
Comment thread setup.py Resolved
@dtrifiro

Copy link
Copy Markdown
Contributor Author

@valarLip it looks like CI is failing, but I have no access to it. Is there any way I can help debug this?

@valarLip

Copy link
Copy Markdown
Collaborator

@valarLip it looks like CI is failing, but I have no access to it. Is there any way I can help debug this?

yeah, it's due to error: [Errno 28] No space left on device

@valarLip
valarLip merged commit 061c449 into ROCm:main May 21, 2025
@dtrifiro
dtrifiro deleted the fix-build-deps branch May 21, 2025 13:58
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.

2 participants