This source file includes following definitions.
- orte_snapc_base_register
- orte_snapc_base_close
- orte_snapc_base_open
   1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 
  14 
  15 
  16 
  17 
  18 
  19 
  20 
  21 
  22 #include "orte_config.h"
  23 
  24 #include <string.h>
  25 #ifdef HAVE_UNISTD_H
  26 #include <unistd.h>
  27 #endif
  28 #ifdef HAVE_SYS_TYPES_H
  29 #include <sys/types.h>
  30 #endif
  31 
  32 #include "orte/mca/mca.h"
  33 #include "opal/mca/base/base.h"
  34 #include "opal/util/opal_environ.h"
  35 #include "opal/util/output.h"
  36 
  37 #include "orte/constants.h"
  38 #include "orte/mca/sstore/sstore.h"
  39 #include "orte/mca/sstore/base/base.h"
  40 
  41 #include "orte/mca/snapc/snapc.h"
  42 #include "orte/mca/snapc/base/base.h"
  43 
  44 #include "orte/mca/snapc/base/static-components.h"
  45 
  46 
  47 
  48 
  49 bool orte_snapc_base_is_tool = false;
  50 orte_snapc_base_module_t orte_snapc = {
  51     NULL, 
  52     NULL, 
  53     NULL, 
  54     NULL  
  55 };
  56 
  57 orte_snapc_coord_type_t orte_snapc_coord_type = ORTE_SNAPC_UNASSIGN_TYPE;
  58 
  59 bool orte_snapc_base_store_only_one_seq = false;
  60 bool   orte_snapc_base_has_recovered = false;
  61 
  62 static int orte_snapc_base_register(mca_base_register_flag_t flags)
  63 {
  64     
  65 
  66 
  67 
  68 
  69     orte_snapc_base_store_only_one_seq = false;
  70     (void) mca_base_var_register("orte", "snapc", "base", "only_one_seq",
  71                                  "Only store the most recent checkpoint sequence. [Default = disabled]",
  72                                  MCA_BASE_VAR_TYPE_BOOL, NULL, 0, 0,
  73                                  OPAL_INFO_LVL_9,
  74                                  MCA_BASE_VAR_SCOPE_READONLY,
  75                                  &orte_snapc_base_store_only_one_seq);
  76 
  77     return ORTE_SUCCESS;
  78 }
  79 
  80 static int orte_snapc_base_close(void)
  81 {
  82     
  83     if( NULL != orte_snapc.snapc_finalize ) {
  84         orte_snapc.snapc_finalize();
  85     }
  86 
  87     return mca_base_framework_components_close(&orte_snapc_base_framework, NULL);
  88 }
  89 
  90 
  91 
  92 
  93 
  94 static int orte_snapc_base_open(mca_base_open_flag_t flags)
  95 {
  96     
  97     orte_snapc_base_snapshot_seq_number = 0;
  98 
  99     
 100     return mca_base_framework_components_open(&orte_snapc_base_framework, flags);
 101 }
 102 
 103 MCA_BASE_FRAMEWORK_DECLARE(orte, snapc, "ORTE Snapc", orte_snapc_base_register,
 104                            orte_snapc_base_open, orte_snapc_base_close,
 105                            mca_snapc_base_static_components, 0);
 106