This source file includes following definitions.
- orte_ess_env_get
   1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 
   9 
  10 
  11 
  12 
  13 
  14 
  15 
  16 
  17 
  18 
  19 #include "orte_config.h"
  20 #include "orte/constants.h"
  21 
  22 #ifdef HAVE_UNISTD_H
  23 #include <unistd.h>
  24 #endif
  25 #include <stdlib.h>
  26 #include <errno.h>
  27 
  28 #include "opal/util/opal_environ.h"
  29 
  30 #include "orte/mca/errmgr/errmgr.h"
  31 #include "orte/util/proc_info.h"
  32 
  33 #include "orte/mca/ess/base/base.h"
  34 
  35 int orte_ess_env_get(void)
  36 {
  37     if (orte_ess_base_num_procs < 0) {
  38         ORTE_ERROR_LOG(ORTE_ERR_NOT_FOUND);
  39         return ORTE_ERR_NOT_FOUND;
  40     }
  41     orte_process_info.num_procs = (orte_std_cntr_t)orte_ess_base_num_procs;
  42 
  43     if (orte_process_info.max_procs < orte_process_info.num_procs) {
  44         orte_process_info.max_procs = orte_process_info.num_procs;
  45     }
  46 
  47     return ORTE_SUCCESS;
  48 }