[v1.00] Skeleton for future support for other vector instructions in --accurate-pp

This commit is contained in:
Dr-Noob
2021-11-19 21:36:55 +01:00
parent a5b321a966
commit 7226adb04d
14 changed files with 150 additions and 58 deletions

View File

@@ -18,7 +18,7 @@
#include "../common/args.h"
#include "apic.h"
#include "uarch.h"
#include "freq.h"
#include "freq/freq.h"
#define CPU_VENDOR_INTEL_STRING "GenuineIntel"
#define CPU_VENDOR_AMD_STRING "AuthenticAMD"
@@ -194,8 +194,10 @@ int64_t get_peak_performance(struct cpuInfo* cpu, struct topology* topo, int64_t
int64_t freq;
#ifdef __linux__
if(accurate_pp) freq = measure_avx_frequency(cpu);
else freq = max_freq;
if(accurate_pp)
freq = measure_frequency(cpu);
else
freq = max_freq;
#else
// Silence compiler warning
(void)(accurate_pp);