Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/160776
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 3b21411 with merge base 3650989 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot label "topic: not user facing" (yet!) |
| # TODO: add rocm[libraries]==ROCM_SDK_VERSION to PYTORCH_EXTRA_INSTALL_REQUIREMENTS? | ||
| # (perhaps with ~= or some other looser pin) |
There was a problem hiding this comment.
From https://github.com/ROCm/TheRock/blob/main/docs/packaging/python_packaging.md#configuring-your-python-project-dependencies, the recommended code pattern for this is
export PYTORCH_EXTRA_INSTALL_REQUIREMENTS="rocm[libraries]=={$(rocm-sdk version)}"I'm not quite sure what we'll want for building/testing/releasing in this repository though. Downstream in https://github.com/ROCm/TheRock we host our own package index for each GPU family including rocm, torch, and torch's dependencies:
- Docs: https://github.com/ROCm/TheRock/blob/main/RELEASES.md#installing-pytorch-python-packages
- Example for gfx94X: https://d2awnip2yjpvqn.cloudfront.net/v2/gfx94X-dcgpu/ (better domain name TBD)
- Example for gfx110X: https://d2awnip2yjpvqn.cloudfront.net/v2/gfx110X-dgpu/ (better domain name TBD)
We don't yet include the rocm packages on PyTorch's index pages or PyPI. We could try with --extra-index-url in the short term for CI. Longer term I think we'll need to solve how to make the different GPU architecture families accessible without needing to manually specify a different index URL for each, perhaps with https://wheelnext.dev/.
| # TODO: enable GLOO somehow | ||
| export USE_GLOO=0 |
There was a problem hiding this comment.
We may be able to flip this option once pytorch/gloo#461 goes in.
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
|
Converting to a draft PR. This will still be useful in some form but I'll need to re-evaluate the approach a bit and then pick the work back up. |
Progress on #159520.
This begins to set up build scripts and documentation for building PyTorch with ROCm support on Windows, using the (preview) ROCm Python packages published by https://github.com/ROCm/TheRock. The scripts have been adapted from existing downstream scripts at https://github.com/ROCm/TheRock/tree/main/external-builds/pytorch which have been producing torch wheels for about 1 month.
Notes:
.ci/pytorch/rocm_sdk-build.shand.ci/pytorch/win-build.sh.ci/pytorch/, intending for Windows ROCm builds to slot into existing workflows that callwin-build.shhere:pytorch/.github/workflows/_win-build.yml
Lines 170 to 171 in fa75ba9
tools/amd_build/build_windows.shbuild_pytorch.batlocally (without deeper changes) since it references hardcoded paths on Windows AMI runners.tools/amd_build/write_rocm_init.pyexternal-builds/pytorch/build_prod_wheels.py. I've generalized the file generation here, perhaps too much - we'll see.I've tested the build scripts locally and sanity checked the wheels produced by a build. I have not tested them on any CI/CD runners yet. I expect I may want to fork an existing workflow and maybe extend
.github/actions/setup-win/action.ymlor.github/actions/setup-rocm/action.ymlto handle installing the ROCm Python wheels. If new workflows will use AMD-provided build/test runners, I'll also need to figure out how to handle any differences in installed software and credentials (e.g. permissions for using cache servers, etc.).cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @dllehr-amd @jataylo @hongxiayang @naromero77amd