Adapt dtensor tests to be device agnostic#154840
Adapt dtensor tests to be device agnostic#154840amathewc wants to merge 1 commit intopytorch:mainfrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/154840
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit 2b5c4e2 with merge base 2908c10 ( UNSTABLE - The following job is marked as unstable, possibly due to flakiness on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot label "topic: not user facing" |
|
Should these be skipifXPU or should it be xfailIfXPU? We prefer the latter so we can enable them later when the functionality is fixed. |
|
This PR should be dedicated to Intel Gaudi. For Intel GPU(XPU), we have supported the feature. @zhangxiaoli73 |
Yes - this is specific for Intel Gaudi (HPU) devices. |
|
@pytorchmergebot rebase |
|
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
Signed-off-by: Aby Mathew C <aby.mathew.c@intel.com>
|
Successfully rebased |
@albanD : Could you initiate the merging as well ? |
|
@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 |
## MOTIVATION This PR is a continuation of #154840 and we are trying to make the tests more device agnostic by removing hard coded references to any particular device. Please refer to this RFC as well: pytorch/rfcs#66 ## CHANGES 1. test_convolution_ops.py: - Replace "cuda" with self.device_type 2. test_random_ops.py: - Remove setting and using TYPE_DEVICE variable since device_type is set as per the environment (device) in DTensorTestBase class. - Replace "cuda" with self.device_type Pull Request resolved: #155687 Approved by: https://github.com/EikanWang, https://github.com/d4l3k
##MOTIVATION
This PR includes minor changes to skip some unsupported tests on Intel Gaudi devices as well as to make some of the tests more device agnostic.
Please refer to this RFC as well: pytorch/rfcs#66
##CHANGES
cc @H-Huang @awgu @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k, @ankurneog, @EikanWang, @guangyey