mptensor v0.4.0
Parallel Library for Tensor Network Methods
Loading...
Searching...
No Matches
mpi.hpp File Reference

Helper functions for MPI. More...

#include <mpi.h>
Include dependency graph for mpi.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  mptensor
 
namespace  mptensor::mpi
 

Typedefs

using mptensor::mpi::comm_type = MPI_Comm
 

Functions

void mptensor::mpi::initialize (int argc, char **argv)
 
void mptensor::mpi::finalize ()
 
void mptensor::mpi::barrier (const comm_type &comm)
 
void mptensor::mpi::get_info (const comm_type &comm, int &rank, int &size, bool &is_root)
 

Variables

int mptensor::mpi::rank = -1
 
int mptensor::mpi::size = -1
 
bool mptensor::mpi::is_root = false
 

Detailed Description

Helper functions for MPI.

Author
Satoshi Morita morit.nosp@m.a@is.nosp@m.sp.u-.nosp@m.toky.nosp@m.o.ac..nosp@m.jp
Date
Mar 24 2020

This header file supports build without the MPI environment.