Skip to content

SPECS: python-torch add ROCm backend - #970

Open
Sakura286 wants to merge 1 commit into
openRuyi-Project:mainfrom
Sakura286:pytorch-rocm-submit
Open

SPECS: python-torch add ROCm backend#970
Sakura286 wants to merge 1 commit into
openRuyi-Project:mainfrom
Sakura286:pytorch-rocm-submit

Conversation

@Sakura286

@Sakura286 Sakura286 commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Enable ROCm backend
  • Upgrade PyTorch to 2.13.0

Notice

  1. This PR relies on SPECS: add PyTorch ROCm backend requirements #965 and SPECS: llvm-defaults: fix libomp soft-link path #967
  2. This package need additional _multibuild file to build rocm backened.
<multibuild>
  <package>rocm</package>
</multibuild>
  1. This package build about 2000 C++/HIP target, it is suggested to add _constraints to build with more parallelism
<constraints>
  <overwrite>
    <conditions>
      <arch>riscv64</arch>
     </conditions>
    <hardware>
       <jobs>32</jobs>
    </hardware>
  </overwrite>
  
  <overwrite>
    <conditions>
      <arch>x86_64</arch>
     </conditions>
    <hardware>
       <jobs>32</jobs>
    </hardware>
  </overwrite>
</constraints>

Build Status

https://build.openruyi.cn/package/show/home:Sakura286:ROCm_PyTorch_Submit/python-torch

Checklist

Assisted-by: GPT 5.5/5.6, Kimi K3

Assisted Content:

  • pytorch-smoke-test.py test script
  • Some HIP compilation error like 2007-loss-hip-O0-workaround-llvm22-codegen.patch, but guarded by external links with human audit.
  • Some Comments

@openruyi-bot openruyi-bot Bot added AI Assistance AI is used to help with portions of code, tests, or documentation. BuildSystem: pyproject Issue/PR related to pyproject BuildSystem. Target: Rolling Targeting rolling/current branch. Workflow: Ready For Review Ready for review by anyone with domain expertise. labels Jul 20, 2026
@Sakura286
Sakura286 force-pushed the pytorch-rocm-submit branch from 04cb2c0 to d8a7ac8 Compare July 20, 2026 12:26
@misaka00251
misaka00251 requested a review from Z572 July 20, 2026 14:34
@misaka00251 misaka00251 added this to the 2026.08 milestone Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Assistance AI is used to help with portions of code, tests, or documentation. BuildSystem: pyproject Issue/PR related to pyproject BuildSystem. Target: Rolling Targeting rolling/current branch. Workflow: Ready For Review Ready for review by anyone with domain expertise.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants