Skip to content

Refactor CPU feature checks to use torch capabilities#177177

Closed
malfet wants to merge 1 commit intomainfrom
malfet-patch-8
Closed

Refactor CPU feature checks to use torch capabilities#177177
malfet wants to merge 1 commit intomainfrom
malfet-patch-8

Conversation

@malfet
Copy link
Copy Markdown
Contributor

@malfet malfet commented Mar 11, 2026

Use torch.cpu.get_capabilities() rather than parse /proc/cpuinfo and restrict the check to just Linux systems

Followup after #171095

Use `torch.cpu.get_capabilities()` rather than parse `/proc/cpuinfo` and restrict the check to just Linux systems

Followup after #171095
@malfet malfet requested a review from Skylion007 March 11, 2026 20:09
@malfet malfet requested a review from a team as a code owner March 11, 2026 20:09
@malfet malfet added the topic: not user facing topic category label Mar 11, 2026
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot bot commented Mar 11, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/177177

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 03d8662 with merge base ad67e7a (image):

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.

@malfet
Copy link
Copy Markdown
Contributor Author

malfet commented Mar 11, 2026

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Mar 11, 2026
@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Merge started

Your 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

Advanced Debugging
Check the merge workflow status
here

@malfet
Copy link
Copy Markdown
Contributor Author

malfet commented Mar 12, 2026

@pytorchbot merge -i

@pytorchmergebot
Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged while ignoring the following 1 checks: trunk / linux-jammy-rocm-py3.10 / test (distributed, 1, 3, linux.rocm.gpu.gfx950.4)

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

EmanueleCoradin pushed a commit to EmanueleCoradin/pytorch that referenced this pull request Mar 30, 2026
Use `torch.cpu.get_capabilities()` rather than parse `/proc/cpuinfo` and restrict the check to just Linux systems

Followup after pytorch#171095
Pull Request resolved: pytorch#177177
Approved by: https://github.com/Skylion007
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants