From d998acdcdf25bc39eaa9ec0b582c051f62cfc1ff Mon Sep 17 00:00:00 2001 From: Dr-Noob Date: Mon, 31 Aug 2020 09:33:39 +0200 Subject: [PATCH] Fix #25: Compute PP taking into account the number of sockets --- src/cpuid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpuid.c b/src/cpuid.c index cbd71f6..096bcf8 100644 --- a/src/cpuid.c +++ b/src/cpuid.c @@ -610,7 +610,7 @@ char* get_str_peak_performance(struct cpuInfo* cpu, struct topology* topo, int64 return string; } - double flops = topo->physical_cores*(freq*1000000); + double flops = topo->physical_cores * topo->sockets * (freq*1000000); // Intel USUALLY has two VPUs. I have never seen an AMD // with two VPUs.