mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-18 09:45:55 +01:00
Namespace, format
This commit is contained in:
parent
7e70f4ed9c
commit
c01a1e02fe
@ -47,7 +47,7 @@ Author: paboyle <paboyle@ph.ed.ac.uk>
|
|||||||
#include <x86intrin.h>
|
#include <x86intrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace Grid {
|
NAMESPACE_BEGIN(Grid);
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
static long perf_event_open(struct perf_event_attr *hw_event, pid_t pid,
|
static long perf_event_open(struct perf_event_attr *hw_event, pid_t pid,
|
||||||
@ -241,5 +241,6 @@ public:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
NAMESPACE_END(Grid);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#include <Grid/perfmon/PerfCount.h>
|
#include <Grid/perfmon/PerfCount.h>
|
||||||
#include <Grid/perfmon/Stat.h>
|
#include <Grid/perfmon/Stat.h>
|
||||||
|
|
||||||
namespace Grid {
|
NAMESPACE_BEGIN(Grid);
|
||||||
|
|
||||||
bool PmuStat::pmu_initialized=false;
|
bool PmuStat::pmu_initialized=false;
|
||||||
|
|
||||||
@ -242,4 +242,5 @@ void PmuStat::KNLreadctrs(ctrs &c)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
NAMESPACE_END(Grid);
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#define _KNIGHTS_LANDING_ROOTONLY
|
#define _KNIGHTS_LANDING_ROOTONLY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace Grid {
|
NAMESPACE_BEGIN(Grid);
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
// Extra KNL counters from MCDRAM
|
// Extra KNL counters from MCDRAM
|
||||||
@ -98,7 +98,8 @@ public:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
NAMESPACE_END(Grid);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -33,11 +33,9 @@ Author: Peter Boyle <paboyle@ph.ed.ac.uk>
|
|||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
|
||||||
namespace Grid {
|
NAMESPACE_BEGIN(Grid)
|
||||||
|
|
||||||
|
|
||||||
// Dress the output; use std::chrono
|
// Dress the output; use std::chrono
|
||||||
|
|
||||||
// C++11 time facilities better?
|
// C++11 time facilities better?
|
||||||
inline double usecond(void) {
|
inline double usecond(void) {
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
@ -98,5 +96,6 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
NAMESPACE_END(Grid)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user