Skip to content

Commit 83a4131

Browse files
make name of aggregation scheme more precise
Signed-off-by: Axel Schneewind <axel.schneewind@hlrs.de>
1 parent cfbc601 commit 83a4131

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

ompi/mca/part/persist_aggregated/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ local_sources = \
3838
part_persist_aggregated_request.c \
3939
part_persist_aggregated_sendreq.h \
4040
part_persist_aggregated_sendreq.c \
41-
schemes/part_persist_aggregated_scheme_simple.c
41+
schemes/part_persist_aggregated_scheme_regular.c
4242

4343
mcacomponentdir = $(ompilibdir)
4444
mcacomponent_LTLIBRARIES = $(component_install)

ompi/mca/part/persist_aggregated/part_persist_aggregated.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ mca_part_persist_aggregated_free_req(struct mca_part_persist_aggregated_request_
161161
// if on sender side, free aggregation state
162162
if (MCA_PART_PERSIST_AGGREGATED_REQUEST_PSEND == req->req_type) {
163163
mca_part_persist_aggregated_psend_request_t *sendreq = (mca_part_persist_aggregated_psend_request_t *) req;
164-
part_persist_aggregate_simple_free(&sendreq->aggregation_state);
164+
part_persist_aggregate_regular_free(&sendreq->aggregation_state);
165165
}
166166

167167
for(i = 0; i < req->real_parts; i++) {
@@ -532,7 +532,7 @@ mca_part_persist_aggregated_psend_init(const void* buf,
532532
opal_output_verbose(5, ompi_part_base_framework.framework_output, "mapped given %lu*%lu partitioning to internal partitioning of %lu*%lu + %lu\n", parts, count, req->real_parts - 1, req->real_count, req->real_remainder);
533533

534534
// init aggregation state
535-
part_persist_aggregate_simple_init(&sendreq->aggregation_state, req->real_parts, factor, remaining_partitions);
535+
part_persist_aggregate_regular_init(&sendreq->aggregation_state, req->real_parts, factor, remaining_partitions);
536536

537537
/* non-blocking send set-up data */
538538
req->setup_info[0].dt_size = dt_size;
@@ -590,7 +590,7 @@ mca_part_persist_aggregated_start(size_t count, ompi_request_t** requests)
590590
// reset aggregation state here
591591
if (MCA_PART_PERSIST_AGGREGATED_REQUEST_PSEND == req->req_type) {
592592
mca_part_persist_aggregated_psend_request_t *sendreq = (mca_part_persist_aggregated_psend_request_t *)(req);
593-
part_persist_aggregate_simple_reset(&sendreq->aggregation_state);
593+
part_persist_aggregate_regular_reset(&sendreq->aggregation_state);
594594
}
595595

596596
/* First use is a special case, to support lazy initialization */
@@ -648,7 +648,7 @@ mca_part_persist_aggregated_pready(size_t min_part,
648648
mca_part_persist_aggregated_psend_request_t *sendreq = (mca_part_persist_aggregated_psend_request_t *)(req);
649649
int internal_part_ready;
650650
for(i = min_part; i <= max_part && OMPI_SUCCESS == err; i++) {
651-
part_persist_aggregate_simple_pready(&sendreq->aggregation_state, i, &internal_part_ready);
651+
part_persist_aggregate_regular_pready(&sendreq->aggregation_state, i, &internal_part_ready);
652652

653653
if (-1 != internal_part_ready) {
654654
if(true == req->initialized)

ompi/mca/part/persist_aggregated/part_persist_aggregated_sendreq.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#ifndef PART_PERSIST_AGGREGATED_PSENDREQ_H
2929
#define PART_PERSIST_AGGREGATED_PSENDREQ_H
3030

31-
#include "ompi/mca/part/persist_aggregated/schemes/part_persist_aggregated_scheme_simple.h"
31+
#include "ompi/mca/part/persist_aggregated/schemes/part_persist_aggregated_scheme_regular.h"
3232

3333
#include "ompi/mca/part/persist_aggregated/part_persist_aggregated_request.h"
3434
#include "ompi/mca/part/base/part_base_psendreq.h"

ompi/mca/part/persist_aggregated/schemes/part_persist_aggregated_scheme_simple.c renamed to ompi/mca/part/persist_aggregated/schemes/part_persist_aggregated_scheme_regular.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*/
1212

13-
#include "part_persist_aggregated_scheme_simple.h"
13+
#include "part_persist_aggregated_scheme_regular.h"
1414

1515
#include <stdlib.h>
1616
#include <string.h>
@@ -21,7 +21,7 @@ static int internal_partition(struct part_persist_aggregation_state *state, int
2121
return public_part / state->aggregation_count;
2222
}
2323

24-
void part_persist_aggregate_simple_init(struct part_persist_aggregation_state *state,
24+
void part_persist_aggregate_regular_init(struct part_persist_aggregation_state *state,
2525
int internal_partition_count, int factor, int last_internal_partition_size)
2626
{
2727
state->public_partition_count = (internal_partition_count - 1) * factor + last_internal_partition_size;
@@ -37,7 +37,7 @@ void part_persist_aggregate_simple_init(struct part_persist_aggregation_state *s
3737
sizeof(opal_atomic_uint32_t));
3838
}
3939

40-
void part_persist_aggregate_simple_reset(struct part_persist_aggregation_state *state)
40+
void part_persist_aggregate_regular_reset(struct part_persist_aggregation_state *state)
4141
{
4242
// reset flags
4343
if (NULL != state->public_parts_ready) {
@@ -53,7 +53,7 @@ static inline int num_public_parts(struct part_persist_aggregation_state *state,
5353
return is_last_partition(state, partition) ? state->last_internal_partition_size : state->aggregation_count;
5454
}
5555

56-
void part_persist_aggregate_simple_pready(struct part_persist_aggregation_state *state, int partition, int* available_partition)
56+
void part_persist_aggregate_regular_pready(struct part_persist_aggregation_state *state, int partition, int* available_partition)
5757
{
5858
int internal_part = internal_partition(state, partition);
5959

@@ -68,7 +68,7 @@ void part_persist_aggregate_simple_pready(struct part_persist_aggregation_state
6868
}
6969
}
7070

71-
void part_persist_aggregate_simple_free(struct part_persist_aggregation_state *state)
71+
void part_persist_aggregate_regular_free(struct part_persist_aggregation_state *state)
7272
{
7373
if (state->public_parts_ready != NULL)
7474
free((void*)state->public_parts_ready);

ompi/mca/part/persist_aggregated/schemes/part_persist_aggregated_scheme_simple.h renamed to ompi/mca/part/persist_aggregated/schemes/part_persist_aggregated_scheme_regular.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
* where k can be selected to optimize internal partition size.
1919
*/
2020

21-
#ifndef PART_PERSIST_AGGREGATED_SCHEME_SIMPLE_H
22-
#define PART_PERSIST_AGGREGATED_SCHEME_SIMPLE_H
21+
#ifndef PART_PERSIST_AGGREGATED_SCHEME_REGULAR_H
22+
#define PART_PERSIST_AGGREGATED_SCHEME_REGULAR_H
2323

2424
#include "ompi_config.h"
2525

@@ -53,7 +53,7 @@ struct part_persist_aggregation_state {
5353
* @param[in] last_internal_partition_size number of public partitions corresponding to last
5454
* internal partition
5555
*/
56-
OMPI_DECLSPEC void part_persist_aggregate_simple_init(struct part_persist_aggregation_state *state,
56+
OMPI_DECLSPEC void part_persist_aggregate_regular_init(struct part_persist_aggregation_state *state,
5757
int internal_partition_count,
5858
int factor,
5959
int last_internal_partition_size);
@@ -64,7 +64,7 @@ OMPI_DECLSPEC void part_persist_aggregate_simple_init(struct part_persist_aggreg
6464
* @param[out] state pointer to aggregation state object
6565
*/
6666
OMPI_DECLSPEC void
67-
part_persist_aggregate_simple_reset(struct part_persist_aggregation_state *state);
67+
part_persist_aggregate_regular_reset(struct part_persist_aggregation_state *state);
6868

6969
/**
7070
* @brief marks a public partition as ready
@@ -73,14 +73,14 @@ part_persist_aggregate_simple_reset(struct part_persist_aggregation_state *state
7373
* @param[in] partition index of the public partition to mark ready
7474
* @param[out] available_partition index of the internal partition if it is ready, otherwise -1
7575
*/
76-
OMPI_DECLSPEC void part_persist_aggregate_simple_pready(struct part_persist_aggregation_state *state,
76+
OMPI_DECLSPEC void part_persist_aggregate_regular_pready(struct part_persist_aggregation_state *state,
7777
int partition, int* available_partition);
7878

7979
/**
8080
* @brief destroys the aggregation scheme
8181
*
8282
* @param[in,out] state pointer to aggregation state object
8383
*/
84-
OMPI_DECLSPEC void part_persist_aggregate_simple_free(struct part_persist_aggregation_state *state);
84+
OMPI_DECLSPEC void part_persist_aggregate_regular_free(struct part_persist_aggregation_state *state);
8585

8686
#endif

0 commit comments

Comments
 (0)