Commit b32ce892 authored by Kenneth Raffenetti's avatar Kenneth Raffenetti
Browse files

portals4: increase unexpected message limits



Set the unpexected message header limit to 2 million and allocate
512MB of buffer space.
Signed-off-by: Pavan Balaji's avatarPavan Balaji <balaji@anl.gov>
parent 21450e39
......@@ -101,6 +101,13 @@ static int ptl_init(MPIDI_PG_t *pg_p, int pg_rank, char **bc_val_p, int *val_max
MPIDI_Anysource_improbe_fn = MPID_nem_ptl_anysource_improbe;
/* set the unexpected header limit before PtlInit, unless it is already set in the env */
if (getenv("PTL_LIM_MAX_UNEXPECTED_HEADERS") == NULL) {
char *envstr = MPIU_Strdup("PTL_LIM_MAX_UNEXPECTED_HEADERS=2000000");
MPL_putenv(envstr);
MPIU_Free(envstr);
}
/* init portals */
ret = PtlInit();
MPIU_ERR_CHKANDJUMP1(ret, mpi_errno, MPI_ERR_OTHER, "**ptlinit", "**ptlinit %s", MPID_nem_ptl_strerror(ret));
......
......@@ -7,7 +7,7 @@
#include "ptl_impl.h"
#define OVERFLOW_LENGTH (1024*1024)
#define NUM_OVERFLOW_ME 50
#define NUM_OVERFLOW_ME 512
static ptl_handle_me_t overflow_me_handle[NUM_OVERFLOW_ME];
static void *overflow_buf[NUM_OVERFLOW_ME];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment