MADNESS 0.10.1
ranks_and_hosts.h
Go to the documentation of this file.
1//
2// Created by Florian Bischoff on 18.09.25.
3//
4
5#ifndef MADNESS_RANKS_AND_HOSTS_H
6#define MADNESS_RANKS_AND_HOSTS_H
7
10#include <madness/misc/misc.h>
11
12
13/// declare all functions in namespace madness, from ranks_and_hosts.cpp
14namespace madness {
15 double get_rss_usage_in_GB();
16 std::map<long,std::pair<std::string,double>> rank_to_host_and_rss_map(World& universe);
17 std::map<std::string,std::vector<long>> ranks_per_host(World& universe);
18 long lowest_rank_on_host_of_rank(const std::map<std::string,std::vector<long>> ranks_per_host1, int rank);
19 std::vector<int> primary_ranks_per_host(World& world, const std::map<std::string,std::vector<long>>& ranks_per_host1);
20 std::string get_hostname();
21
22}
23
24#endif //MADNESS_RANKS_AND_HOSTS_H
Header to declare stuff which has not yet found a home.
Namespace for all elements and tools of MADNESS.
Definition DFParameters.h:10
double get_rss_usage_in_GB()
Definition ranks_and_hosts.cpp:10
std::vector< int > primary_ranks_per_host(World &world, const std::map< std::string, std::vector< long > > &ranks_per_host1)
Definition ranks_and_hosts.cpp:86
std::string get_hostname()
Definition ranks_and_hosts.cpp:98
std::map< long, std::pair< std::string, double > > rank_to_host_and_rss_map(World &universe)
return a mapping rank to hostname, return value on rank 0 only
Definition ranks_and_hosts.cpp:36
long lowest_rank_on_host_of_rank(const std::map< std::string, std::vector< long > > ranks_per_host1, int rank)
Definition ranks_and_hosts.cpp:73
std::map< std::string, std::vector< long > > ranks_per_host(World &universe)
for each host, return a list of its ranks
Definition ranks_and_hosts.cpp:52
static XNonlinearSolver< std::vector< Function< T, NDIM > >, T, vector_function_allocator< T, NDIM > > nonlinear_vector_solver(World &world, const long nvec)
Definition nonlinsol.h:371
Declares the World class for the parallel runtime environment.
Implements global operations.