mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-01 23:30:35 +00:00
Fixed compilation error for ARM architecture (#11223)
Co-authored-by: Sumit Agarwal <sumitagarwal@microsoft.com>
This commit is contained in:
parent
bc296c706e
commit
227bc7264e
1 changed files with 2 additions and 2 deletions
|
|
@ -165,7 +165,7 @@ void CPUIDInfo::ArmWindowsInit() {
|
|||
constexpr int MAX_CORES = 64;
|
||||
constexpr int MAX_VALUE_NAME = 4096;
|
||||
|
||||
TCHAR midrKey[MAX_VALUE_NAME] = ""; // buffer for processor registry name
|
||||
CHAR midrKey[MAX_VALUE_NAME] = ""; // buffer for processor registry name
|
||||
uint32_t lastUarch = cpuinfo_uarch_unknown;
|
||||
for (int i = 0; i < MAX_CORES - 1; i++) {
|
||||
snprintf(midrKey, MAX_VALUE_NAME, "HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\%d", i);
|
||||
|
|
@ -185,7 +185,7 @@ void CPUIDInfo::ArmWindowsInit() {
|
|||
*
|
||||
* For the CP value of MIDR, op0 = 3 and the others are all = 0, so we come up with 0x4000,
|
||||
*/
|
||||
auto retCode = ::RegGetValue(HKEY_LOCAL_MACHINE, midrKey, "CP 4000", RRF_RT_REG_QWORD, nullptr, &midrVal, &midrSize);
|
||||
auto retCode = ::RegGetValueA(HKEY_LOCAL_MACHINE, midrKey, "CP 4000", RRF_RT_REG_QWORD, nullptr, &midrVal, &midrSize);
|
||||
if (retCode != ERROR_SUCCESS) {
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue