Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/191632
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (3 Unrelated Failures)As of commit d41a80b with merge base 3022368 ( NEW FAILURES SUPPRESSED BY AI (non-blocking) - The following jobs failed, but the AI CI Advisor judged the failures not to be evidence against this change:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
… PRs land (#7009) ## Motivation This passes scikit-build-core force-include settings for our generated and .gitignore'd `_rocm_init.py` file and Windows OpenMP runtime files. * Local patch for #6965 * This should be compatible with * pytorch/pytorch#191625 * pytorch/pytorch#191632 * pytorch/pytorch#191629 ## Technical Details * `python -m build` backend configuration (https://build.pypa.io/en/stable/how-to/config-settings.html) documents `-C` as shorthand for `--config-setting`. It forwards `KEY=VALUE` settings to the selected PEP 517 backend. * scikit-build-core configuration (https://scikit-build-core.readthedocs.io/en/stable/configuration/#configuration) says every setting can be supplied through `pyproject.toml`, PEP 517 config settings, or environment variables. Its examples use dotted CLI keys such as `-Ccmake.build-type=Debug` (see https://scikit-build-core.readthedocs.io/en/stable/reference/configs.html#confval-cmake.build-type) * scikit-build-core’s `wheel.force-include` section (https://scikit-build-core.readthedocs.io/en/stable/configuration/#force-including-files) documents the source-to-destination mapping and notes that exact force-includes override exclusions. ## Test Plan Trigger builds of pytorch on linux and windows using 'nightly', look for `_rocm_init.py` and library load succeeding | Config | Logs | Result | -- | -- | -- Linux 'nightly' | https://github.com/ROCm/TheRock/actions/runs/30588591418 | Pending Linux 'release/2.12' | https://github.com/ROCm/TheRock/actions/runs/30589526077 | Pending Windows 'nightly' | https://github.com/ROCm/TheRock/actions/runs/30588680552 | Pending ## Submission Checklist - [x] Look over the contributing guidelines at https://github.com/ROCm/TheRock/blob/main/CONTRIBUTING.md. Co-authored-by: Codex <[email protected]>
jithunnair-amd
left a comment
There was a problem hiding this comment.
@ethanwee1 Lgtm, but can you please post a link to theRock validation build, since pytorch/pytorch CI doesn't have a build to test this yet?
|
TheRock validation for this PR (pyproject Run (in progress): https://github.com/ROCm/TheRock/actions/runs/30864648889
Note: yesterday's run https://github.com/ROCm/TheRock/actions/runs/30844303146 used |
|
Status update: first run today (30864648889) failed because the test branch was stale vs TheRock main ( Re: pytorch_git_ref: the dispatch input stays New run (queued): https://github.com/ROCm/TheRock/actions/runs/30866436372 |
|
@ethanwee1 Please follow up on this; theROCk build you linked to in your last comment failed to build |
ad903e3 to
a5304f3
Compare
|
|
TheRock writes torch/_rocm_init.py before ROCm wheel builds; .gitignore drops it from scikit-build-core's package walk. Add a wheel.exclude negation so the file is shipped when present (ScottTodd's pyproject.toml suggestion; same pattern as nativert .py un-excludes). Alternative to CMake install (pytorch#191625); safe when the file is absent on non-ROCm builds unlike wheel.force-include. Fixes ROCm/TheRock#6965 Fixes ROCm/TheRock#6991
a5304f3 to
d41a80b
Compare
After the scikit-build-core wheel migration, the Windows ROCm wheel drops TheRock's generated
torch/_rocm_init.pybecause scikit-build-core excludes gitignored files, and without itimport torchfails with WinError 126 onc10_hip.dll. This adds a one-linewheel.excludenegation inpyproject.tomlso the file ships when present, matching the existingnativertpattern and staying a no-op on non-ROCm builds. It replaces the temporary force-include TheRock currently carries in ROCm/TheRock#7009.Fixes ROCm/TheRock#6965
Supported by @jeffdaily