Skip to content

Commit b511836

Browse files
authored
Merge pull request #10574 from bosilca/topic/fixes
Various fixes to make the main branch compile with SPC and provide a working MPI_Start.
2 parents 26986f0 + d06c093 commit b511836

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
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/mpi/c/start.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ int MPI_Start(MPI_Request *request)
8585

8686
ret = (*request)->req_start(1, request);
8787

88-
return OMPI_ERRHANDLER_NOHANDLE_INVOKE(ret, FUNC_NAME);
88+
OMPI_ERRHANDLER_NOHANDLE_RETURN(ret, ret, FUNC_NAME);
8989

9090
case OMPI_REQUEST_NOOP:
9191
/**

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

opal/include/opal/opal_portable_platform_real.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,9 +1053,9 @@
10531053
#elif defined(__LITTLE_ENDIAN__) || defined(WORDS_LITTLEENDIAN) || \
10541054
( __BYTE_ORDER__ > 0 && __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__ )
10551055
#define PLATFORM_ARCH_LITTLE_ENDIAN 1
1056-
#elif _PLATFORM_ARCH_BIG_ENDIAN
1056+
#elif defined(_PLATFORM_ARCH_BIG_ENDIAN)
10571057
#define PLATFORM_ARCH_BIG_ENDIAN 1
1058-
#elif _PLATFORM_ARCH_LITTLE_ENDIAN
1058+
#elif defined(_PLATFORM_ARCH_LITTLE_ENDIAN)
10591059
#define PLATFORM_ARCH_LITTLE_ENDIAN 1
10601060
#endif
10611061
#undef _PLATFORM_ARCH_BIG_ENDIAN
@@ -1086,9 +1086,9 @@
10861086
defined(__arch32__) || defined(__32BIT__) || \
10871087
__INTPTR_MAX__ == 2147483647
10881088
#define PLATFORM_ARCH_32 1
1089-
#elif _PLATFORM_ARCH_64
1089+
#elif defined(_PLATFORM_ARCH_64)
10901090
#define PLATFORM_ARCH_64 1
1091-
#elif _PLATFORM_ARCH_32
1091+
#elif defined(_PLATFORM_ARCH_32)
10921092
#define PLATFORM_ARCH_32 1
10931093
#endif
10941094
#undef _PLATFORM_ARCH_64

0 commit comments

Comments
 (0)