batch_environments

#include <hpx/batch_environments/batch_environment.hpp>

namespace hpx
namespace util
struct batch_environment

Public Types

typedef std::map<boost::asio::ip::tcp::endpoint, std::pair<std::string, std::size_t>> node_map_type

Public Functions

batch_environment(std::vector<std::string> &nodelist, bool have_mpi = false, bool debug = false, bool enable = true)
std::string init_from_nodelist(std::vector<std::string> const &nodes, std::string const &agas_host)
std::size_t retrieve_number_of_threads() const
std::size_t retrieve_number_of_localities() const
std::size_t retrieve_node_number() const
std::string host_name() const
std::string host_name(std::string const &def_hpx_name) const
std::string agas_host_name(std::string const &def_agas) const
std::size_t agas_node() const
bool found_batch_environment() const
std::string get_batch_name() const

Public Members

std::string agas_node_
std::size_t agas_node_num_
std::size_t node_num_
std::size_t num_threads_
node_map_type nodes_
std::size_t num_localities_
std::string batch_name_
bool debug_

#include <hpx/batch_environments/pbs_environment.hpp>

namespace hpx
namespace util
namespace batch_environments
struct pbs_environment

Public Functions

pbs_environment(std::vector<std::string> &nodelist, bool have_mpi, bool debug)
bool valid() const
std::size_t node_num() const
std::size_t num_threads() const
std::size_t num_localities() const

Private Functions

void read_nodefile(std::vector<std::string> &nodelist, bool have_mpi, bool debug)
void read_nodelist(std::vector<std::string> &nodelist, bool debug)

Private Members

std::size_t node_num_
std::size_t num_localities_
std::size_t num_threads_
bool valid_

#include <hpx/batch_environments/slurm_environment.hpp>

namespace hpx
namespace util
namespace batch_environments
struct slurm_environment

Public Functions

slurm_environment(std::vector<std::string> &nodelist, bool debug)
bool valid() const
std::size_t node_num() const
std::size_t num_threads() const
std::size_t num_localities() const

Private Functions

void retrieve_number_of_localities(bool debug)
void retrieve_number_of_tasks(bool debug)
void retrieve_nodelist(std::vector<std::string> &nodes, bool debug)
void retrieve_number_of_threads()

Private Members

std::size_t node_num_
std::size_t num_threads_
std::size_t num_tasks_
std::size_t num_localities_
bool valid_

#include <hpx/batch_environments/alps_environment.hpp>

namespace hpx
namespace util
namespace batch_environments
struct alps_environment

Public Functions

alps_environment(std::vector<std::string> &nodelist, bool debug)
bool valid() const
std::size_t node_num() const
std::size_t num_threads() const
std::size_t num_localities() const

Private Members

std::size_t node_num_
std::size_t num_threads_
std::size_t num_localities_
bool valid_

#include <compatibility/hpx/util/batch_environment.hpp>

#include <compatibility/hpx/util/batch_environments/pbs_environment.hpp>

#include <compatibility/hpx/util/batch_environments/slurm_environment.hpp>

#include <compatibility/hpx/util/batch_environments/alps_environment.hpp>