Add markers to all benchmarks. Code review. Add GCC for dependencies.

This commit is contained in:
Jan Eitzinger
2019-09-15 06:47:55 +02:00
parent bf90da4224
commit 7dd895fefc
18 changed files with 153 additions and 33 deletions

View File

@@ -26,6 +26,7 @@
*/
#include <timing.h>
#include <likwid_markers.h>
double update(
double * restrict a,
@@ -36,9 +37,14 @@ double update(
double S, E;
S = getTimeStamp();
#pragma omp parallel for
for (int i=0; i<N; i++) {
a[i] = a[i] * scalar;
#pragma omp parallel
{
LIKWID_MARKER_START("UPDATE");
#pragma omp for
for (int i=0; i<N; i++) {
a[i] = a[i] * scalar;
}
LIKWID_MARKER_STOP("UPDATE");
}
E = getTimeStamp();