[v0.98][PPC] Update ppc peak performance taking into account slices in POWER9

This commit is contained in:
Dr-Noob
2021-08-05 15:47:18 +02:00
parent 921e815470
commit ee57646f9e
3 changed files with 17 additions and 0 deletions

View File

@@ -249,6 +249,14 @@ bool has_altivec(struct uarch* arch) {
}
}
bool is_power9(struct uarch* arch) {
return arch->uarch == UARCH_POWER9 ||
arch->uarch == UARCH_POWER9_DD20 ||
arch->uarch == UARCH_POWER9_DD21 ||
arch->uarch == UARCH_POWER9_DD22 ||
arch->uarch == UARCH_POWER9_DD23;
}
char* get_str_uarch(struct cpuInfo* cpu) {
return cpu->arch->uarch_str;
}