Skip to content

Commit

Permalink
Diable __cpuid call for ARM64EC (#19592)
Browse files Browse the repository at this point in the history
Diable __cpuid call for ARM64EC

Co-authored-by: Sheil Kumar <[email protected]>
  • Loading branch information
2 people authored and maggie1059 committed Mar 5, 2024
1 parent 0bc6f11 commit e0d0c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion winml/lib/Api/HardwareCoreEnumerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ uint32_t HardwareCoreEnumerator::DefaultIntraOpNumThreads() {
// # of logical cores = # of P cores x 2 (if hyper threading is enabled) + # of E cores + # of Soc Cores.
auto cores = GetNumberOPhysicalAndEngineeringCores();

#if !defined(_M_ARM64) && !defined(__aarch64__)
#if !defined(_M_ARM64EC) && !defined(_M_ARM64) && !defined(__aarch64__)
const int kVendorID_Intel[3] = {0x756e6547, 0x6c65746e, 0x49656e69}; // "GenuntelineI"
int regs_leaf0[4];
int regs_leaf7[4];
Expand Down

0 comments on commit e0d0c6e

Please sign in to comment.