Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/182278
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 4 Awaiting Approval, 1 Cancelled Job, 28 Unclassified FailuresAs of commit 3ea503e with merge base 0545bb2 ( AWAITING APPROVAL - The following workflows need approval before CI can run:
UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:
CANCELLED JOB - The following job was cancelled. Please retry:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
a283afb to
4ce545c
Compare
|
I'm verifying that everything works as expected at https://github.com/riseproject-dev/pytorch/actions/workflows/linux-riscv64.yml?query=branch%3Abuild-and-test-on-riscv64. Once this PR is integrated, I'll be able to run out-of-tree CI OOTB without any more changes in PyTorch since all the next necessary changes are in |
malfet
left a comment
There was a problem hiding this comment.
There are some changes clearly unrelated to RISCV, and some of them create a differentiation across the builds without clear explanation why this is necessary (for example, build OpenBLAS from source for aarch64, but download it from deb for RISCV)
I'll minimize to changes specific to RISC-V and split out anything in common code in different PRs.
On OpenBLAS specifically, I tried compiling OpenBLAS from source for riscv64 as well, but on QEMU it takes a few hours (on my local MacBook Pro, so should be faster on the On sccache, same thing, it just takes a long time to build when the "official" release is just very handy. We can switch aarch64 to using the builds from https://github.com/mozilla/sccache/releases as well. |
This is used as part of the riseproject-dev out-of-tree CI [1][2], to get us closer to having native builds of PyTorch on RISC-V. [1] https://github.com/risepytorch-dev/pytorch [2] https://github.com/pytorch/pytorch/blob/01bcbb4c83936f38c54a35abcef28a052bc25f83/.github/allowlist.yml#L40
|
I verified the latest change work locally and produce an image that can be used to build PyTorch locally as well. I am currently building the image on CI. It'll get picked up automatically by RISE out-of-tree CI whenever it's available. I'll link a build from it as soon as it's done. I've also validated that the previous version of the change (ca96d73) works as expected. The failure is due to applying this patch, which will go away as soon as this PR is merged. UPDATE: the image was built successfully on CI. I'm now testing it on the latest pytorch/pytorch@main commit |
|
The failure we see in the build is due to a wrong removal. I've fixed that in 732ced3 Triggering another build of the image at https://github.com/riseproject-dev/pytorch/actions/runs/25507704785. Will update once I've a pytorch/pytorch@main run using that image. UPDATE: the image was built successfully on CI, and it's working for pytorch/pytorch@main. The failure is due to needing to apply a patch that will naturally go away once this PR is merged. |
This clearly indicates that the "Setup QEMU" step didn't work as expected, which is confirmed by Setup QEMU > Extracting available platforms which returns: As opposed to a more complete list: @malfet @jordanconway what machines are these? Are they the lf runners? Are there any specific restrictions on these? Are the runners inside a container that may explain why they can't install QEMU? |
6cd6580 to
4abd299
Compare
|
@malfet @Skylion007 @zxiiro I got the diff to much smaller as it's not reusing most all of the existing infrastructure. There is still no building of the image on PyTorch's infra but it's built and used as Out-of-Tree CI at https://github.com/riseproject-dev/pytorch-ci |
…debinfo.py tools/build_with_debinfo.py depends on using ninja. It's possible ninja is installed but not used when setting `USE_NINJA=0`
|
I removed most @malfet @zxiiro @Skylion007 I would love to have your review on that now, it's in a much much better place than it was even just a few weeks ago. There has been a loot of work going on in dependencies to get there. It's not finished, we will continue reducing the diff going forward, I hope all the evolution on that PR to reduce the diff is a sign of good faith 🙂 |
Bumps lintrunner to 0.13.0. That enables builds on RISC-V with minimal diff. Derived from pytorch#182278. Pull Request resolved: pytorch#187791 Approved by: https://github.com/huydhn
Bumps numpy to 1.26.4. That enables builds on RISC-V with minimal diff. Derived from pytorch#182278. Pull Request resolved: pytorch#187792 Approved by: https://github.com/huydhn
.ci/manywheel/build.sh only recognizes GPU_ARCH_TYPE=cpu-riscv64 after merging riseproject-dev/pytorch:manywheel-riscv64 (commit 1deab4c5ec6). The docker-builds job already merges that branch to build the builder image, but linux-riscv64-binary-manywheel only merged pytorch/pytorch#182278 (which doesn't touch build.sh), so it ran against unpatched code and failed with "Un-recognized GPU_ARCH_TYPE 'cpu-riscv64', exiting...". Merge the same branch in this job too, matching docker-builds.
Bumps lintrunner to 0.13.0. That enables builds on RISC-V with minimal diff. Derived from pytorch#182278. Pull Request resolved: pytorch#187791 Approved by: https://github.com/huydhn
Bumps numpy to 1.26.4. That enables builds on RISC-V with minimal diff. Derived from pytorch#182278. Pull Request resolved: pytorch#187792 Approved by: https://github.com/huydhn
Yes, the PR will help the local Jenkins jobfor PyTorch CI on riscv64 also to troubleshoot issues caused by troublesome dependencies. |
|
@pytorchmergebot merge |
|
This PR has pending changes requested. Please address the comments and update the PR before merging. |
This PR was reopened (likely due to being reverted), so your approval was removed. Please request another review.
|
Opening into a new pull request as |
Bumps lintrunner to 0.13.0. That enables builds on RISC-V with minimal diff. Derived from pytorch#182278. Pull Request resolved: pytorch#187791 Approved by: https://github.com/huydhn
Bumps numpy to 1.26.4. That enables builds on RISC-V with minimal diff. Derived from pytorch#182278. Pull Request resolved: pytorch#187792 Approved by: https://github.com/huydhn
This is used as part of the riseproject-dev out-of-tree CI 1 2, to get us closer to having native builds of PyTorch on RISC-V.