1
1

Adjust the process type flags to remove confusion between orted and dvm state machines

Этот коммит содержится в:
Ralph Castain 2015-08-21 07:50:08 -07:00
родитель ede9fc17b0
Коммит bc7815e178
2 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -71,7 +71,7 @@ static int state_hnp_close(void)
static int state_hnp_component_query(mca_base_module_t **module, int *priority)
{
if (ORTE_PROC_IS_HNP) {
if (ORTE_PROC_IS_HNP && !ORTE_PROC_IS_MASTER) {
/* set our priority high as we are the default for hnps */
*priority = my_priority;
*module = (mca_base_module_t *)&orte_state_hnp_module;

Просмотреть файл

@ -58,10 +58,10 @@ typedef uint32_t orte_proc_type_t;
#define ORTE_PROC_APP 0x0030
#define ORTE_PROC_CM 0x0040
#define ORTE_PROC_AGGREGATOR 0x0080
#define ORTE_PROC_DVM 0x0102 // DVM is DVM+Daemon
#define ORTE_PROC_DVM 0x0102 // DVM + daemon
#define ORTE_PROC_IOF_ENDPT 0x1000
#define ORTE_PROC_SCHEDULER 0x2000
#define ORTE_PROC_MASTER 0x4104 // DVM Master is HNP+DVM+Master
#define ORTE_PROC_MASTER 0x4004 // Master + HNP
#define ORTE_PROC_IS_SINGLETON (ORTE_PROC_SINGLETON & orte_process_info.proc_type)
#define ORTE_PROC_IS_DAEMON (ORTE_PROC_DAEMON & orte_process_info.proc_type)
@ -72,10 +72,10 @@ typedef uint32_t orte_proc_type_t;
#define ORTE_PROC_IS_APP (ORTE_PROC_APP & orte_process_info.proc_type)
#define ORTE_PROC_IS_CM (ORTE_PROC_CM & orte_process_info.proc_type)
#define ORTE_PROC_IS_AGGREGATOR (ORTE_PROC_AGGREGATOR & orte_process_info.proc_type)
#define ORTE_PROC_IS_DVM (ORTE_PROC_IS_DAEMON && (ORTE_PROC_DVM & orte_process_info.proc_type))
#define ORTE_PROC_IS_DVM (ORTE_PROC_DVM & orte_process_info.proc_type)
#define ORTE_PROC_IS_IOF_ENDPT (ORTE_PROC_IOF_ENDPT & orte_process_info.proc_type)
#define ORTE_PROC_IS_SCHEDULER (ORTE_PROC_SCHEDULER & orte_process_info.proc_type)
#define ORTE_PROC_IS_MASTER (ORTE_PROC_IS_DVM && ORTE_PROC_IS_HNP && (ORTE_PROC_MASTER & orte_process_info.proc_type))
#define ORTE_PROC_IS_MASTER (ORTE_PROC_MASTER & orte_process_info.proc_type)
/**