Skip to content

Commit d06c093

Browse files
committed
Fix SPC for all partitionned communications.
Signed-off-by: George Bosilca <[email protected]>
1 parent a41c9e6 commit d06c093

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

ompi/mpi/c/parrived.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ int MPI_Parrived(MPI_Request request, MPI_Count partition, int *flag)
4747
{
4848
int rc;
4949

50-
SPC_RECORD(OMPI_SPC_ARRIVED, 1);
50+
SPC_RECORD(OMPI_SPC_PARRIVED, 1);
5151

5252
if (MPI_PARAM_CHECK) {
5353
rc = OMPI_SUCCESS;

ompi/mpi/c/precv_init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ int MPI_Precv_init(void* buf, int partitions, MPI_Count count, MPI_Datatype data
4848
{
4949
int rc;
5050

51-
SPC_RECORD(OMPI_SPC_ARRIVED, 1);
52-
5351
if (MPI_PARAM_CHECK) {
5452
rc = OMPI_SUCCESS;
5553

ompi/mpi/c/psend_init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ int MPI_Psend_init(const void* buf, int partitions, MPI_Count count, MPI_Datatyp
4848
{
4949
int rc;
5050

51-
SPC_RECORD(OMPI_SPC_ARRIVED, 1);
52-
5351
if (MPI_PARAM_CHECK) {
5452
rc = OMPI_SUCCESS;
5553

ompi/runtime/ompi_spc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,11 @@ static const ompi_spc_event_t ompi_spc_events_desc[OMPI_SPC_NUM_COUNTERS] = {
166166
SET_COUNTER_ARRAY(OMPI_SPC_MAX_UNEXPECTED_IN_QUEUE, "The maximum number of messages that the unexpected message queue(s) within an MPI process "
167167
"contained at once since the last reset of this counter. Note: This counter is reset each time it is read.", true, false),
168168
SET_COUNTER_ARRAY(OMPI_SPC_MAX_OOS_IN_QUEUE, "The maximum number of messages that the out of sequence message queue(s) within an MPI process "
169-
"contained at once since the last reset of this counter. Note: This counter is reset each time it is read.", true, false)
169+
"contained at once since the last reset of this counter. Note: This counter is reset each time it is read.", true, false),
170170
SET_COUNTER_ARRAY(OMPI_SPC_ISENDRECV, "The number of times MPI_Isendrecv was called.", false, false),
171171
SET_COUNTER_ARRAY(OMPI_SPC_ISENDRECV_REPLACE, "The number of times MPI_Isendrecv_replace was called.", false, false),
172+
SET_COUNTER_ARRAY(OMPI_SPC_PARRIVED, "The number of times MPI_Parrived was called.", false, false),
173+
SET_COUNTER_ARRAY(OMPI_SPC_PREADY, "The number of times MPI_Pready (or similar functions) was called.", false, false),
172174
};
173175

174176
/* An array of event structures to store the event data (value, attachments, flags) */

ompi/runtime/ompi_spc.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,8 @@ typedef enum ompi_spc_counters {
154154
OMPI_SPC_MAX_OOS_IN_QUEUE,
155155
OMPI_SPC_ISENDRECV,
156156
OMPI_SPC_ISENDRECV_REPLACE,
157+
OMPI_SPC_PARRIVED,
158+
OMPI_SPC_PREADY,
157159
OMPI_SPC_NUM_COUNTERS /* This serves as the number of counters. It must be last. */
158160
} ompi_spc_counters_t;
159161

0 commit comments

Comments
 (0)