[v1.02][ARM] Fixed wrong check for Apple CPU

This commit is contained in:
Dr-Noob
2022-09-19 11:29:44 +02:00
parent 190e5daace
commit 65366abe04

View File

@@ -83,7 +83,7 @@ int64_t get_peak_performance(struct cpuInfo* cpu) {
int64_t flops = 0; int64_t flops = 0;
ptr = cpu; ptr = cpu;
if(cpu->cpu_vendor == SOC_VENDOR_APPLE) { if(cpu->soc->soc_vendor == SOC_VENDOR_APPLE) {
// Special case for M1/M2 // Special case for M1/M2
// First we find the E cores, then the P // First we find the E cores, then the P
// M1 have 2 (E cores) or 4 (P cores) FMA units // M1 have 2 (E cores) or 4 (P cores) FMA units