DistDir
Functions
Backend_tests

Functions

static void assign_idxlist_elements_to_buckets_test01 (void **state __attribute__((unused)))
 Test01 of assign_idxlist_elements_to_buckets function. More...
 
static int bucket_idxlist_elements_test01 (MPI_Comm comm)
 test01 for bucket_idxlist_elements function More...
 
static int bucket_idxlist_procs_test01 (MPI_Comm comm)
 test01 for bucket_idxlist_procs function More...
 
static int num_indices_to_bucket_from_each_rank_test01 (MPI_Comm comm)
 test01 for num_indices_to_bucket_from_each_rank function More...
 
static void num_indices_to_send_to_each_bucket_test01 (void **state __attribute__((unused)))
 Test01 of num_indices_to_send_to_each_bucket function. More...
 
static int num_procs_send_to_each_bucket_test01 (MPI_Comm comm)
 test01 for num_procs_send_to_each_bucket function More...
 
static int senders_to_bucket_test01 (MPI_Comm comm)
 test01 for senders_to_bucket function More...
 

Detailed Description

Tests of the backend module

Function Documentation

◆ assign_idxlist_elements_to_buckets_test01()

static void assign_idxlist_elements_to_buckets_test01 ( void **state   __attribute__(unused))
static

Test01 of assign_idxlist_elements_to_buckets function.

One process having indices 0, 7, 9, 25, 47 checks the assignment to buckets in a setup with 10 buckets having a minimum size of 9 (first 9 buckets have a size of 9 and the last one has a size between 9 and 17).

◆ bucket_idxlist_elements_test01()

static int bucket_idxlist_elements_test01 ( MPI_Comm  comm)
static

test01 for bucket_idxlist_elements function

4 processes send their index list elements to bucket (rank) 0. Bucket 0 is filled and contains the elements for each bucket index. The bucket has the following elements 0, 1, 2, 3, 0, 1, 2, 0, 1, 0

◆ bucket_idxlist_procs_test01()

static int bucket_idxlist_procs_test01 ( MPI_Comm  comm)
static

test01 for bucket_idxlist_procs function

4 processes send their indices to bucket (rank) 0. Bucket 0 is filled and contains the rank for each bucket index. The bucket indices are owned by the following ranks 0, 0, 0, 0, 1, 1, 1, 2, 2, 3

◆ num_indices_to_bucket_from_each_rank_test01()

static int num_indices_to_bucket_from_each_rank_test01 ( MPI_Comm  comm)
static

test01 for num_indices_to_bucket_from_each_rank function

4 processes send indices to bucket (rank) 0. The size of the messages is 4,3,2,1 for processes 0,1,2,3 respectively.

◆ num_indices_to_send_to_each_bucket_test01()

static void num_indices_to_send_to_each_bucket_test01 ( void **state   __attribute__(unused))
static

Test01 of num_indices_to_send_to_each_bucket function.

One process having bucket_idxlist = 0, 0, 0, 1, 2, 2, 3, 3, 3 checks the number of indices to send to each bucket. In this case, it is n_idx_each_bucket = 3, 1, 2, 3

◆ num_procs_send_to_each_bucket_test01()

static int num_procs_send_to_each_bucket_test01 ( MPI_Comm  comm)
static

test01 for num_procs_send_to_each_bucket function

The test is run with 4 MPI ranks which define the following bucket_idxlist based on the following idxlist:

  • Rank 0: 0, 4, 8 , 12
  • Rank 1: 1, 5, 9 , 13
  • Rank 2: 2, 6, 10, 14
  • Rank 4: 3, 7, 11, 15

Each rank owns a bucket and it is expected to receive indices information from 4 MPI ranks.

◆ senders_to_bucket_test01()

static int senders_to_bucket_test01 ( MPI_Comm  comm)
static

test01 for senders_to_bucket function

4 processes send indices to bucket (rank) 0. The senders_to_bucket array is only allocated on rank 0 and it has the values 0,1,2,3.