kevinlekiller / amdctl

Set P-State voltages and clock speeds on recent AMD CPUs on Linux.
GNU General Public License v3.0
241 stars 22 forks source link

Detect cores actually present. #45

Closed NightFeather closed 1 year ago

NightFeather commented 1 year ago

Encountered errors that this tool is trying read/write msr of non-existence cores.

according to man page of sysconf, _SC_NPROCESSORS_CONF will report core count that kernel ready to setup (including cores not enabled/hot-plugged in), which may report more than actual exist.

use _SC_NPROCESSORS_ONLN instead.