Skip to content

Commit 8358cf0

Browse files
committed
output-filename: cleanup obsolete code.
Since output-filename has been moved to a per-job attribute, remove the orte_output_filename global variable, and stop passing this option to orted. Signed-off-by: Gilles Gouaillardet <[email protected]> (back-ported from commit dd24c74)
1 parent 4ccd75c commit 8358cf0

File tree

6 files changed

+10
-48
lines changed

6 files changed

+10
-48
lines changed

orte/mca/iof/base/iof_base_frame.c

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
1414
* Copyright (c) 2015-2017 Intel, Inc. All rights reserved.
1515
* Copyright (c) 2015-2018 Research Organization for Information Science
16-
* and Technology (RIST). All rights reserved.
16+
* and Technology (RIST). All rights reserved.
1717
* Copyright (c) 2017 IBM Corporation. All rights reserved.
1818
* Copyright (c) 2017 Mellanox Technologies. All rights reserved.
1919
* $COPYRIGHT$
@@ -111,29 +111,6 @@ static int orte_iof_base_open(mca_base_open_flag_t flags)
111111
{
112112
int rc, xmlfd;
113113

114-
/* did the user request we print output to files? */
115-
if (NULL != orte_output_filename) {
116-
/* we will setup the files themselves as needed in the iof
117-
* module. For now, let's see if the filename contains a
118-
* path, or just a name
119-
*/
120-
char *path;
121-
path = opal_dirname(orte_output_filename);
122-
if (NULL == path) {
123-
return ORTE_ERR_OUT_OF_RESOURCE;
124-
}
125-
if (0 != strcmp(path, orte_output_filename)) {
126-
/* there is a path in this name - ensure that the directory
127-
* exists, and create it if not
128-
*/
129-
if (ORTE_SUCCESS != (rc = opal_os_dirpath_create(path, S_IRWXU))) {
130-
free(path);
131-
return rc;
132-
}
133-
}
134-
free(path);
135-
}
136-
137114
/* daemons do not need to do this as they do not write out stdout/err */
138115
if (!ORTE_PROC_IS_DAEMON) {
139116
if (orte_xml_output) {

orte/mca/plm/base/plm_base_launch_support.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* et Automatique. All rights reserved.
1515
* Copyright (c) 2011-2012 Los Alamos National Security, LLC.
1616
* Copyright (c) 2013-2018 Intel, Inc. All rights reserved.
17-
* Copyright (c) 2014-2017 Research Organization for Information Science
18-
* and Technology (RIST). All rights reserved.
17+
* Copyright (c) 2014-2018 Research Organization for Information Science
18+
* and Technology (RIST). All rights reserved.
1919
* Copyright (c) 2016 IBM Corporation. All rights reserved.
2020
* $COPYRIGHT$
2121
*
@@ -1603,13 +1603,6 @@ int orte_plm_base_orted_append_basic_args(int *argc, char ***argv,
16031603
free(param);
16041604
}
16051605

1606-
/* if output-filename was specified, pass that along */
1607-
if (NULL != orte_output_filename) {
1608-
opal_argv_append(argc, argv, "-"OPAL_MCA_CMD_LINE_ID);
1609-
opal_argv_append(argc, argv, "orte_output_filename");
1610-
opal_argv_append(argc, argv, orte_output_filename);
1611-
}
1612-
16131606
/* if --xterm was specified, pass that along */
16141607
if (NULL != orte_xterm) {
16151608
opal_argv_append(argc, argv, "-"OPAL_MCA_CMD_LINE_ID);

orte/orted/orted_submit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ int orte_submit_job(char *argv[], int *index,
818818
* the directory where prun was given as that is what
819819
* the user will have seen */
820820
if (!opal_path_is_absolute(orte_cmd_options.output_filename)) {
821-
char cwd[OPAL_PATH_MAX], path;
821+
char cwd[OPAL_PATH_MAX], *path;
822822
getcwd(cwd, sizeof(cwd));
823823
path = opal_os_path(false, cwd, orte_cmd_options.output_filename, NULL);
824824
orte_set_attribute(&jdata->attributes, ORTE_JOB_OUTPUT_TO_FILE, ORTE_ATTR_GLOBAL, path, OPAL_STRING);

orte/runtime/orte_globals.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* Copyright (c) 2011-2013 Los Alamos National Security, LLC.
1515
* All rights reserved.
1616
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
17-
* Copyright (c) 2014-2015 Research Organization for Information Science
18-
* and Technology (RIST). All rights reserved.
17+
* Copyright (c) 2014-2018 Research Organization for Information Science
18+
* and Technology (RIST). All rights reserved.
1919
* Copyright (c) 2017 IBM Corporation. All rights reserved.
2020
* $COPYRIGHT$
2121
*
@@ -150,7 +150,6 @@ orte_vpid_t orte_total_procs = 0;
150150
/* IOF controls */
151151
bool orte_tag_output = false;
152152
bool orte_timestamp_output = false;
153-
char *orte_output_filename = NULL;
154153
/* generate new xterm windows to display output from specified ranks */
155154
char *orte_xterm = NULL;
156155

orte/runtime/orte_globals.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* All rights reserved.
1616
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
1717
* Copyright (c) 2017 IBM Corporation. All rights reserved.
18+
* Copyright (c) 2017-2018 Research Organization for Information Science
19+
* and Technology (RIST). All rights reserved.
1820
* $COPYRIGHT$
1921
*
2022
* Additional copyrights may follow
@@ -529,7 +531,6 @@ ORTE_DECLSPEC extern orte_vpid_t orte_total_procs;
529531
/* IOF controls */
530532
ORTE_DECLSPEC extern bool orte_tag_output;
531533
ORTE_DECLSPEC extern bool orte_timestamp_output;
532-
ORTE_DECLSPEC extern char *orte_output_filename;
533534
/* generate new xterm windows to display output from specified ranks */
534535
ORTE_DECLSPEC extern char *orte_xterm;
535536

orte/runtime/orte_mca_params.c

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* Copyright (c) 2012-2013 Los Alamos National Security, LLC.
1515
* All rights reserved
1616
* Copyright (c) 2013-2017 Intel, Inc. All rights reserved.
17-
* Copyright (c) 2014 Research Organization for Information Science
18-
* and Technology (RIST). All rights reserved.
17+
* Copyright (c) 2014-2018 Research Organization for Information Science
18+
* and Technology (RIST). All rights reserved.
1919
* Copyright (c) 2017 IBM Corporation. All rights reserved.
2020
* $COPYRIGHT$
2121
*
@@ -496,14 +496,6 @@ int orte_register_params(void)
496496
OPAL_INFO_LVL_9, MCA_BASE_VAR_SCOPE_READONLY,
497497
&orte_timestamp_output);
498498

499-
/* redirect output into files */
500-
orte_output_filename = NULL;
501-
(void) mca_base_var_register ("orte", "orte", NULL, "output_filename",
502-
"Redirect output from application processes into filename.rank [default: NULL]",
503-
MCA_BASE_VAR_TYPE_STRING, NULL, 0, 0,
504-
OPAL_INFO_LVL_9, MCA_BASE_VAR_SCOPE_READONLY,
505-
&orte_output_filename);
506-
507499
orte_show_resolved_nodenames = false;
508500
(void) mca_base_var_register ("orte", "orte", NULL, "show_resolved_nodenames",
509501
"Display any node names that are resolved to a different name (default: false)",

0 commit comments

Comments
 (0)