Skip to content

Commit 4f3786d

Browse files
author
rhc54
committed
Merge pull request #2 from jsquyres/pr/ompi-release-747-addendum
orte proc_info.h: use symbolic names
2 parents b0f9b63 + a9b22af commit 4f3786d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

orte/util/proc_info.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ typedef uint32_t orte_proc_type_t;
6161
#define ORTE_PROC_DVM 0x0102 // DVM + daemon
6262
#define ORTE_PROC_IOF_ENDPT 0x1000
6363
#define ORTE_PROC_SCHEDULER 0x2000
64-
#define ORTE_PROC_MASTER 0x4004 // Master + HNP
64+
#define ORTE_PROC_MASTER_ACTUAL 0x4000
65+
#define ORTE_PROC_MASTER (ORTE_PROC_MASTER_ACTUAL + ORTE_PROC_HNP)
6566

6667
#define ORTE_PROC_IS_SINGLETON (ORTE_PROC_SINGLETON & orte_process_info.proc_type)
6768
#define ORTE_PROC_IS_DAEMON (ORTE_PROC_DAEMON & orte_process_info.proc_type)
@@ -75,7 +76,7 @@ typedef uint32_t orte_proc_type_t;
7576
#define ORTE_PROC_IS_DVM (ORTE_PROC_DVM & orte_process_info.proc_type)
7677
#define ORTE_PROC_IS_IOF_ENDPT (ORTE_PROC_IOF_ENDPT & orte_process_info.proc_type)
7778
#define ORTE_PROC_IS_SCHEDULER (ORTE_PROC_SCHEDULER & orte_process_info.proc_type)
78-
#define ORTE_PROC_IS_MASTER (0x4000 & orte_process_info.proc_type)
79+
#define ORTE_PROC_IS_MASTER (ORTE_PROC_MASTER_ACTUAL & orte_process_info.proc_type)
7980

8081

8182
/**

0 commit comments

Comments
 (0)