Register regions for each thread when running with OpenMP

This commit is contained in:
Thomas Roehl
2019-03-14 17:10:10 +01:00
parent 4e39aab88a
commit 3e1fe39dfe

View File

@@ -111,7 +111,15 @@ int main (int argc, char** argv)
#ifdef LIKWID
LIKWID_MARKER_INIT;
#ifdef _OPENMP
#pragma omp parallel
{
#endif
LIKWID_MARKER_REGISTER("INIT");
LIKWID_MARKER_REGISTER("COPY");
#ifdef _OPENMP
}
#endif
#endif
a = (double*) allocate( ARRAY_ALIGNMENT, N * bytesPerWord );