Skip to content

Commit b42fe93

Browse files
committed
Protect from missing attribute
Signed-off-by: Ralph Castain <[email protected]>
1 parent 8f05695 commit b42fe93

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/prted/pmix/pmix_server_dyn.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,11 +272,13 @@ int prte_pmix_xfer_job_info(prte_job_t *jdata,
272272
prte_set_attribute(&jdata->attributes, PRTE_JOB_REPORT_BINDINGS,
273273
PRTE_ATTR_GLOBAL, &flag, PMIX_BOOL);
274274

275+
#ifdef PMIX_REPORT_PHYSICAL_CPUS
275276
/*** USE PHYSICAL CPUS ***/
276277
} else if (PMIX_CHECK_KEY(info, PMIX_REPORT_PHYSICAL_CPUS)) {
277278
flag = PMIX_INFO_TRUE(info);
278279
prte_set_attribute(&jdata->attributes, PRTE_JOB_REPORT_PHYSICAL_CPUS,
279280
PRTE_ATTR_GLOBAL, &flag, PMIX_BOOL);
281+
#endif
280282

281283
/*** DISPLAY TOPOLOGY ***/
282284
} else if (PMIX_CHECK_KEY(info, PMIX_DISPLAY_TOPOLOGY)) {

0 commit comments

Comments
 (0)