Commit c99fbc0a by Abseil Team Committed by Copybara-Service

Add CPU detection for Ampere Siryn

PiperOrigin-RevId: 561444259
Change-Id: I205ba9f11f4d41163ce74ae9cfa417fe500ccab3
parent 37770938
......@@ -246,6 +246,9 @@ CpuType GetCpuType() {
if (implementer == 0x41 && part_number == 0xd0c) {
return CpuType::kArmNeoverseN1;
}
if (implementer == 0xc0 && part_number == 0xac3) {
return CpuType::kAmpereSiryn;
}
}
return CpuType::kUnknown;
}
......
......@@ -39,6 +39,7 @@ enum class CpuType {
kIntelSandybridge,
kIntelWestmere,
kArmNeoverseN1,
kAmpereSiryn,
};
// Returns the type of host CPU this code is running on. Returns kUnknown if
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment