inject soft and hard failures according to exponential and weibull distribution
[charm.git] / src / ck-core / ckmemcheckpoint.h
index d0ecbc19090fb0c082188737fc8d4e2bdebf2bd0..2b0147ff9e025b2ecb34a5f4da6b94bee698ca50 100644 (file)
@@ -92,6 +92,7 @@ public:
   void inmem_restore(CkArrayCheckPTMessage *m);
   void updateLocations(int n, CkGroupID *g, CkArrayIndex *idx,int nowOnPe);
   void generateFailure();
+  void generateSoftFailure();
   void replicaInjectFailure();
   
   void resetLB(int diepe);
@@ -129,6 +130,7 @@ public:
   int localMaxIter;
 
   int notifyReplica;
+  bool softFailureInjected;
 private:
   CkVec<CkCheckPTInfo *> ckTable;
   CkArrayCheckPTMessage * chkpTable[2];
@@ -147,6 +149,7 @@ private:
   int maxIter;
 
   unsigned int localSeed;
+  unsigned int softLocalSeed;
     /// to use memory or disk checkpointing
   int    where;
 private: