Skip to content

Commit 9066d26

Browse files
committed
Merge pull request #1672 from hppritcha/topic/fix_cray_pmix_bust
pmix/cray: fix some breakage
2 parents daa26f4 + 1a676e5 commit 9066d26

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

opal/mca/pmix/cray/pmix_cray.c

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright (c) 2007 The Trustees of Indiana University.
44
* All rights reserved.
55
* Copyright (c) 2011 Cisco Systems, Inc. All rights reserved.
6-
* Copyright (c) 2011-2015 Los Alamos National Security, LLC. All
6+
* Copyright (c) 2011-2016 Los Alamos National Security, LLC. All
77
* rights reserved.
88
* Copyright (c) 2013-2015 Intel, Inc. All rights reserved.
99
* Copyright (c) 2014-2015 Research Organization for Information Science
@@ -305,6 +305,18 @@ static int cray_init(void)
305305
}
306306
OBJ_DESTRUCT(&kv);
307307

308+
/* push this into the dstore for subsequent fetches */
309+
OBJ_CONSTRUCT(&kv, opal_value_t);
310+
kv.key = strdup(OPAL_PMIX_MAX_PROCS);
311+
kv.type = OPAL_UINT32;
312+
kv.data.uint32 = atoi(buf);
313+
if (OPAL_SUCCESS != (ret = opal_pmix_base_store(&OPAL_PROC_MY_NAME, &kv))) {
314+
OPAL_ERROR_LOG(ret);
315+
OBJ_DESTRUCT(&kv);
316+
goto err_exit;
317+
}
318+
OBJ_DESTRUCT(&kv);
319+
308320
OBJ_CONSTRUCT(&kv, opal_value_t);
309321
kv.key = strdup(OPAL_PMIX_JOBID);
310322
kv.type = OPAL_UINT32;

0 commit comments

Comments
 (0)