Adding no-op versions of the critical path methods.
authorIsaac Dooley <idooley2@illinois.edu>
Thu, 4 Jun 2009 22:30:08 +0000 (22:30 +0000)
committerIsaac Dooley <idooley2@illinois.edu>
Thu, 4 Jun 2009 22:30:08 +0000 (22:30 +0000)
src/ck-cp/pathHistory.C
src/ck-cp/pathHistory.h

index bf77ea60b10aaf9771e9223c64de012b9d652955..02a933a58bb48a6c91a22736f7745d8d0f3bfc64 100644 (file)
@@ -264,6 +264,22 @@ void criticalPath_split(){
 
 
 
+
+
+#else
+// Versions that are used when compiled without critical path detection:
+
+void initializeCriticalPath(void){ }
+void traceCriticalPathBack(CkCallback cb){
+  pathInformationMsg * pathForUser = new(0) pathInformationMsg;  
+  pathForUser->historySize = 0;                                                                                        
+  pathForUser->cb = NULL;                                                                                                      
+  pathForUser->table_idx = -1;      
+  cb.send(pathForUser);                                   
+}
+
+
+
 #endif
 
 
index cc9821c533afc2512386279a4dceb91965cddcb1..d052214bb265bc825a239b0053b6c445e6e1d613 100644 (file)
@@ -300,6 +300,24 @@ extern void criticalPath_split();
 #define MERGE_PATH_MAX_D(x,n) merge_path_D_##x[n].updateMax(CkpvAccess(currentlyExecutingPath)); CkpvAccess(currentlyExecutingPath) = merge_path_D_##x[n]; 
 
 
+
+#else
+
+
+/// Empty no-op version for when critical path history is not compiled in
+class MergeablePathHistory{
+}
+
+#define MERGE_PATH_DECLARE(x) ;
+#define MERGE_PATH_RESET(x) ;
+#define MERGE_PATH_MAX(x) ;
+#define MERGE_PATH_DECLARE_D(x) ;
+#define MERGE_PATH_RESET_D(x,n) ;
+#define MERGE_PATH_DELETE_D(x,n) ;
+#define MERGE_PATH_DELETE_ALL_D(x) ;
+#define MERGE_PATH_MAX_D(x,n) ;
+
+
 #endif