Skip to content

Commit 73ea878

Browse files
committed
orte/util: add the ORTE_NODE_PORT attribute
this can be used to direct the plm component to use an alternate port (e.g. ssh -p 2222 ...)
1 parent e78fcc4 commit 73ea878

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

orte/util/attr.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (c) 2014-2016 Intel, Inc. All rights reserved
3-
* Copyright (c) 2014 Research Organization for Information Science
3+
* Copyright (c) 2014-2016 Research Organization for Information Science
44
* and Technology (RIST). All rights reserved.
55
* $COPYRIGHT$
66
*
@@ -173,6 +173,8 @@ const char *orte_attr_key_to_str(orte_attribute_key_t key)
173173

174174
case ORTE_NODE_USERNAME:
175175
return "NODE-USERNAME";
176+
case ORTE_NODE_PORT:
177+
return "NODE-PORT";
176178
case ORTE_NODE_LAUNCH_ID:
177179
return "NODE-LAUNCHID";
178180
case ORTE_NODE_HOSTID:

orte/util/attr.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
/*
22
* Copyright (c) 2014-2016 Intel, Inc. All rights reserved
3+
* Copyright (c) 2016 Research Organization for Information Science
4+
* and Technology (RIST). All rights reserved.
35
* $COPYRIGHT$
46
*
57
* Additional copyrights may follow
@@ -68,6 +70,7 @@ typedef uint8_t orte_node_flags_t;
6870
// we need to know the id of our "host" to help any procs on us to determine locality
6971
#define ORTE_NODE_ALIAS (ORTE_NODE_START_KEY + 4) // comma-separate list of alternate names for the node
7072
#define ORTE_NODE_SERIAL_NUMBER (ORTE_NODE_START_KEY + 5) // string - serial number: used if node is a coprocessor
73+
#define ORTE_NODE_PORT (ORTE_NODE_START_KEY + 6) // int32 - Alternate port to be passed to plm
7174

7275
#define ORTE_NODE_MAX_KEY 200
7376

0 commit comments

Comments
 (0)