libpressio 0.93.0
Loading...
Searching...
No Matches
Classes | Functions
distributed_manager.h File Reference

a helper class and functions for using libdistributed with libpressio More...

#include <mpi.h>
#include <libdistributed/libdistributed_work_queue.h>
#include <libdistributed/libdistributed_work_queue_options.h>
#include <std_compat/optional.h>
#include <utility>
#include <cassert>
#include "configurable.h"
#include "errorable.h"
#include "options.h"
#include "data.h"
#include <pressio_option.h>
#include <pressio_options.h>
Include dependency graph for distributed_manager.h:

Go to the source code of this file.

Classes

class  pressio_distributed_manager
 

Functions

compat::optional< std::vector< size_t > > distributed_build_groups (const unsigned int size, const unsigned int n_workers_groups, const unsigned int n_masters, const unsigned int root)
 
int distributed_world_size ()
 

Detailed Description

a helper class and functions for using libdistributed with libpressio

Function Documentation

◆ distributed_build_groups()

compat::optional< std::vector< size_t > > distributed_build_groups ( const unsigned int  size,
const unsigned int  n_workers_groups,
const unsigned int  n_masters,
const unsigned int  root 
)

build an array of workers, tries to be fault tolerant in degenerate cases

◆ distributed_world_size()

int distributed_world_size ( )
Returns
the size of MPI_COMM_WORLD