Classes | |
| struct | MemoryStats |
| struct | MinMaxAvg |
| class | MPI_InitFinalize |
Functions | |
| double | get_cpu_load () |
| void | get_memory_stats (MemoryStats &stats) |
| std::string | get_hostname () |
| std::string | get_time () |
| bool | job_supports_mpi () |
| unsigned int | get_n_mpi_processes (const MPI_Comm &mpi_communicator) |
| unsigned int | get_this_mpi_process (const MPI_Comm &mpi_communicator) |
| std::vector< unsigned int > | compute_point_to_point_communication_pattern (const MPI_Comm &mpi_comm, const std::vector< unsigned int > &destinations) |
| MPI_Comm | duplicate_communicator (const MPI_Comm &mpi_communicator) |
| void | calculate_collective_mpi_min_max_avg (const MPI_Comm &mpi_communicator, const double my_value, MinMaxAvg &result) |
| bool | program_uses_mpi () |
A namespace for utility functions that probe system properties.
| double Utilities::System::get_cpu_load | ( | ) |
Return the CPU load as returned by "uptime". Note that the interpretation of this number depends on the actual number of processors in the machine. This is presently only implemented on Linux, using the /proc/loadavg pseudo-file, on other systems we simply return zero.
| void Utilities::System::get_memory_stats | ( | MemoryStats & | stats | ) |
Fills the
| stats | structure with information about the memory consumption of this process. This is only implemented on Linux. |
| std::string Utilities::System::get_hostname | ( | ) |
Return the name of the host this process runs on.
| std::string Utilities::System::get_time | ( | ) |
Return the present time as HH:MM:SS.
| bool Utilities::System::job_supports_mpi | ( | ) |
Return whether (i) deal.II has been compiled to support MPI (for example by compiling with CXX=mpiCC) and if so whether (ii) MPI_Init() has been called (for example using the Utilities::System::MPI_InitFinalize class). In other words, the result indicates whether the current job is running under MPI.
| unsigned int Utilities::System::get_n_mpi_processes | ( | const MPI_Comm & | mpi_communicator | ) |
Return the number of MPI processes there exist in the given communicator object. If this is a sequential job, it returns 1.
| unsigned int Utilities::System::get_this_mpi_process | ( | const MPI_Comm & | mpi_communicator | ) |
Return the number of the present MPI process in the space of processes described by the given communicator. This will be a unique value for each process between zero and (less than) the number of all processes (given by get_n_mpi_processes()).
Referenced by Timer::print_data().
| std::vector<unsigned int> Utilities::System::compute_point_to_point_communication_pattern | ( | const MPI_Comm & | mpi_comm, |
| const std::vector< unsigned int > & | destinations | ||
| ) |
Consider an unstructured communication pattern where every process in an MPI universe wants to send some data to a subset of the other processors. To do that, the other processors need to know who to expect messages from. This function computes this information.
| mpi_comm | A communicator that describes the processors that are going to communicate with each other. |
| destinations | The list of processors the current process wants to send information to. This list need not be sorted in any way. If it contains duplicate entries that means that multiple messages are intended for a given destination. |
| MPI_Comm Utilities::System::duplicate_communicator | ( | const MPI_Comm & | mpi_communicator | ) |
Given a communicator, generate a new communicator that contains the same set of processors but that has a different, unique identifier.
This functionality can be used to ensure that different objects, such as distributed matrices, each have unique communicators over which they can interact without interfering with each other.
When no longer needed, the communicator created here needs to be destroyed using MPI_Comm_free.
| void Utilities::System::calculate_collective_mpi_min_max_avg | ( | const MPI_Comm & | mpi_communicator, |
| const double | my_value, | ||
| MinMaxAvg & | result | ||
| ) |
Returns sum, average, minimum, maximum, processor id of minimum and maximum as a collective operation of on the given MPI communicator
| mpi_communicator | . Each processor's value is given in |
| my_value | and the result will be returned in |
| result | . The result is available on all machines. |
| bool Utilities::System::program_uses_mpi | ( | ) |
Returns whether deal.II has been configured to use MPI and if so whether MPI has already been initialized using MPI_Init().
documentation generated on Fri Aug 12 2011 15:01:11 by
doxygen
1.7.4