-
Notifications
You must be signed in to change notification settings - Fork 25.8k
update xeon launch script for Intel(R) Xeon 6 support #133835
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/133835
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 New FailuresAs of commit ca03c05 with merge base a777dea ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
f693c87 to
1cdb6a2
Compare
6369d4f to
99de183
Compare
5bc6c70 to
48e382b
Compare
0440dba to
51158c8
Compare
|
Hi @malfet @albanD @kiukchung Any suggestions how should we step forward? Thank you. |
torch/backends/xeon/_cpu_info.py
Outdated
| if platform.system() == "Windows": | ||
| raise RuntimeError("Windows platform is not supported!!!") | ||
| elif platform.system() == "Linux": |
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.
IMO this should be if platform.system() == "Linux" and platform.machine() == "x86_64": ... else: raise RuntimeError(f"Unsupported platform {platform.system()}") to cover both Windows, MacOS as well as LinuxARM
| if lscpu_txt.strip() == "": | ||
| args = ["lscpu", "--all", "--extended"] | ||
| my_env = os.environ.copy() | ||
| my_env["LC_ALL"] = "C" | ||
| lscpu_info = subprocess.check_output( | ||
| args, env=my_env, universal_newlines=True | ||
| ) |
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 this information can be queried from lscpu rather than using cpuinfo?
3774dd2 to
c807c1e
Compare
This PR needs a
|
c807c1e to
ca03c05
Compare
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.
My biggest challenge with this change, is that it lscpu --extended output is not really defined anywhere.
I.e. on my machine it produces following output
lscpu --extend --all
CPU CLUSTER CORE L1d:L1i:L2 ONLINE
0 0 0 0:0:0 yes
1 0 1 1:1:0 yes
2 0 2 2:2:0 yes
3 0 3 3:3:0 yes
4 0 4 4:4:0 yes
5 0 5 5:5:0 yes
6 0 6 6:6:0 yes
7 0 7 7:7:0 yes
8 0 8 8:8:0 yes
9 0 9 9:9:0 yes
whereas lscpu --parse=CPU,Core,Socket,Node always produces results in the same manner
lscpu --extended --json seems to be a good middle ground
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
Add support to Intel(R) Xeon 6 (GNR) and Core CPUs with E and P cores.
torch-xeon-launchertopython -m torch.backends.xeon.run_cpu. Both commands work.