From eb4e8a9fe898c49c0ccf60403f1e74b0bae3178a Mon Sep 17 00:00:00 2001 From: rhc54 Date: Tue, 8 Mar 2016 10:21:46 -0800 Subject: [PATCH] Merge pull request #1436 from rhc54/topic/names Ensure the process name is positive when using direct launch (cherry picked from commit open-mpi/ompi@7b84207465bc162a5c94eda93d88a1ea540b905c) --- opal/mca/pmix/pmix112/pmix1_client.c | 2 ++ 1 file changed, 2 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 */