Skip to content

Commit 17fac4b

Browse files
committed
grpcomm/base: get rid of the seq_num field of the orte_grpcomm_signature_t struct
Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent fe25f50 commit 17fac4b

File tree

8 files changed

+4
-22
lines changed

8 files changed

+4
-22
lines changed

orte/mca/grpcomm/base/grpcomm_base_frame.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ static void scon(orte_grpcomm_signature_t *p)
112112
{
113113
p->signature = NULL;
114114
p->sz = 0;
115-
p->seq_num = 0;
116115
}
117116
static void sdes(orte_grpcomm_signature_t *p)
118117
{

orte/mca/grpcomm/base/grpcomm_base_stubs.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,10 @@ static void allgather_stub(int fd, short args, void *cbdata)
152152
* for releasing it upon completion of the collective */
153153
ret = opal_hash_table_get_value_ptr(&orte_grpcomm_base.sig_table, (void *)cd->sig->signature, cd->sig->sz * sizeof(orte_process_name_t), (void **)&seq_number);
154154
if (OPAL_ERR_NOT_FOUND == ret) {
155-
cd->sig->seq_num = 0;
156155
seq_number = (uint32_t *)malloc(sizeof(uint32_t));
157156
*seq_number = 0;
158157
} else if (OPAL_SUCCESS == ret) {
159158
*seq_number = *seq_number + 1;
160-
cd->sig->seq_num = *seq_number;
161159
} else {
162160
OPAL_OUTPUT((orte_grpcomm_base_framework.framework_output,
163161
"%s rpcomm:base:allgather cannot get signature from hash table",

orte/mca/grpcomm/grpcomm.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
* All rights reserved.
1313
* Copyright (c) 2011-2016 Los Alamos National Security, LLC. All rights
1414
* reserved.
15+
* Copyright (c) 2016 Research Organization for Information Science
16+
* and Technology (RIST). All rights reserved.
1517
* $COPYRIGHT$
1618
*
1719
* Additional copyrights may follow
@@ -59,7 +61,6 @@ typedef struct {
5961
opal_object_t super;
6062
orte_process_name_t *signature;
6163
size_t sz;
62-
uint32_t seq_num;
6364
} orte_grpcomm_signature_t;
6465
OBJ_CLASS_DECLARATION(orte_grpcomm_signature_t);
6566

orte/runtime/data_type_support/orte_dt_compare_fns.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,6 @@ int orte_dt_compare_sig(orte_grpcomm_signature_t *value1, orte_grpcomm_signature
206206
}
207207
if (value2->sz > value1->sz) {
208208
return OPAL_VALUE2_GREATER;
209-
}
210-
if (value1->seq_num > value2->seq_num) {
211-
return OPAL_VALUE1_GREATER;
212-
}
213-
if (value2->seq_num > value1->seq_num) {
214-
return OPAL_VALUE2_GREATER;
215209
}
216210
/* same size - check contents */
217211
if (0 == memcmp(value1->signature, value2->signature, value1->sz*sizeof(orte_process_name_t))) {

orte/runtime/data_type_support/orte_dt_copy_fns.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@ int orte_dt_copy_sig(orte_grpcomm_signature_t **dest, orte_grpcomm_signature_t *
319319
}
320320
(*dest)->sz = src->sz;
321321
(*dest)->signature = (orte_process_name_t*)malloc(src->sz * sizeof(orte_process_name_t));
322-
(*dest)->seq_num = src->seq_num;
323322
if (NULL == (*dest)->signature) {
324323
ORTE_ERROR_LOG(ORTE_ERR_OUT_OF_RESOURCE);
325324
OBJ_RELEASE(*dest);

orte/runtime/data_type_support/orte_dt_packing_fns.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -846,11 +846,6 @@ int orte_dt_pack_sig(opal_buffer_t *buffer, const void *src, int32_t num_vals,
846846
ORTE_ERROR_LOG(rc);
847847
return rc;
848848
}
849-
/* pack the sequence number */
850-
if (OPAL_SUCCESS != (rc = opal_dss.pack(buffer, &ptr[i]->seq_num, 1, OPAL_UINT32))) {
851-
ORTE_ERROR_LOG(rc);
852-
return rc;
853-
}
854849
if (0 < ptr[i]->sz) {
855850
/* pack the array */
856851
if (OPAL_SUCCESS != (rc = opal_dss.pack(buffer, ptr[i]->signature, ptr[i]->sz, ORTE_NAME))) {

orte/runtime/data_type_support/orte_dt_print_fns.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,13 +853,13 @@ int orte_dt_print_sig(char **output, char *prefix, orte_grpcomm_signature_t *src
853853
}
854854

855855
if (NULL == src->signature) {
856-
asprintf(output, "%sORTE_SIG SeqNumber:%d Procs: NULL", prefx, src->seq_num);
856+
asprintf(output, "%sORTE_SIG Procs: NULL", prefx);
857857
free(prefx);
858858
return ORTE_SUCCESS;
859859
}
860860

861861
/* there must be at least one proc in the signature */
862-
asprintf(&tmp, "%sORTE_SIG SeqNumber:%d Procs: ", prefx, src->seq_num);
862+
asprintf(&tmp, "%sORTE_SIG Procs: ", prefx);
863863

864864
for (i=0; i < src->sz; i++) {
865865
asprintf(&tmp2, "%s%s", tmp, ORTE_NAME_PRINT(&src->signature[i]));

orte/runtime/data_type_support/orte_dt_unpacking_fns.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -933,10 +933,6 @@ int orte_dt_unpack_sig(opal_buffer_t *buffer, void *dest, int32_t *num_vals,
933933
ORTE_ERROR_LOG(rc);
934934
return rc;
935935
}
936-
if (OPAL_SUCCESS != (rc = opal_dss.unpack(buffer, &ptr[i]->seq_num, &cnt, OPAL_UINT32))) {
937-
ORTE_ERROR_LOG(rc);
938-
return rc;
939-
}
940936
if (0 < ptr[i]->sz) {
941937
/* allocate space for the array */
942938
ptr[i]->signature = (orte_process_name_t*)malloc(ptr[i]->sz * sizeof(orte_process_name_t));

0 commit comments

Comments
 (0)