From 73ea87800b513d6b26803238ad467a13151e3840 Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Sun, 16 Oct 2016 11:58:05 +0900 Subject: [PATCH] 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 ...) --- orte/util/attr.c | 4 +++- orte/util/attr.h | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/orte/util/attr.c b/orte/util/attr.c index f29cfba83e..39bd7963ad 100644 --- a/orte/util/attr.c +++ b/orte/util/attr.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2014-2016 Intel, Inc. All rights reserved - * Copyright (c) 2014 Research Organization for Information Science + * Copyright (c) 2014-2016 Research Organization for Information Science * and Technology (RIST). All rights reserved. * $COPYRIGHT$ * @@ -173,6 +173,8 @@ const char *orte_attr_key_to_str(orte_attribute_key_t key) case ORTE_NODE_USERNAME: return "NODE-USERNAME"; + case ORTE_NODE_PORT: + return "NODE-PORT"; case ORTE_NODE_LAUNCH_ID: return "NODE-LAUNCHID"; case ORTE_NODE_HOSTID: diff --git a/orte/util/attr.h b/orte/util/attr.h index ca97c1457f..104961ce69 100644 --- a/orte/util/attr.h +++ b/orte/util/attr.h @@ -1,5 +1,7 @@ /* * Copyright (c) 2014-2016 Intel, Inc. All rights reserved + * Copyright (c) 2016 Research Organization for Information Science + * and Technology (RIST). All rights reserved. * $COPYRIGHT$ * * Additional copyrights may follow @@ -68,6 +70,7 @@ typedef uint8_t orte_node_flags_t; // we need to know the id of our "host" to help any procs on us to determine locality #define ORTE_NODE_ALIAS (ORTE_NODE_START_KEY + 4) // comma-separate list of alternate names for the node #define ORTE_NODE_SERIAL_NUMBER (ORTE_NODE_START_KEY + 5) // string - serial number: used if node is a coprocessor +#define ORTE_NODE_PORT (ORTE_NODE_START_KEY + 6) // int32 - Alternate port to be passed to plm #define ORTE_NODE_MAX_KEY 200