DistDir
|
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... | |
Tests of the backend module
|
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).
|
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
|
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
|
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.
|
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
|
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:
Each rank owns a bucket and it is expected to receive indices information from 4 MPI ranks.
|
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.