From ba81cf685b872fc8402d6839ecad572c3b1385aa Mon Sep 17 00:00:00 2001 From: Matteo Cicuttin <datafl4sh@toxicnet.eu> Date: Tue, 19 Oct 2021 12:31:42 +0200 Subject: [PATCH] INFO0939-2021 code. --- info0939/scalprod.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/info0939/scalprod.c b/info0939/scalprod.c index 18f0788..c526a10 100644 --- a/info0939/scalprod.c +++ b/info0939/scalprod.c @@ -79,8 +79,8 @@ int main(void) struct rusage rstart, rend; getrusage(RUSAGE_SELF, &rstart); - //double s = scal(a, b, VEC_SIZE); - double s = scal_avx(a, b, VEC_SIZE); + double s = scal(a, b, VEC_SIZE); + //double s = scal_avx(a, b, VEC_SIZE); //double s = cblas_ddot(VEC_SIZE, a, 1, b, 1); getrusage(RUSAGE_SELF, &rend); @@ -91,7 +91,7 @@ int main(void) double gbs = 2*VEC_SIZE*sizeof(double)/(time*1e9); printf("GFLOPS/s: %lg\n", gflops); - printf("GB/s: %lg\n", gbs); + //printf("GB/s: %lg\n", gbs); return 0; } -- GitLab