Skip to content

Commit

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

Co-authored-by: Sheil Kumar <sheilk@microsoft.com>
  • Loading branch information
smk2007 and Sheil Kumar authored Feb 21, 2024
1 parent 38c3432 commit 5197db1
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 5197db1

Please sign in to comment.