Markers for init and copy to investigate deviations

This commit is contained in:
Georg Hager
2019-03-14 13:30:22 +01:00
parent bc717360ec
commit 4e39aab88a
5 changed files with 43 additions and 5 deletions

View File

@@ -39,6 +39,10 @@
#include <allocate.h>
#include <affinity.h>
#ifdef LIKWID
#include <likwid.h>
#endif
#define HLINE "----------------------------------------------------------------------------\n"
#ifndef MIN
@@ -105,6 +109,11 @@ int main (int argc, char** argv)
{"SDaxpy: ", 4, 2}
};
#ifdef LIKWID
LIKWID_MARKER_INIT;
LIKWID_MARKER_REGISTER("INIT");
#endif
a = (double*) allocate( ARRAY_ALIGNMENT, N * bytesPerWord );
b = (double*) allocate( ARRAY_ALIGNMENT, N * bytesPerWord );
c = (double*) allocate( ARRAY_ALIGNMENT, N * bytesPerWord );
@@ -201,6 +210,10 @@ int main (int argc, char** argv)
check(a, b, c, d, N);
#ifdef LIKWID
LIKWID_MARKER_CLOSE;
#endif
return EXIT_SUCCESS;
}