[Pkg-ofed-commits] [libfabric] 12/123: prov/psm: detect MPI runs and turns off name server automatically

Ana Beatriz Guerrero López ana at moszumanska.debian.org
Sat Oct 22 12:28:24 UTC 2016


This is an automated email from the git hooks/post-receive script.

ana pushed a commit to annotated tag v1.1.1
in repository libfabric.

commit ef812fa409c4fb6c68e3c4ab5c958f995bf1a1ca
Author: Jianxin Xiong <jianxin.xiong at intel.com>
Date:   Thu Aug 27 13:55:06 2015 -0700

    prov/psm: detect MPI runs and turns off name server automatically
    
    The name server is for simple client-server style runs such as
    fabtests. It's useless for MPI applications where a process manager
    handles the name resolution and address exchange. This patch detects
    MPI runs by checking exported environment variables and turns off
    the name server accordingly.
    
    Signed-off-by: Jianxin Xiong <jianxin.xiong at intel.com>
---
 prov/psm/src/psmx_init.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/prov/psm/src/psmx_init.c b/prov/psm/src/psmx_init.c
index 1fb89b0..05d22c3 100644
--- a/prov/psm/src/psmx_init.c
+++ b/prov/psm/src/psmx_init.c
@@ -46,6 +46,9 @@ struct psmx_env psmx_env = {
 
 static void psmx_init_env(void)
 {
+	if (getenv("OMPI_COMM_WORLD_RANK") || getenv("PMI_RANK"))
+		psmx_env.name_server = 0;
+
 	fi_param_get_bool(&psmx_prov, "name_server", &psmx_env.name_server);
 	fi_param_get_bool(&psmx_prov, "am_msg", &psmx_env.am_msg);
 	fi_param_get_bool(&psmx_prov, "tagged_rma", &psmx_env.tagged_rma);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ofed/libfabric.git



More information about the Pkg-ofed-commits mailing list