batch_environments

The contents of this module can be included with the header hpx/modules/batch_environments.hpp. These headers may be used by user-code but are not guaranteed stable (neither header location nor contents). You are using these at your own risk. If you wish to use non-public functionality from a module we strongly suggest only including the module header hpx/modules/batch_environments.hpp, not the particular header in which the functionality you would like to use is defined. See Public API for a list of names that are part of the public HPX API.

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_
namespace hpx
namespace util
struct batch_environment

Public Types

typedef std::map<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_
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_
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_