Skip to content

Conversation

@harp-intel
Copy link

This pull request includes a small change to the avx-turbo.cpp file. The change updates the is_supported() method to use the read_msr function with a CPU index of 1 instead of the read_msr_cur_cpu function.

I've found that the is_supported() function while using read_msr_cur_cpu() does not consistently return true on the same system. By always reading from a fixed CPU number, it is consistent.

Determining the availability of MPERF and APERF doesn't require reading the MSR from the CPU that is currently running avx-turbo.

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.

1 participant