Skip to content
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

[FIX] Detect like cores by looking at scaling_max_freq instead of cpuinfo_max_freq #8370

Merged
merged 1 commit into from
Jun 30, 2021

Conversation

tkonolige
Copy link
Contributor

On my AMD 3950X, /sys/devices/systen/cpu/cpu*/cpufreq/cpuinfo_max_freq is not the same across all cores. If I look at scaling_max_freq instead, then I see that all cores are the same frequency (as expected). This probably still won't work correctly across all platforms, but I don't think there is an easier, quick way to do the detection. Maybe we should think about using pytorch's cpuinfo library (https://github.com/pytorch/cpuinfo).

@tqchen @FrozenGene

@FrozenGene
Copy link
Member

Yes. I agree PyTorch CPUInfo library is one good alternative. However, we will introduce one dependency and we should handle it carefully for cross compilation (because we are in the runtime component).

@tqchen tqchen merged commit faadb7d into apache:main Jun 30, 2021
lygztq pushed a commit to lygztq/tvm that referenced this pull request Jul 1, 2021
ylc pushed a commit to ylc/tvm that referenced this pull request Sep 29, 2021
zxy844288792 pushed a commit to zxy844288792/tvm that referenced this pull request Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants