Revert "Merge branch 'MARKERS' of github.com:RRZE-HPC/TheBandwidthBenchmark"

This reverts commit 21bedcda40, reversing
changes made to bb19bf5a49.
This commit is contained in:
Jan Eitzinger
2019-03-19 09:13:01 +01:00
parent 21bedcda40
commit c776efbdae
11 changed files with 10 additions and 109 deletions

View File

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

View File

@@ -26,7 +26,6 @@
*/
#include <timing.h>
#include <likwid_markers.h>
double daxpy(
double * restrict a,
@@ -38,15 +37,10 @@ double daxpy(
double S, E;
S = getTimeStamp();
#pragma omp parallel
{
LIKWID_MARKER_START("DAXPY");
#pragma omp for
#pragma omp parallel for
for (int i=0; i<N; i++) {
a[i] = a[i] + scalar * b[i];
}
LIKWID_MARKER_STOP("DAXPY");
}
E = getTimeStamp();
return E-S;

View File

@@ -1,44 +0,0 @@
/*
* =======================================================================================
*
* Author: Jan Eitzinger (je), jan.treibig@gmail.com
* Copyright (c) 2019 RRZE, University Erlangen-Nuremberg
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
* =======================================================================================
*/
#ifndef LIKWID_MARKERS_H
#define LIKWID_MARKERS_H
#ifdef LIKWID_PERFMON
#include <likwid.h>
#else
#define LIKWID_MARKER_INIT
#define LIKWID_MARKER_THREADINIT
#define LIKWID_MARKER_SWITCH
#define LIKWID_MARKER_REGISTER(regionTag)
#define LIKWID_MARKER_START(regionTag)
#define LIKWID_MARKER_STOP(regionTag)
#define LIKWID_MARKER_CLOSE
#define LIKWID_MARKER_GET(regionTag, nevents, events, time, count)
#endif
#endif /*LIKWID_MARKERS_H*/

View File

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

View File

@@ -38,7 +38,6 @@
#include <timing.h>
#include <allocate.h>
#include <affinity.h>
#include <likwid_markers.h>
#define HLINE "----------------------------------------------------------------------------\n"
@@ -106,17 +105,6 @@ int main (int argc, char** argv)
{"SDaxpy: ", 4, 2}
};
LIKWID_MARKER_INIT;
#ifdef _OPENMP
#pragma omp parallel
{
#endif
LIKWID_MARKER_REGISTER("INIT");
LIKWID_MARKER_REGISTER("COPY");
#ifdef _OPENMP
}
#endif
a = (double*) allocate( ARRAY_ALIGNMENT, N * bytesPerWord );
b = (double*) allocate( ARRAY_ALIGNMENT, N * bytesPerWord );
c = (double*) allocate( ARRAY_ALIGNMENT, N * bytesPerWord );
@@ -212,7 +200,6 @@ int main (int argc, char** argv)
printf(HLINE);
check(a, b, c, d, N);
LIKWID_MARKER_CLOSE;
return EXIT_SUCCESS;
}

View File

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

View File

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