Metall  v0.28
A persistent memory allocator for data-centric analytics
metall::utility::mpi_datastore Namespace Reference

Namespace for MPI datastore. More...

Functions

std::string make_root_dir_path (const std::string &root_dir_prefix)
 Makes a path of a root directory. The MPI ranks that share the same storage space create their data stores under the root directory. More...
 
std::string make_local_dir_path (const std::string &root_dir_prefix, const int rank)
 Makes the data store path of a MPI rank. More...
 

Detailed Description

Namespace for MPI datastore.

Function Documentation

◆ make_root_dir_path()

std::string metall::utility::mpi_datastore::make_root_dir_path ( const std::string &  root_dir_prefix)
inline

Makes a path of a root directory. The MPI ranks that share the same storage space create their data stores under the root directory.

Parameters
root_dir_prefixA prefix of a root directory path.
Returns
A path of a root directory.

◆ make_local_dir_path()

std::string metall::utility::mpi_datastore::make_local_dir_path ( const std::string &  root_dir_prefix,
const int  rank 
)
inline

Makes the data store path of a MPI rank.

Parameters
root_dir_prefixA prefix of a root directory path.
rankA MPI rank.
Returns
A path to a local data store directory. The path can be passed to, for example, metall::manager to perform operations.