Shamrock 2025.10.0
Astrophysical Code
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
mpiInfo.cpp File Reference

Use this header to include MPI properly. More...

#include "shambase/term_colors.hpp"
#include "fmt/core.h"
#include "shamcomm/logs.hpp"
#include "shamcomm/mpi.hpp"
#include "shamcomm/mpiInfo.hpp"
#include "shamcomm/worldInfo.hpp"
+ Include dependency graph for mpiInfo.cpp:

Go to the source code of this file.

Namespaces

namespace  shamcomm
 namespace for communication related stuff
 

Functions

StateMPI_Aware shamcomm::get_mpi_cuda_aware_status ()
 Get the MPI CUDA aware capability.
 
StateMPI_Aware shamcomm::get_mpi_rocm_aware_status ()
 Get the MPI ROCM aware capability.
 
void shamcomm::fetch_mpi_capabilities (std::optional< StateMPI_Aware > forced_state)
 Fetch the MPI capabilities.
 
std::optional< StateMPI_Awareshamcomm::should_force_dgpu_state ()
 Should DGPU should be forced.
 
void shamcomm::print_mpi_capabilities ()
 Print the MPI capabilities.
 
void shamcomm::print_mpi_comm_info ()
 Print the MPI communicator infos.
 
std::string shamcomm::get_process_name ()
 Get the process name.
 

Variables

StateMPI_Aware shamcomm::mpi_cuda_aware = StateMPI_Aware::Unknown
 MPI CUDA aware capability.
 
StateMPI_Aware shamcomm::mpi_rocm_aware = StateMPI_Aware::Unknown
 MPI ROCm aware capability.
 
bool shamcomm::fetched = false
 Has the MPI capabilities been fetched?
 
std::optional< StateMPI_Awareshamcomm::_forced_state
 

Detailed Description

Use this header to include MPI properly.

Author
Timothée David–Cléris (tim.s.nosp@m.hamr.nosp@m.ock@p.nosp@m.roto.nosp@m.n.me)

Definition in file mpiInfo.cpp.