Markers for init and copy to investigate deviations
This commit is contained in:
13
src/main.c
13
src/main.c
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user