2004-01-19 08:41:06 +03:00
|
|
|
//
|
2005-11-05 22:57:48 +03:00
|
|
|
// Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
// University Research and Technology
|
|
|
|
// Corporation. All rights reserved.
|
|
|
|
// Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
// of Tennessee Research Foundation. All rights
|
|
|
|
// reserved.
|
2004-11-28 23:09:25 +03:00
|
|
|
// Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
// University of Stuttgart. All rights reserved.
|
2005-03-24 15:43:37 +03:00
|
|
|
// Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
// All rights reserved.
|
2004-11-22 04:38:40 +03:00
|
|
|
// $COPYRIGHT$
|
|
|
|
//
|
|
|
|
// Additional copyrights may follow
|
|
|
|
//
|
2004-01-19 08:41:06 +03:00
|
|
|
// $HEADER$
|
|
|
|
//
|
2004-01-19 20:43:50 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#include "ompi_config.h"
|
2004-01-19 08:41:06 +03:00
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <string>
|
|
|
|
#include <utility>
|
2004-01-30 01:10:58 +03:00
|
|
|
#include <list>
|
2004-01-19 08:41:06 +03:00
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <ctype.h>
|
2004-10-26 19:47:15 +04:00
|
|
|
#if HAVE_UNISTD_H
|
2004-01-19 08:41:06 +03:00
|
|
|
#include <unistd.h>
|
2004-10-26 19:47:15 +04:00
|
|
|
#endif
|
|
|
|
#if HAVE_NETDB_H
|
2004-01-19 08:41:06 +03:00
|
|
|
#include <netdb.h>
|
2004-10-26 19:47:15 +04:00
|
|
|
#endif
|
|
|
|
#if HAVE_SYS_PARAM_H
|
2004-01-19 08:41:06 +03:00
|
|
|
#include <sys/param.h>
|
2004-10-26 19:47:15 +04:00
|
|
|
#endif
|
2004-03-25 22:19:16 +03:00
|
|
|
#include <errno.h>
|
2004-01-19 08:41:06 +03:00
|
|
|
|
2005-07-03 20:06:07 +04:00
|
|
|
#include "opal/class/opal_object.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "runtime/runtime.h"
|
2005-07-04 03:31:27 +04:00
|
|
|
#include "opal/util/output.h"
|
2005-07-04 04:13:44 +04:00
|
|
|
#include "opal/util/cmd_line.h"
|
|
|
|
#include "opal/util/argv.h"
|
2005-07-04 06:38:44 +04:00
|
|
|
#include "opal/util/show_help.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "communicator/communicator.h"
|
|
|
|
#include "mca/base/base.h"
|
2004-06-07 19:33:53 +04:00
|
|
|
#include "tools/ompi_info/ompi_info.h"
|
2005-07-04 02:45:48 +04:00
|
|
|
#include "opal/threads/mutex.h"
|
2004-01-19 20:43:50 +03:00
|
|
|
|
2004-01-19 08:41:06 +03:00
|
|
|
using namespace std;
|
2004-06-07 19:33:53 +04:00
|
|
|
using namespace ompi_info;
|
2004-01-19 08:41:06 +03:00
|
|
|
|
|
|
|
|
2004-01-19 20:43:50 +03:00
|
|
|
//
|
|
|
|
// Public variables
|
|
|
|
//
|
2004-01-19 08:41:06 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
bool ompi_info::pretty = true;
|
2005-07-04 04:13:44 +04:00
|
|
|
opal_cmd_line_t *ompi_info::cmd_line = NULL;
|
2004-01-19 08:41:06 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
const string ompi_info::type_all = "all";
|
|
|
|
const string ompi_info::type_ompi = "ompi";
|
Major simplifications to component versioning:
- After long discussions and ruminations on how we run components in
LAM/MPI, made the decision that, by default, all components included
in Open MPI will use the version number of their parent project
(i.e., OMPI or ORTE). They are certaint free to use a different
number, but this simplification makes the common cases easy:
- components are only released when the parent project is released
- it is easy (trivial?) to distinguish which version component goes
with with version of the parent project
- removed all autogen/configure code for templating the version .h
file in components
- made all ORTE components use ORTE_*_VERSION for version numbers
- made all OMPI components use OMPI_*_VERSION for version numbers
- removed all VERSION files from components
- configure now displays OPAL, ORTE, and OMPI version numbers
- ditto for ompi_info
- right now, faking it -- OPAL and ORTE and OMPI will always have the
same version number (i.e., they all come from the same top-level
VERSION file). But this paves the way for the Great Configure
Reorganization, where, among other things, each project will have
its own version number.
So all in all, we went from a boatload of version numbers to
[effectively] three. That's pretty good. :-)
This commit was SVN r6344.
2005-07-05 00:12:36 +04:00
|
|
|
const string ompi_info::type_orte = "orte";
|
|
|
|
const string ompi_info::type_opal = "opal";
|
2004-06-07 19:33:53 +04:00
|
|
|
const string ompi_info::type_base = "base";
|
|
|
|
ompi_info::type_vector_t ompi_info::mca_types;
|
2004-01-19 08:41:06 +03:00
|
|
|
|
2004-09-05 20:05:37 +04:00
|
|
|
|
2004-01-19 20:43:50 +03:00
|
|
|
int main(int argc, char *argv[])
|
2004-01-19 08:41:06 +03:00
|
|
|
{
|
2004-02-06 07:20:13 +03:00
|
|
|
int ret = 0;
|
2005-06-17 05:06:36 +04:00
|
|
|
bool want_help = false;
|
|
|
|
bool cmd_error = false;
|
2004-01-19 08:41:06 +03:00
|
|
|
bool acted = false;
|
|
|
|
bool want_all = false;
|
2005-08-08 20:42:28 +04:00
|
|
|
char **app_env = NULL, **global_env = NULL;
|
While waiting for fortran compiles...
Fixes for orterun in handling different MCA params for different
processes (reviewed by Brian):
- By design, if you run the following:
mpirun --mca foo aaa --mca foo bbb a.out
a.out will get a single MCA param for foo with value "aaa,bbb".
- However, if you specify multiple apps with different values for the
same MCA param, you should expect to get the different values for
each app. For example:
mpirun --mca foo aaa a.out : --mca foo bbb b.out
Should yield a.out with a "foo" param with value "aaa" and b.out
with a "foo" param with a value "bbb".
- This did not work -- both a.out and b.out would get a "foo" with
"aaa,bbb".
- This commit fixes this behavior -- now a.out will get aaa and b.out
will get bbb.
- Additionally, if you mix --mca and and app file, you can have
"global" params and per-line-in-the-appfile params. For example:
mpirun --mca foo zzzz --app appfile
where "appfile" contains:
-np 1 --mca bar aaa a.out
-np 1 --mca bar bbb b.out
In this case, a.out will get foo=zzzz and bar=aaa, and b.out will
get foo=zzzz and bar=bbb.
Spiffy.
Ok, fortran build is done... back to Fortran... sigh...
This commit was SVN r5710.
2005-05-13 18:36:36 +04:00
|
|
|
int i, len;
|
2004-01-19 08:41:06 +03:00
|
|
|
|
|
|
|
// Initialize the argv parsing handle
|
|
|
|
|
2005-07-04 04:13:44 +04:00
|
|
|
cmd_line = OBJ_NEW(opal_cmd_line_t);
|
2004-01-19 08:41:06 +03:00
|
|
|
if (NULL == cmd_line) {
|
|
|
|
ret = errno;
|
2005-07-04 06:38:44 +04:00
|
|
|
opal_show_help("help-ompi_info.txt", "lib-call-fail", true,
|
2005-07-04 04:13:44 +04:00
|
|
|
"opal_cmd_line_create", __FILE__, __LINE__, NULL);
|
2004-01-19 08:41:06 +03:00
|
|
|
exit(ret);
|
|
|
|
}
|
2005-03-14 23:57:21 +03:00
|
|
|
|
2005-07-04 04:13:44 +04:00
|
|
|
opal_cmd_line_make_opt(cmd_line, 'v', "version", 2,
|
2005-02-10 07:37:13 +03:00
|
|
|
"Show version of Open MPI or a component");
|
2005-07-04 04:13:44 +04:00
|
|
|
opal_cmd_line_make_opt(cmd_line, '\0', "param", 2,
|
2005-02-10 07:37:13 +03:00
|
|
|
"Show MCA parameters");
|
2005-07-04 04:13:44 +04:00
|
|
|
opal_cmd_line_make_opt(cmd_line, '\0', "internal", 0,
|
2005-06-17 05:06:36 +04:00
|
|
|
"Show internal MCA parameters (not meant to be modified by users)");
|
2005-07-04 04:13:44 +04:00
|
|
|
opal_cmd_line_make_opt(cmd_line, '\0', "path", 1,
|
2005-02-10 07:37:13 +03:00
|
|
|
"Show paths that Open MPI was configured with");
|
2005-07-04 04:13:44 +04:00
|
|
|
opal_cmd_line_make_opt(cmd_line, '\0', "arch", 0,
|
2005-02-10 07:37:13 +03:00
|
|
|
"Show architecture Open MPI was compiled on");
|
2005-07-04 04:13:44 +04:00
|
|
|
opal_cmd_line_make_opt(cmd_line, 'c', "config", 0,
|
2005-02-10 07:37:13 +03:00
|
|
|
"Show configuration options");
|
2005-07-04 04:13:44 +04:00
|
|
|
opal_cmd_line_make_opt(cmd_line, 'h', "help", 0,
|
2005-02-10 07:37:13 +03:00
|
|
|
"Show this help message");
|
2005-07-04 04:13:44 +04:00
|
|
|
opal_cmd_line_make_opt(cmd_line, '\0', "pretty", 0,
|
2005-02-10 07:37:13 +03:00
|
|
|
"Display output in 'prettyprint' format (default)");
|
2005-07-04 04:13:44 +04:00
|
|
|
opal_cmd_line_make_opt(cmd_line, '\0', "parsable", 0,
|
2005-02-10 07:37:13 +03:00
|
|
|
"Display output in parsable format");
|
2005-07-04 04:13:44 +04:00
|
|
|
opal_cmd_line_make_opt(cmd_line, '\0', "parseable", 0,
|
2005-06-17 05:06:36 +04:00
|
|
|
"Synonym for --parsable");
|
2005-07-04 04:13:44 +04:00
|
|
|
opal_cmd_line_make_opt(cmd_line, '\0', "hostname", 0,
|
2005-02-10 07:37:13 +03:00
|
|
|
"Show the hostname that Open MPI was configured "
|
|
|
|
"and built on");
|
2005-07-04 04:13:44 +04:00
|
|
|
opal_cmd_line_make_opt(cmd_line, 'a', "all", 0,
|
2005-02-10 07:37:13 +03:00
|
|
|
"Show all configuration options and MCA parameters");
|
2004-01-19 08:41:06 +03:00
|
|
|
|
2004-02-06 07:20:13 +03:00
|
|
|
// Call some useless functions in order to guarantee to link in some
|
|
|
|
// global variables. Only check the return value so that the
|
|
|
|
// compiler doesn't optimize out the useless function.
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
if (OMPI_SUCCESS != ompi_comm_link_function()) {
|
2004-02-06 07:20:13 +03:00
|
|
|
// Stop .. or I'll say stop again!
|
|
|
|
++ret;
|
|
|
|
} else {
|
|
|
|
--ret;
|
|
|
|
}
|
|
|
|
|
2005-03-22 03:31:17 +03:00
|
|
|
// set our threading level
|
2005-07-04 02:45:48 +04:00
|
|
|
opal_set_using_threads(false);
|
2005-03-22 03:31:17 +03:00
|
|
|
|
2004-01-19 20:43:50 +03:00
|
|
|
// Get MCA parameters, if any */
|
2004-01-19 08:41:06 +03:00
|
|
|
|
2004-01-19 20:43:50 +03:00
|
|
|
mca_base_open();
|
|
|
|
mca_base_cmd_line_setup(cmd_line);
|
2004-01-19 08:41:06 +03:00
|
|
|
|
|
|
|
// Do the parsing
|
|
|
|
|
2005-07-04 04:13:44 +04:00
|
|
|
if (OMPI_SUCCESS != opal_cmd_line_parse(cmd_line, false, argc, argv)) {
|
2005-06-17 05:06:36 +04:00
|
|
|
cmd_error = true;
|
|
|
|
}
|
2005-07-04 04:13:44 +04:00
|
|
|
if (!cmd_error && opal_cmd_line_is_taken(cmd_line, "help") ||
|
|
|
|
opal_cmd_line_is_taken(cmd_line, "h")) {
|
2005-06-17 05:06:36 +04:00
|
|
|
want_help = true;
|
|
|
|
}
|
|
|
|
if (cmd_error || want_help) {
|
2005-07-04 04:13:44 +04:00
|
|
|
char *usage = opal_cmd_line_get_usage_msg(cmd_line);
|
2005-07-04 06:38:44 +04:00
|
|
|
opal_show_help("help-ompi_info.txt", "usage", true, usage);
|
2005-06-17 05:06:36 +04:00
|
|
|
free(usage);
|
|
|
|
exit(cmd_error ? 1 : 0);
|
2004-01-19 08:41:06 +03:00
|
|
|
}
|
2004-01-19 20:43:50 +03:00
|
|
|
|
2005-08-08 20:42:28 +04:00
|
|
|
mca_base_cmd_line_process_args(cmd_line, &app_env, &global_env);
|
While waiting for fortran compiles...
Fixes for orterun in handling different MCA params for different
processes (reviewed by Brian):
- By design, if you run the following:
mpirun --mca foo aaa --mca foo bbb a.out
a.out will get a single MCA param for foo with value "aaa,bbb".
- However, if you specify multiple apps with different values for the
same MCA param, you should expect to get the different values for
each app. For example:
mpirun --mca foo aaa a.out : --mca foo bbb b.out
Should yield a.out with a "foo" param with value "aaa" and b.out
with a "foo" param with a value "bbb".
- This did not work -- both a.out and b.out would get a "foo" with
"aaa,bbb".
- This commit fixes this behavior -- now a.out will get aaa and b.out
will get bbb.
- Additionally, if you mix --mca and and app file, you can have
"global" params and per-line-in-the-appfile params. For example:
mpirun --mca foo zzzz --app appfile
where "appfile" contains:
-np 1 --mca bar aaa a.out
-np 1 --mca bar bbb b.out
In this case, a.out will get foo=zzzz and bar=aaa, and b.out will
get foo=zzzz and bar=bbb.
Spiffy.
Ok, fortran build is done... back to Fortran... sigh...
This commit was SVN r5710.
2005-05-13 18:36:36 +04:00
|
|
|
|
|
|
|
// putenv() all the stuff that we got back from env (in case the
|
|
|
|
// user specified some --mca params on the command line). This
|
|
|
|
// creates a memory leak, but that's unfortunately how putenv()
|
|
|
|
// works. :-(
|
|
|
|
|
2005-08-08 20:42:28 +04:00
|
|
|
len = opal_argv_count(app_env);
|
While waiting for fortran compiles...
Fixes for orterun in handling different MCA params for different
processes (reviewed by Brian):
- By design, if you run the following:
mpirun --mca foo aaa --mca foo bbb a.out
a.out will get a single MCA param for foo with value "aaa,bbb".
- However, if you specify multiple apps with different values for the
same MCA param, you should expect to get the different values for
each app. For example:
mpirun --mca foo aaa a.out : --mca foo bbb b.out
Should yield a.out with a "foo" param with value "aaa" and b.out
with a "foo" param with a value "bbb".
- This did not work -- both a.out and b.out would get a "foo" with
"aaa,bbb".
- This commit fixes this behavior -- now a.out will get aaa and b.out
will get bbb.
- Additionally, if you mix --mca and and app file, you can have
"global" params and per-line-in-the-appfile params. For example:
mpirun --mca foo zzzz --app appfile
where "appfile" contains:
-np 1 --mca bar aaa a.out
-np 1 --mca bar bbb b.out
In this case, a.out will get foo=zzzz and bar=aaa, and b.out will
get foo=zzzz and bar=bbb.
Spiffy.
Ok, fortran build is done... back to Fortran... sigh...
This commit was SVN r5710.
2005-05-13 18:36:36 +04:00
|
|
|
for (i = 0; i < len; ++i) {
|
2005-08-08 20:42:28 +04:00
|
|
|
putenv(app_env[i]);
|
|
|
|
}
|
|
|
|
len = opal_argv_count(global_env);
|
|
|
|
for (i = 0; i < len; ++i) {
|
|
|
|
putenv(global_env[i]);
|
While waiting for fortran compiles...
Fixes for orterun in handling different MCA params for different
processes (reviewed by Brian):
- By design, if you run the following:
mpirun --mca foo aaa --mca foo bbb a.out
a.out will get a single MCA param for foo with value "aaa,bbb".
- However, if you specify multiple apps with different values for the
same MCA param, you should expect to get the different values for
each app. For example:
mpirun --mca foo aaa a.out : --mca foo bbb b.out
Should yield a.out with a "foo" param with value "aaa" and b.out
with a "foo" param with a value "bbb".
- This did not work -- both a.out and b.out would get a "foo" with
"aaa,bbb".
- This commit fixes this behavior -- now a.out will get aaa and b.out
will get bbb.
- Additionally, if you mix --mca and and app file, you can have
"global" params and per-line-in-the-appfile params. For example:
mpirun --mca foo zzzz --app appfile
where "appfile" contains:
-np 1 --mca bar aaa a.out
-np 1 --mca bar bbb b.out
In this case, a.out will get foo=zzzz and bar=aaa, and b.out will
get foo=zzzz and bar=bbb.
Spiffy.
Ok, fortran build is done... back to Fortran... sigh...
This commit was SVN r5710.
2005-05-13 18:36:36 +04:00
|
|
|
}
|
2004-01-19 20:43:50 +03:00
|
|
|
|
2005-08-02 02:38:17 +04:00
|
|
|
ompi_info::mca_types.push_back("mca");
|
2004-10-15 14:52:08 +04:00
|
|
|
ompi_info::mca_types.push_back("mpi");
|
2005-08-02 02:38:17 +04:00
|
|
|
ompi_info::mca_types.push_back("orte");
|
2004-01-30 01:32:45 +03:00
|
|
|
|
2005-08-13 20:07:37 +04:00
|
|
|
ompi_info::mca_types.push_back("memory");
|
|
|
|
ompi_info::mca_types.push_back("paffinity");
|
2005-08-26 14:56:39 +04:00
|
|
|
ompi_info::mca_types.push_back("maffinity");
|
2005-08-21 23:14:49 +04:00
|
|
|
ompi_info::mca_types.push_back("timer");
|
2005-08-13 20:07:37 +04:00
|
|
|
|
2004-07-11 08:35:31 +04:00
|
|
|
ompi_info::mca_types.push_back("allocator");
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_info::mca_types.push_back("coll");
|
|
|
|
ompi_info::mca_types.push_back("io");
|
2004-07-11 08:35:31 +04:00
|
|
|
ompi_info::mca_types.push_back("mpool");
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_info::mca_types.push_back("pml");
|
|
|
|
ompi_info::mca_types.push_back("ptl");
|
2005-07-14 22:05:30 +04:00
|
|
|
ompi_info::mca_types.push_back("btl");
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_info::mca_types.push_back("topo");
|
2004-01-19 08:41:06 +03:00
|
|
|
|
2005-03-14 23:57:21 +03:00
|
|
|
ompi_info::mca_types.push_back("errmgr");
|
|
|
|
ompi_info::mca_types.push_back("gpr");
|
|
|
|
ompi_info::mca_types.push_back("iof");
|
|
|
|
ompi_info::mca_types.push_back("ns");
|
|
|
|
ompi_info::mca_types.push_back("oob");
|
|
|
|
ompi_info::mca_types.push_back("ras");
|
|
|
|
ompi_info::mca_types.push_back("rds");
|
|
|
|
ompi_info::mca_types.push_back("rmaps");
|
|
|
|
ompi_info::mca_types.push_back("rmgr");
|
|
|
|
ompi_info::mca_types.push_back("rml");
|
|
|
|
ompi_info::mca_types.push_back("pls");
|
2005-07-28 20:16:13 +04:00
|
|
|
ompi_info::mca_types.push_back("sds");
|
2005-03-14 23:57:21 +03:00
|
|
|
ompi_info::mca_types.push_back("soh");
|
|
|
|
|
2004-01-19 08:41:06 +03:00
|
|
|
// Execute the desired action(s)
|
|
|
|
|
2005-07-04 04:13:44 +04:00
|
|
|
if (opal_cmd_line_is_taken(cmd_line, "pretty")) {
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_info::pretty = true;
|
2005-07-04 04:13:44 +04:00
|
|
|
} else if (opal_cmd_line_is_taken(cmd_line, "parsable")) {
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_info::pretty = false;
|
2004-01-19 20:43:50 +03:00
|
|
|
}
|
2004-01-19 08:41:06 +03:00
|
|
|
|
2005-07-04 04:13:44 +04:00
|
|
|
want_all = opal_cmd_line_is_taken(cmd_line, "all");
|
|
|
|
if (want_all || opal_cmd_line_is_taken(cmd_line, "version")) {
|
2004-01-19 08:41:06 +03:00
|
|
|
do_version(want_all, cmd_line);
|
|
|
|
acted = true;
|
|
|
|
}
|
2005-07-04 04:13:44 +04:00
|
|
|
if (want_all || opal_cmd_line_is_taken(cmd_line, "path")) {
|
2004-01-19 08:41:06 +03:00
|
|
|
do_path(want_all, cmd_line);
|
|
|
|
acted = true;
|
|
|
|
}
|
2005-07-04 04:13:44 +04:00
|
|
|
if (want_all || opal_cmd_line_is_taken(cmd_line, "arch")) {
|
2004-01-19 08:41:06 +03:00
|
|
|
do_arch(cmd_line);
|
|
|
|
acted = true;
|
|
|
|
}
|
2005-07-04 04:13:44 +04:00
|
|
|
if (want_all || opal_cmd_line_is_taken(cmd_line, "config")) {
|
2004-01-19 08:41:06 +03:00
|
|
|
do_config(true);
|
|
|
|
acted = true;
|
|
|
|
}
|
2005-07-04 04:13:44 +04:00
|
|
|
if (want_all || opal_cmd_line_is_taken(cmd_line, "param")) {
|
|
|
|
do_params(want_all, opal_cmd_line_is_taken(cmd_line, "internal"));
|
2004-01-19 08:41:06 +03:00
|
|
|
acted = true;
|
|
|
|
}
|
|
|
|
|
2004-01-19 20:43:50 +03:00
|
|
|
// If no command line args are specified, show default set
|
2004-01-19 08:41:06 +03:00
|
|
|
|
|
|
|
if (!acted) {
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_info::show_ompi_version(ver_full);
|
|
|
|
ompi_info::show_path(path_prefix, OMPI_PREFIX);
|
|
|
|
ompi_info::do_arch(cmd_line);
|
|
|
|
ompi_info::do_config(false);
|
2004-07-14 00:25:12 +04:00
|
|
|
ompi_info::open_components();
|
2005-02-14 19:58:42 +03:00
|
|
|
for (ompi_info::type_vector_t::size_type i = 0;
|
|
|
|
i < mca_types.size(); ++i) {
|
|
|
|
if ("mpi" != mca_types[i]) {
|
|
|
|
ompi_info::show_component_version(mca_types[i], component_all,
|
|
|
|
ver_full, type_all);
|
|
|
|
}
|
|
|
|
}
|
2004-01-19 08:41:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// All done
|
2004-01-19 20:43:50 +03:00
|
|
|
|
2005-08-08 20:42:28 +04:00
|
|
|
if (NULL != app_env) {
|
|
|
|
opal_argv_free(app_env);
|
|
|
|
}
|
|
|
|
if (NULL != global_env) {
|
|
|
|
opal_argv_free(global_env);
|
While waiting for fortran compiles...
Fixes for orterun in handling different MCA params for different
processes (reviewed by Brian):
- By design, if you run the following:
mpirun --mca foo aaa --mca foo bbb a.out
a.out will get a single MCA param for foo with value "aaa,bbb".
- However, if you specify multiple apps with different values for the
same MCA param, you should expect to get the different values for
each app. For example:
mpirun --mca foo aaa a.out : --mca foo bbb b.out
Should yield a.out with a "foo" param with value "aaa" and b.out
with a "foo" param with a value "bbb".
- This did not work -- both a.out and b.out would get a "foo" with
"aaa,bbb".
- This commit fixes this behavior -- now a.out will get aaa and b.out
will get bbb.
- Additionally, if you mix --mca and and app file, you can have
"global" params and per-line-in-the-appfile params. For example:
mpirun --mca foo zzzz --app appfile
where "appfile" contains:
-np 1 --mca bar aaa a.out
-np 1 --mca bar bbb b.out
In this case, a.out will get foo=zzzz and bar=aaa, and b.out will
get foo=zzzz and bar=bbb.
Spiffy.
Ok, fortran build is done... back to Fortran... sigh...
This commit was SVN r5710.
2005-05-13 18:36:36 +04:00
|
|
|
}
|
2004-07-14 00:25:12 +04:00
|
|
|
ompi_info::close_components();
|
2004-08-26 11:56:45 +04:00
|
|
|
OBJ_RELEASE(cmd_line);
|
2005-04-20 17:16:32 +04:00
|
|
|
mca_base_close();
|
2005-07-03 20:06:07 +04:00
|
|
|
opal_class_finalize();
|
2004-01-19 08:41:06 +03:00
|
|
|
return 0;
|
|
|
|
}
|