-
Notifications
You must be signed in to change notification settings - Fork 383
[xpu][test] Port 2 test/dtypes_{floatx, bitpacking} UT files to intel XPU #3368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/3368
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit b6a2c80 with merge base 257d18a ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
cc @liangan1 |
|
To add the ciflow label This helps ensure we don't trigger CI on this PR until it is actually authorized to do so. Please ping one of the reviewers if you do not have access to approve and run workflows. |
|
To add the ciflow label This helps ensure we don't trigger CI on this PR until it is actually authorized to do so. Please ping one of the reviewers if you do not have access to approve and run workflows. |
test/dtypes/test_floatx.py
Outdated
| _DEVICES = ( | ||
| ["cpu"] | ||
| + (["cuda"] if torch.cuda.is_available() else []) | ||
| + (["xpu"] if torch.xpu.is_available() else []) | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not do torch.accelerator.is_available here (and change cuda to get_current_accelerator_device)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated to use torch.accelerator.is_available
… XPU (pytorch#3368) * enable test/dtypes/test_bitpacking.py on intel xpu * enable test/dtypes/test_floatx.py * enable test/dtypes/test_floatx.py * fix format issue * fix format issue * update _DEVICES
For #2917, This PR is targeted to port test/dtypes/test_floatx.py and test/dtypes/test_bitpacking.py to intel XPU.