Skip to content

Improve source build robustness - #78

Open
liuyao0322 wants to merge 1 commit into
Tencent:mainfrom
liuyao0322:fix/build-robustness
Open

Improve source build robustness#78
liuyao0322 wants to merge 1 commit into
Tencent:mainfrom
liuyao0322:fix/build-robustness

Conversation

@liuyao0322

Copy link
Copy Markdown

Summary

  • Use the invoking Python interpreter for CMake/PyTorch discovery.
  • Match PyTorch's CXX11 ABI and add clearer build diagnostics.
  • Make CUDA architectures and build parallelism configurable.
  • Document toolchain troubleshooting for PyTorch header failures.

Validation

  • Passed python3 -m py_compile setup.py
  • Passed git diff --check
  • Passed source extension build with CUDA 12.8 and PyTorch 2.10.0+cu128:
    python setup.py build_ext --inplace
  • Passed wheel build with CUDA 12.8 and PyTorch 2.10.0+cu128:
    MAX_JOBS=8 python setup.py bdist_wheel

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.

1 participant