[v1.01] Run multiple independent instructions in the pipeline for AVX freq too. Fixes incorrect frequency measures under certain CPUs

This commit is contained in:
Dr-Noob
2021-12-27 12:42:03 +01:00
parent a4e1a837a3
commit 874a856e34
4 changed files with 21 additions and 14 deletions

View File

@@ -10,12 +10,6 @@
#include <stdint.h>
#include "freq.h"
/*
* For AVX512, it seems that multiple independent
* instructions are needed to force the CPU to
* use AVX512 frequency, since with only one instruction
* (as the AVX implementaion) it still uses AVX frequency
*/
void* compute_avx512() {
bool end = false;