32 int acc_nodes_size = 1;
33 int nodes_dim = onto_nodes->
dim;
34 for (
int i = 0; i < nodes_dim; i++) {
36 int size = onto_nodes_info->
size;
37 int rank = onto_nodes_info->
rank;
39 if (i != onto_nodes_index) {
40 color += (acc_nodes_size * rank);
43 acc_nodes_size *= size;
Definition: xmp_data_struct.h:194
int shadow_comm_size
Definition: xmp_data_struct.h:256
int shadow_comm_rank
Definition: xmp_data_struct.h:257
int align_manner
Definition: xmp_data_struct.h:197
int align_template_index
Definition: xmp_data_struct.h:260
_Bool is_shadow_comm_member
Definition: xmp_data_struct.h:195
_XMP_comm_t * shadow_comm
Definition: xmp_data_struct.h:255
_XMP_template_t * align_template
Definition: xmp_data_struct.h:312
_XMP_array_info_t info[1]
Definition: xmp_data_struct.h:313
_Bool is_allocated
Definition: xmp_data_struct.h:270
Definition: xmp_data_struct.h:31
int size
Definition: xmp_data_struct.h:32
int rank
Definition: xmp_data_struct.h:35
Definition: xmp_data_struct.h:40
int is_member
Definition: xmp_data_struct.h:46
int dim
Definition: xmp_data_struct.h:47
_XMP_nodes_info_t info[1]
Definition: xmp_data_struct.h:60
Definition: xmp_data_struct.h:78
int dist_manner
Definition: xmp_data_struct.h:87
int onto_nodes_index
Definition: xmp_data_struct.h:92
Definition: xmp_data_struct.h:98
_XMP_template_chunk_t * chunk
Definition: xmp_data_struct.h:112
#define _XMP_N_ALIGN_NOT_ALIGNED
Definition: xmp_constant.h:35
#define _XMP_N_DIST_DUPLICATION
Definition: xmp_constant.h:28
#define _XMP_N_ALIGN_DUPLICATION
Definition: xmp_constant.h:36
void * _XMP_alloc(size_t size)
Definition: xmp_util.c:21
void _XMP_finalize_comm(void *comm)
void * _XMP_get_execution_nodes(void)
Definition: xmp_nodes_stack.c:46
int _XMP_world_rank
Definition: xmp_world.c:9
#define _XMP_ASSERT(_flag)
Definition: xmp_internal.h:34