Skip to content

Commit

Permalink
Remove apple-m3 from cpu name to make enzyme happier (#56372)
Browse files Browse the repository at this point in the history
Should fix the warning folks are complaining about on 1.11 with enzyme
  • Loading branch information
gbaraldi authored Nov 6, 2024
1 parent 8e8b7b5 commit 8ec200d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/processor_arm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ static NOINLINE std::pair<uint32_t,FeatureList<feature_sz>> _get_host_cpu()
else if (cpu_name.find("M2") != StringRef ::npos)
return std::make_pair((uint32_t)CPU::apple_m2, Feature::apple_m2);
else if (cpu_name.find("M3") != StringRef ::npos)
return std::make_pair((uint32_t)CPU::apple_m3, Feature::apple_m3);
return std::make_pair((uint32_t)CPU::apple_m2, Feature::apple_m2); // m3 doesn't exist in LLVM 16 for 1.11
else
return std::make_pair((uint32_t)CPU::apple_m1, Feature::apple_m1);
}
Expand Down

0 comments on commit 8ec200d

Please sign in to comment.