Commit 669f4286 authored by Pavan Balaji's avatar Pavan Balaji Committed by Xin Zhao
Browse files

Disable hugepage support by default.

This patch is a workaround for an issue with older HPC-X machines.
Once we are comfortable upgrading to the latest HPC-X version, the
default value of the CVAR should be changed to true.
Signed-off-by: default avatarXin Zhao <>
parent b3d837d5
......@@ -40,6 +40,18 @@ cvars:
If true, force mxm to disconnect all processes at
finalization time.
category : CH3
type : boolean
default : false
class : none
description : >-
If true, mxm tries detecting hugepage support. On HPC-X 2.3
and earlier, this might cause problems on Ubuntu and other
platforms even if the system provides hugepage support.
......@@ -126,6 +138,20 @@ int MPID_nem_mxm_init(MPIDI_PG_t * pg_p, int pg_rank, char **bc_val_p, int *val_
MPIU_ERR_CHKANDJUMP(r, mpi_errno, MPI_ERR_OTHER, "**putenv");
/* [PB @ 2014-10-06] If hugepage support is not enabled, we force
* memory allocation to go through mmap. This is mainly to
* workaround issues in MXM with Ubuntu where the detection has
* some issues (either because of bugs on the platform or within
* MXM) causing errors. This can probably be deleted eventually
* when this issue is resolved. */
if (getenv("MXM_MEM_ALLOC") == NULL) {
r = MPL_putenv("MXM_MEM_ALLOC=mmap,libc,sysv");
MPIU_ERR_CHKANDJUMP(r, mpi_errno, MPI_ERR_OTHER, "**putenv");
mpi_errno = _mxm_init(pg_rank, pg_p->size);
if (mpi_errno)
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