Skip to content
Snippets Groups Projects
Commit ba81cf68 authored by Matteo Cicuttin's avatar Matteo Cicuttin
Browse files

INFO0939-2021 code.

parent c09cff35
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment