From 1a676e5b351cbeb854e95895494e375fca6d44da Mon Sep 17 00:00:00 2001 From: Howard Pritchard Date: Mon, 16 May 2016 12:43:30 -0500 Subject: [PATCH] pmix/cray: fix some breakage Signed-off-by: Howard Pritchard --- opal/mca/pmix/cray/pmix_cray.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/opal/mca/pmix/cray/pmix_cray.c b/opal/mca/pmix/cray/pmix_cray.c index 9af1c19303..28540b5409 100644 --- a/opal/mca/pmix/cray/pmix_cray.c +++ b/opal/mca/pmix/cray/pmix_cray.c @@ -3,7 +3,7 @@ * Copyright (c) 2007 The Trustees of Indiana University. * All rights reserved. * Copyright (c) 2011 Cisco Systems, Inc. All rights reserved. - * Copyright (c) 2011-2015 Los Alamos National Security, LLC. All + * Copyright (c) 2011-2016 Los Alamos National Security, LLC. All * rights reserved. * Copyright (c) 2013-2015 Intel, Inc. All rights reserved. * Copyright (c) 2014-2015 Research Organization for Information Science @@ -305,6 +305,18 @@ static int cray_init(void) } OBJ_DESTRUCT(&kv); + /* push this into the dstore for subsequent fetches */ + OBJ_CONSTRUCT(&kv, opal_value_t); + kv.key = strdup(OPAL_PMIX_MAX_PROCS); + kv.type = OPAL_UINT32; + kv.data.uint32 = atoi(buf); + if (OPAL_SUCCESS != (ret = opal_pmix_base_store(&OPAL_PROC_MY_NAME, &kv))) { + OPAL_ERROR_LOG(ret); + OBJ_DESTRUCT(&kv); + goto err_exit; + } + OBJ_DESTRUCT(&kv); + OBJ_CONSTRUCT(&kv, opal_value_t); kv.key = strdup(OPAL_PMIX_JOBID); kv.type = OPAL_UINT32;