|
@@ -11,14 +11,6 @@ namespace SCTL_NAMESPACE {
|
|
|
|
|
|
#if SCTL_PROFILE >= 0
|
|
|
|
|
|
-inline Long Profile::Add_FLOP(Long inc) {
|
|
|
- Long& FLOP = ProfData().FLOP;
|
|
|
- Long orig_val = FLOP;
|
|
|
-#pragma omp atomic update
|
|
|
- FLOP += inc;
|
|
|
- return orig_val;
|
|
|
-}
|
|
|
-
|
|
|
inline Long Profile::Add_MEM(Long inc) {
|
|
|
std::vector<Long>& max_mem = ProfData().max_mem;
|
|
|
Long& MEM = ProfData().MEM;
|
|
@@ -29,6 +21,14 @@ inline Long Profile::Add_MEM(Long inc) {
|
|
|
return orig_val;
|
|
|
}
|
|
|
|
|
|
+inline Long Profile::Add_FLOP(Long inc) {
|
|
|
+ Long& FLOP = ProfData().FLOP;
|
|
|
+ Long orig_val = FLOP;
|
|
|
+#pragma omp atomic update
|
|
|
+ FLOP += inc;
|
|
|
+ return orig_val;
|
|
|
+}
|
|
|
+
|
|
|
inline bool Profile::Enable(bool state) {
|
|
|
bool& enable_state = ProfData().enable_state;
|
|
|
bool orig_val = enable_state;
|