My Project
programmer's documentation
Data Structures | Functions
cs_block_dist.h File Reference
#include "cs_defs.h"
Include dependency graph for cs_block_dist.h:

Go to the source code of this file.

Data Structures

struct  cs_block_dist_info_t
 

Functions

cs_block_dist_info_t cs_block_dist_compute_sizes (int rank_id, int n_ranks, int min_rank_step, cs_lnum_t min_block_size, cs_gnum_t n_g_ents)
 Compute block size and rank info for use with a block distribution. More...
 
cs_block_dist_info_t cs_block_dist_compute_sizes_nr (int rank_id, int n_ranks, int n_block_ranks, cs_gnum_t n_g_ents)
 Compute block size and rank info for use with a block distribution for a new global number of entities with a given number of active ranks. More...
 

Function Documentation

◆ cs_block_dist_compute_sizes()

cs_block_dist_info_t cs_block_dist_compute_sizes ( int  rank_id,
int  n_ranks,
int  min_rank_step,
cs_lnum_t  min_block_size,
cs_gnum_t  n_g_ents 
)

Compute block size and rank info for use with a block distribution.

Parameters
[in]rank_idid of local rank (ignored in serial mode)
[in]n_ranksnumber of associated ranks
[in]min_rank_stepminimum rank step between blocks
[in]min_block_sizeminimum number of entities per block
[in]n_g_entstotal number of associated entities
Returns
block size and range info structure

◆ cs_block_dist_compute_sizes_nr()

cs_block_dist_info_t cs_block_dist_compute_sizes_nr ( int  rank_id,
int  n_ranks,
int  n_block_ranks,
cs_gnum_t  n_g_ents 
)

Compute block size and rank info for use with a block distribution for a new global number of entities with a given number of active ranks.

Parameters
[in]rank_idid of local rank (ignored in serial mode)
[in]n_ranksnumber of associated ranks
[in]n_block_ranksnumber of ranks associated with a block
[in]n_g_entstotal number of associated entities
Returns
block size and range info structure