diff --git a/src/x86/freq/freq.h b/src/x86/freq/freq.h index 80f99d2..de62916 100644 --- a/src/x86/freq/freq.h +++ b/src/x86/freq/freq.h @@ -3,6 +3,7 @@ #include #include "../../common/cpu.h" +#include "../../common/global.h" #define MEASURE_TIME_SECONDS 5 #define LOOP_ITERS 100000000 diff --git a/src/x86/freq/freq_avx.c b/src/x86/freq/freq_avx.c index 04354eb..0803105 100644 --- a/src/x86/freq/freq_avx.c +++ b/src/x86/freq/freq_avx.c @@ -10,7 +10,8 @@ #include #include "freq.h" -void* compute_avx(void) { +void* compute_avx(void * pthread_arg) { + UNUSED(pthread_arg); bool end = false; struct timeval begin, now; diff --git a/src/x86/freq/freq_avx.h b/src/x86/freq/freq_avx.h index 43858d1..4e5227f 100644 --- a/src/x86/freq/freq_avx.h +++ b/src/x86/freq/freq_avx.h @@ -1,6 +1,6 @@ #ifndef __FREQ_AVX__ #define __FREQ_AVX__ -void* compute_avx(void); +void* compute_avx(void * pthread_arg); #endif diff --git a/src/x86/freq/freq_avx512.c b/src/x86/freq/freq_avx512.c index e602159..d958bcb 100644 --- a/src/x86/freq/freq_avx512.c +++ b/src/x86/freq/freq_avx512.c @@ -10,7 +10,8 @@ #include #include "freq.h" -void* compute_avx512(void) { +void* compute_avx512(void * pthread_arg) { + UNUSED(pthread_arg); bool end = false; struct timeval begin, now; diff --git a/src/x86/freq/freq_avx512.h b/src/x86/freq/freq_avx512.h index 388c19c..1dbde54 100644 --- a/src/x86/freq/freq_avx512.h +++ b/src/x86/freq/freq_avx512.h @@ -1,6 +1,6 @@ #ifndef __FREQ_AVX512__ #define __FREQ_AVX512__ -void* compute_avx512(void); +void* compute_avx512(void * pthread_arg); #endif diff --git a/src/x86/freq/freq_nov.c b/src/x86/freq/freq_nov.c index 4fd09a7..9ae4072 100644 --- a/src/x86/freq/freq_nov.c +++ b/src/x86/freq/freq_nov.c @@ -10,7 +10,8 @@ #include #include "freq.h" -void* compute_nov(void) { +void* compute_nov(void * pthread_arg) { + UNUSED(pthread_arg); bool end = false; struct timeval begin, now; diff --git a/src/x86/freq/freq_nov.h b/src/x86/freq/freq_nov.h index 304b800..ad0f5c8 100644 --- a/src/x86/freq/freq_nov.h +++ b/src/x86/freq/freq_nov.h @@ -1,6 +1,6 @@ #ifndef __FREQ_NO_VECTOR__ #define __FREQ_NO_VECTOR__ -void* compute_nov(void); +void* compute_nov(void * pthread_arg); #endif