From bac6290b228b4f563640a6407448fd635cc78f61 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Tue, 8 Mar 2016 08:31:05 -0800 Subject: [PATCH] Ensure the process name is positive when using direct launch Fixes #1425 --- opal/mca/pmix/pmix112/pmix1_client.c | 2 ++ opal/mca/pmix/pmix120/pmix120_client.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/opal/mca/pmix/pmix112/pmix1_client.c b/opal/mca/pmix/pmix112/pmix1_client.c index 21d64fc7de..97bb2c0786 100644 --- a/opal/mca/pmix/pmix112/pmix1_client.c +++ b/opal/mca/pmix/pmix112/pmix1_client.c @@ -120,6 +120,8 @@ int pmix1_client_init(void) /* we were launched by someone else, so make the * jobid just be the hash of the nspace */ OPAL_HASH_STR(my_proc.nspace, pname.jobid); + /* keep it from being negative */ + pname.jobid &= ~(0x8000); } /* insert this into our list of jobids - it will be the * first, and so we'll check it first */ diff --git a/opal/mca/pmix/pmix120/pmix120_client.c b/opal/mca/pmix/pmix120/pmix120_client.c index ba2e5ae14f..8900ef2012 100644 --- a/opal/mca/pmix/pmix120/pmix120_client.c +++ b/opal/mca/pmix/pmix120/pmix120_client.c @@ -64,6 +64,8 @@ int pmix120_client_init(void) /* we were launched by someone else, so make the * jobid just be the hash of the nspace */ OPAL_HASH_STR(my_proc.nspace, pname.jobid); + /* keep it from being negative */ + pname.jobid &= ~(0x8000); } /* insert this into our list of jobids - it will be the * first, and so we'll check it first */