Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/190181
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 0629f4f with merge base 2e16c2d ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot rebase -b main |
|
@pytorchbot started a rebase job onto refs/remotes/origin/main. Check the current status here |
|
Successfully rebased |
145fb48 to
0629f4f
Compare
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 1 jobs have failed, first few of them are: trunk / linux-jammy-rocm-py3.10-mi350 / test (distributed, 3, 3, linux.rocm.gpu.gfx950.2) Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge -i |
Merge startedYour change will be merged while ignoring the following 1 checks: trunk / linux-jammy-rocm-py3.10-mi350 / test (distributed, 3, 3, linux.rocm.gpu.gfx950.2) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
## Summary [HardwareClassification](pytorch#186918) has landed in a nightly, so the temporary import workarounds are no longer needed. ## Changes - test/conftest.py: remove try/except in `_resolve_hw_classification` - test/run_test.py: remove try/except with hardcoded `_HC_CHOICES` fallback Pull Request resolved: pytorch#190181 Approved by: https://github.com/janeyx99, https://github.com/fffrog
## Summary [HardwareClassification](pytorch#186918) has landed in a nightly, so the temporary import workarounds are no longer needed. ## Changes - test/conftest.py: remove try/except in `_resolve_hw_classification` - test/run_test.py: remove try/except with hardcoded `_HC_CHOICES` fallback Pull Request resolved: pytorch#190181 Approved by: https://github.com/janeyx99, https://github.com/fffrog
## Summary [HardwareClassification](pytorch#186918) has landed in a nightly, so the temporary import workarounds are no longer needed. ## Changes - test/conftest.py: remove try/except in `_resolve_hw_classification` - test/run_test.py: remove try/except with hardcoded `_HC_CHOICES` fallback Pull Request resolved: pytorch#190181 Approved by: https://github.com/janeyx99, https://github.com/fffrog
## Summary [HardwareClassification](pytorch#186918) has landed in a nightly, so the temporary import workarounds are no longer needed. ## Changes - test/conftest.py: remove try/except in `_resolve_hw_classification` - test/run_test.py: remove try/except with hardcoded `_HC_CHOICES` fallback Pull Request resolved: pytorch#190181 Approved by: https://github.com/janeyx99, https://github.com/fffrog
Review feedback: the guard asserting that a device type needs no entry in
`_get_device_from_module` to be recognised did so against a literal
`('hpu', 'xpu', 'mps', 'mtia', privateuse1)`. That is the same hand-maintained
device list this change deletes from `torch/storage.py`, moved into the test, so
the next backend would still have needed an edit -- one file over.
It now iterates `set(NATIVE_DEVICES) | {"hpu"}` minus `cpu`, so it widens on its
own when a native device is added, and `NATIVE_DEVICES` already ends with
`torch._C._get_privateuse1_backend_name()`, which keeps the out-of-tree case that
matters here.
`hpu` is the one name still written out. It is absent from `NATIVE_DEVICES` and it
was one of the three entries in the whitelist being deleted, so deriving alone
would silently drop the only entry of the old behaviour that nothing else covers.
Not tagging this file's classes with `hw_classification` here. `test_torch.py` has
four device-parameterized classes and one plain one, none classified, and there is
an active upstream series doing exactly that per file (pytorch#186918, pytorch#190991, pytorch#190181).
Five mechanical lines in a storage-lookup PR would enlarge the diff for an
unrelated reason and collide with that work; happy to send it separately.
Summary
HardwareClassification has landed in a nightly, so the temporary import workarounds are no longer needed.
Changes
_resolve_hw_classification_HC_CHOICESfallback