X-Git-Url: http://git.rrze.uni-erlangen.de/gitweb/?p=LbmBenchmarkKernelsPublic.git;a=blobdiff_plain;f=src%2FLikwidIf.h;fp=src%2FLikwidIf.h;h=e3c24da7866cfcef1abe2b42dc3a261e29b560da;hp=0000000000000000000000000000000000000000;hb=109880839321408644c94a34eb31208460b9f46d;hpb=42cf91486fb5c1ad178b3d21935a1be563e5fa39 diff --git a/src/LikwidIf.h b/src/LikwidIf.h new file mode 100644 index 0000000..e3c24da --- /dev/null +++ b/src/LikwidIf.h @@ -0,0 +1,46 @@ +// -------------------------------------------------------------------------- +// +// Copyright +// Markus Wittmann, 2016-2017 +// RRZE, University of Erlangen-Nuremberg, Germany +// markus.wittmann -at- fau.de or hpc -at- rrze.fau.de +// +// Viktor Haag, 2016 +// LSS, University of Erlangen-Nuremberg, Germany +// +// This file is part of the Lattice Boltzmann Benchmark Kernels (LbmBenchKernels). +// +// LbmBenchKernels is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// LbmBenchKernels is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with LbmBenchKernels. If not, see . +// +// -------------------------------------------------------------------------- +#ifndef __LIKWID_IF_H__ +#define __LIKWID_IF_H__ + +#ifdef HAVE_LIKWID + #include + + + #define X_LIKWID_INIT() likwid_markerInit() + #define X_LIKWID_DEINIT() likwid_markerClose() + #define X_LIKWID_START(region_name) likwid_markerStartRegion(region_name) + #define X_LIKWID_STOP(region_name) likwid_markerStopRegion(region_name) +#else + + #define X_LIKWID_INIT() + #define X_LIKWID_DEINIT() + #define X_LIKWID_START(region_name) + #define X_LIKWID_STOP(region_name) +#endif + +#endif // __LIKWID_IF_H__