2004-01-19 20:43:50 +03:00
|
|
|
//
|
2004-11-22 04:38:40 +03:00
|
|
|
// Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
|
|
// All rights reserved.
|
|
|
|
// Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
|
|
// 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.
|
2004-11-22 04:38:40 +03:00
|
|
|
// $COPYRIGHT$
|
|
|
|
//
|
|
|
|
// Additional copyrights may follow
|
|
|
|
//
|
2004-01-19 20:43:50 +03:00
|
|
|
// $HEADER$
|
|
|
|
//
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#include "ompi_config.h"
|
2004-01-19 20:43:50 +03:00
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <string>
|
2004-01-30 01:10:58 +03:00
|
|
|
#include <map>
|
2004-01-19 20:43:50 +03:00
|
|
|
|
2004-10-26 19:47:15 +04:00
|
|
|
#if HAVE_UNISTD_H
|
2004-01-19 20:43:50 +03:00
|
|
|
#include <unistd.h>
|
2004-10-26 19:47:15 +04:00
|
|
|
#endif
|
|
|
|
#if HAVE_SYS_PARAM_H
|
2004-01-19 20:43:50 +03:00
|
|
|
#include <sys/param.h>
|
2004-10-26 19:47:15 +04:00
|
|
|
#endif
|
2004-01-19 20:43:50 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
#include "class/ompi_value_array.h"
|
2004-08-31 13:49:56 +04:00
|
|
|
#include "util/printf.h"
|
2004-03-17 21:45:16 +03:00
|
|
|
#include "mca/base/mca_base_param.h"
|
2004-07-14 00:25:12 +04:00
|
|
|
#include "mca/base/mca_base_param_internal.h"
|
2004-06-07 19:33:53 +04:00
|
|
|
#include "tools/ompi_info/ompi_info.h"
|
2004-01-19 20:43:50 +03:00
|
|
|
|
|
|
|
using namespace std;
|
2004-06-07 19:33:53 +04:00
|
|
|
using namespace ompi_info;
|
2004-01-19 20:43:50 +03:00
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Public variables
|
|
|
|
//
|
|
|
|
|
2004-07-14 00:25:12 +04:00
|
|
|
string ompi_info::component_all = "all";
|
2004-06-07 19:33:53 +04:00
|
|
|
string ompi_info::param_all = "all";
|
2004-01-19 20:43:50 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
string ompi_info::path_prefix = "prefix";
|
|
|
|
string ompi_info::path_bindir = "bindir";
|
|
|
|
string ompi_info::path_libdir = "libdir";
|
|
|
|
string ompi_info::path_incdir = "incdir";
|
|
|
|
string ompi_info::path_pkglibdir = "pkglibdir";
|
|
|
|
string ompi_info::path_sysconfdir = "sysconfdir";
|
2004-01-19 20:43:50 +03:00
|
|
|
|
2004-01-30 01:10:58 +03:00
|
|
|
//
|
|
|
|
// External variables
|
|
|
|
//
|
2004-03-17 21:45:16 +03:00
|
|
|
// This exists in mca/base/mca_base_param.c. It's not extern'ed
|
2004-01-30 01:10:58 +03:00
|
|
|
// in mca_base_param.h so that no one else will use it.
|
|
|
|
//
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
extern ompi_value_array_t mca_base_params;
|
2004-01-19 20:43:50 +03:00
|
|
|
|
2004-01-30 01:10:58 +03:00
|
|
|
|
2005-02-10 07:37:13 +03:00
|
|
|
void ompi_info::do_params(bool want_all, bool want_internal)
|
2004-01-19 20:43:50 +03:00
|
|
|
{
|
|
|
|
unsigned int count;
|
2004-07-14 00:25:12 +04:00
|
|
|
string type, component;
|
2004-08-09 18:32:09 +04:00
|
|
|
bool found;
|
2004-06-07 19:33:53 +04:00
|
|
|
ompi_info::type_vector_t::size_type i;
|
2004-01-30 01:10:58 +03:00
|
|
|
|
2004-07-14 00:25:12 +04:00
|
|
|
ompi_info::open_components();
|
2004-01-30 01:10:58 +03:00
|
|
|
|
|
|
|
// See if the special param "all" was givin to --param; that
|
|
|
|
// superceeds any individual type
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
count = ompi_cmd_line_get_ninsts(cmd_line, "param");
|
2004-01-30 01:10:58 +03:00
|
|
|
for (i = 0; i < count; ++i) {
|
2004-06-07 19:33:53 +04:00
|
|
|
type = ompi_cmd_line_get_param(cmd_line, "param", i, 0);
|
2004-01-30 01:10:58 +03:00
|
|
|
if (type_all == type) {
|
|
|
|
want_all = true;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Show the params
|
2004-01-19 20:43:50 +03:00
|
|
|
|
|
|
|
if (want_all) {
|
2004-01-30 01:10:58 +03:00
|
|
|
for (i = 0; i < mca_types.size(); ++i) {
|
2005-02-10 07:37:13 +03:00
|
|
|
show_mca_params(mca_types[i], component_all, param_all, want_internal);
|
2004-01-30 01:10:58 +03:00
|
|
|
}
|
2004-01-19 20:43:50 +03:00
|
|
|
} else {
|
|
|
|
for (i = 0; i < count; ++i) {
|
2004-06-07 19:33:53 +04:00
|
|
|
type = ompi_cmd_line_get_param(cmd_line, "param", i, 0);
|
2004-07-14 00:25:12 +04:00
|
|
|
component = ompi_cmd_line_get_param(cmd_line, "param", i, 1);
|
2004-01-19 20:43:50 +03:00
|
|
|
|
|
|
|
for (found = false, i = 0; i < mca_types.size(); ++i) {
|
|
|
|
if (mca_types[i] == type) {
|
|
|
|
found = true;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!found) {
|
|
|
|
#if 0
|
2004-06-07 19:33:53 +04:00
|
|
|
show_help("ompi_info", "usage");
|
2004-01-19 20:43:50 +03:00
|
|
|
#endif
|
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
|
2005-02-10 07:37:13 +03:00
|
|
|
show_mca_params(type, component, param_all, want_internal);
|
2004-01-19 20:43:50 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-07-14 00:25:12 +04:00
|
|
|
void ompi_info::show_mca_params(const string& type, const string& component,
|
2005-02-10 07:37:13 +03:00
|
|
|
const string& param, bool want_internal)
|
2004-01-19 20:43:50 +03:00
|
|
|
{
|
2004-01-30 01:10:58 +03:00
|
|
|
size_t i, size;
|
2004-08-31 13:49:56 +04:00
|
|
|
char *value_string, empty[] = "\0";
|
2004-01-19 20:43:50 +03:00
|
|
|
string message, content;
|
2004-01-30 01:10:58 +03:00
|
|
|
mca_base_param_t *item;
|
2004-08-31 13:49:56 +04:00
|
|
|
int value_int;
|
2004-01-19 20:43:50 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
size = ompi_value_array_get_size(&mca_base_params);
|
2004-01-30 01:10:58 +03:00
|
|
|
if (0 == size) {
|
2004-01-19 20:43:50 +03:00
|
|
|
return;
|
2004-01-30 01:10:58 +03:00
|
|
|
}
|
2004-01-19 20:43:50 +03:00
|
|
|
|
|
|
|
for (i = 0; i < size; ++i) {
|
2004-06-07 19:33:53 +04:00
|
|
|
item = &(OMPI_VALUE_ARRAY_GET_ITEM(&mca_base_params, mca_base_param_t, i));
|
2005-02-10 07:37:13 +03:00
|
|
|
if (type == item->mbp_type_name &&
|
|
|
|
(!item->mbp_internal || want_internal)) {
|
2004-07-14 00:25:12 +04:00
|
|
|
if (component == component_all ||
|
|
|
|
NULL == item->mbp_component_name ||
|
|
|
|
(NULL != item->mbp_component_name &&
|
|
|
|
component == item->mbp_component_name)) {
|
2004-01-30 01:10:58 +03:00
|
|
|
if (param == param_all || param == item->mbp_param_name) {
|
2004-01-19 20:43:50 +03:00
|
|
|
|
2004-08-31 13:49:56 +04:00
|
|
|
// Make a string for the default value. Invoke a lookup
|
|
|
|
// because it may transform the string ("~/" -> "<home
|
|
|
|
// dir>/") or get the value from the
|
|
|
|
// environment, a file, etc.
|
2004-01-19 20:43:50 +03:00
|
|
|
|
2004-08-31 13:49:56 +04:00
|
|
|
if (MCA_BASE_PARAM_TYPE_STRING == item->mbp_type) {
|
|
|
|
mca_base_param_lookup_string(i, &value_string);
|
|
|
|
|
|
|
|
// Can't let the string be NULL because we assign it to a
|
|
|
|
// std::string, below
|
|
|
|
|
|
|
|
if (NULL == value_string) {
|
|
|
|
value_string = empty;
|
|
|
|
}
|
2004-01-19 20:43:50 +03:00
|
|
|
} else {
|
2004-08-31 13:49:56 +04:00
|
|
|
mca_base_param_lookup_int(i, &value_int);
|
|
|
|
asprintf(&value_string, "%d", value_int);
|
2004-01-19 20:43:50 +03:00
|
|
|
}
|
2004-08-31 13:49:56 +04:00
|
|
|
content = value_string;
|
2004-01-19 20:43:50 +03:00
|
|
|
|
|
|
|
// Build up the strings to output.
|
|
|
|
|
|
|
|
if (pretty) {
|
|
|
|
message = "MCA ";
|
2004-01-30 01:10:58 +03:00
|
|
|
message += item->mbp_type_name;
|
2004-01-19 20:43:50 +03:00
|
|
|
|
|
|
|
// Put in the real, full name (which may be different than
|
|
|
|
// the categorization).
|
|
|
|
|
2004-01-30 01:10:58 +03:00
|
|
|
content = (item->mbp_env_var_name != NULL) ?
|
2004-01-19 20:43:50 +03:00
|
|
|
"parameter \"" : "information \"";
|
2004-01-30 01:10:58 +03:00
|
|
|
content += item->mbp_full_name;
|
|
|
|
content += (item->mbp_env_var_name != NULL) ?
|
2004-02-10 02:58:37 +03:00
|
|
|
"\" (default: " : "\" (value: ";
|
2004-01-19 20:43:50 +03:00
|
|
|
|
2004-08-31 13:49:56 +04:00
|
|
|
if (strlen(value_string) == 0)
|
2004-01-19 20:43:50 +03:00
|
|
|
content += "<none>)";
|
|
|
|
else {
|
|
|
|
content += "\"";
|
2004-08-31 13:49:56 +04:00
|
|
|
content += value_string;
|
2004-01-19 20:43:50 +03:00
|
|
|
content += "\")";
|
|
|
|
}
|
|
|
|
|
|
|
|
out(message, message, content);
|
|
|
|
} else {
|
|
|
|
message = "mca:";
|
2004-01-30 01:10:58 +03:00
|
|
|
message += item->mbp_type_name;
|
2004-01-19 20:43:50 +03:00
|
|
|
message += ":";
|
|
|
|
|
2004-07-14 00:25:12 +04:00
|
|
|
if (item->mbp_component_name != NULL) {
|
|
|
|
message += item->mbp_component_name;
|
2004-01-19 20:43:50 +03:00
|
|
|
} else {
|
|
|
|
message += "base";
|
|
|
|
}
|
2004-01-30 01:10:58 +03:00
|
|
|
message += (item->mbp_env_var_name != NULL) ?
|
2004-01-19 20:43:50 +03:00
|
|
|
":param:" : ":info:";
|
|
|
|
|
|
|
|
// Put in the real, full name (which may be different than
|
|
|
|
// the categorization).
|
|
|
|
|
2004-01-30 01:10:58 +03:00
|
|
|
message += item->mbp_full_name;
|
2004-01-19 20:43:50 +03:00
|
|
|
|
2004-08-31 13:49:56 +04:00
|
|
|
content = value_string;
|
2004-01-19 20:43:50 +03:00
|
|
|
|
|
|
|
out(message, message, content);
|
|
|
|
}
|
2004-08-31 13:49:56 +04:00
|
|
|
|
|
|
|
// If we allocated the string, then free it
|
|
|
|
|
|
|
|
if (value_string != empty) {
|
|
|
|
free(value_string);
|
|
|
|
}
|
2004-01-19 20:43:50 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
void ompi_info::do_path(bool want_all, ompi_cmd_line_t *cmd_line)
|
2004-01-19 20:43:50 +03:00
|
|
|
{
|
|
|
|
int i, count;
|
|
|
|
string scope;
|
|
|
|
|
|
|
|
if (want_all) {
|
2004-06-07 19:33:53 +04:00
|
|
|
show_path(path_prefix, OMPI_PREFIX);
|
|
|
|
show_path(path_bindir, OMPI_BINDIR);
|
|
|
|
show_path(path_libdir, OMPI_LIBDIR);
|
|
|
|
show_path(path_incdir, OMPI_INCDIR);
|
|
|
|
show_path(path_pkglibdir, OMPI_PKGLIBDIR);
|
|
|
|
show_path(path_sysconfdir, OMPI_SYSCONFDIR);
|
2004-01-19 20:43:50 +03:00
|
|
|
} else {
|
2004-06-07 19:33:53 +04:00
|
|
|
count = ompi_cmd_line_get_ninsts(cmd_line, "path");
|
2004-01-19 20:43:50 +03:00
|
|
|
for (i = 0; i < count; ++i) {
|
2004-06-07 19:33:53 +04:00
|
|
|
scope = ompi_cmd_line_get_param(cmd_line, "path", i, 0);
|
2004-01-19 20:43:50 +03:00
|
|
|
|
|
|
|
if (path_prefix == scope)
|
2004-06-07 19:33:53 +04:00
|
|
|
show_path(path_prefix, OMPI_PREFIX);
|
2004-01-19 20:43:50 +03:00
|
|
|
else if (path_bindir == scope)
|
2004-06-07 19:33:53 +04:00
|
|
|
show_path(path_bindir, OMPI_BINDIR);
|
2004-01-19 20:43:50 +03:00
|
|
|
else if (path_libdir == scope)
|
2004-06-07 19:33:53 +04:00
|
|
|
show_path(path_libdir, OMPI_LIBDIR);
|
2004-01-19 20:43:50 +03:00
|
|
|
else if (path_incdir == scope)
|
2004-06-07 19:33:53 +04:00
|
|
|
show_path(path_incdir, OMPI_INCDIR);
|
2004-01-19 20:43:50 +03:00
|
|
|
else if (path_pkglibdir == scope)
|
2004-06-07 19:33:53 +04:00
|
|
|
show_path(path_pkglibdir, OMPI_PKGLIBDIR);
|
2004-01-19 20:43:50 +03:00
|
|
|
else if (path_sysconfdir == scope)
|
2004-06-07 19:33:53 +04:00
|
|
|
show_path(path_sysconfdir, OMPI_SYSCONFDIR);
|
2004-01-19 20:43:50 +03:00
|
|
|
else {
|
|
|
|
#if 0
|
2004-06-07 19:33:53 +04:00
|
|
|
show_help("ompi_info", "usage");
|
2004-01-19 20:43:50 +03:00
|
|
|
#endif
|
|
|
|
exit(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
void ompi_info::show_path(const string& type, const string& value)
|
2004-01-19 20:43:50 +03:00
|
|
|
{
|
|
|
|
string pretty(type);
|
|
|
|
pretty[0] &= toupper(pretty[0]);
|
|
|
|
|
|
|
|
out(pretty, "path:" + type, value);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
void ompi_info::do_arch(ompi_cmd_line_t *cmd_line)
|
2004-01-19 20:43:50 +03:00
|
|
|
{
|
|
|
|
string prefix;
|
|
|
|
char hostname[MAXHOSTNAMELEN];
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
if (ompi_cmd_line_is_taken(cmd_line, "hostname")) {
|
2004-01-19 20:43:50 +03:00
|
|
|
gethostname(hostname, MAXHOSTNAMELEN);
|
|
|
|
prefix = hostname + string(":");
|
|
|
|
}
|
2004-06-17 17:29:46 +04:00
|
|
|
out("Configured architecture", prefix + "config:arch", OMPI_ARCH);
|
2004-01-19 20:43:50 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// do_config
|
|
|
|
// Accepts:
|
|
|
|
// - want_all: boolean flag; TRUE -> display all options
|
|
|
|
// FALSE -> display selected options
|
|
|
|
//
|
|
|
|
// This function displays all the options with which the current
|
2004-06-07 19:33:53 +04:00
|
|
|
// installation of ompi was configured. There are many options here
|
|
|
|
// that are carried forward from OMPI-7 and are not mca parameters
|
|
|
|
// in OMPI-10. I have to dig through the invalid options and replace
|
|
|
|
// them with OMPI-10 options.
|
2004-01-19 20:43:50 +03:00
|
|
|
//
|
2004-06-07 19:33:53 +04:00
|
|
|
void ompi_info::do_config(bool want_all)
|
2004-01-19 20:43:50 +03:00
|
|
|
{
|
2004-09-11 23:13:43 +04:00
|
|
|
const string f77(OMPI_WANT_F77_BINDINGS ? string("yes (") +
|
2004-09-11 17:26:51 +04:00
|
|
|
(OMPI_HAVE_WEAK_SYMBOLS ? "all" :
|
|
|
|
(OMPI_F77_CAPS ? "caps" :
|
|
|
|
(OMPI_F77_PLAIN ? "lower case" :
|
|
|
|
(OMPI_F77_SINGLE_UNDERSCORE ? "single underscore" :
|
2004-09-11 23:13:43 +04:00
|
|
|
"double underscore")))) + string(")"): "no");
|
2004-06-07 19:33:53 +04:00
|
|
|
const string f90(OMPI_WANT_F90_BINDINGS ? "yes" : "no");
|
2004-09-11 17:40:36 +04:00
|
|
|
const string threads(OMPI_HAVE_SOLARIS_THREADS ? "solaris" :
|
|
|
|
(OMPI_HAVE_POSIX_THREADS ? "posix" : "no"));
|
2004-06-07 19:33:53 +04:00
|
|
|
const string memprofile(OMPI_ENABLE_MEM_PROFILE ? "yes" : "no");
|
|
|
|
const string memdebug(OMPI_ENABLE_MEM_DEBUG ? "yes" : "no");
|
|
|
|
const string debug(OMPI_ENABLE_DEBUG ? "yes" : "no");
|
|
|
|
const string cprofiling(OMPI_ENABLE_MPI_PROFILING ? "yes" : "no");
|
|
|
|
const string cxxprofiling(OMPI_ENABLE_MPI_PROFILING ? "yes" : "no");
|
2004-09-11 17:40:36 +04:00
|
|
|
const string f77profiling((OMPI_ENABLE_MPI_PROFILING &&
|
|
|
|
OMPI_WANT_F77_BINDINGS) ? "yes" : "no");
|
2004-06-07 19:33:53 +04:00
|
|
|
const string f90profiling((OMPI_ENABLE_MPI_PROFILING && OMPI_WANT_F90_BINDINGS) ?
|
2004-09-11 17:40:36 +04:00
|
|
|
"yes" : "no");
|
2004-06-07 19:33:53 +04:00
|
|
|
const string cxxexceptions(OMPI_HAVE_CXX_EXCEPTION_SUPPORT ? "yes" : "no");
|
|
|
|
int ompi_mpi_param_check = 3;
|
2004-02-14 01:17:42 +03:00
|
|
|
const string paramcheck(0 == MPI_PARAM_CHECK ? "never" :
|
|
|
|
1 == MPI_PARAM_CHECK ? "always" : "runtime");
|
2004-01-19 20:43:50 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
out("Configured by", "config:user", OMPI_CONFIGURE_USER);
|
|
|
|
out("Configured on", "config:timestamp", OMPI_CONFIGURE_DATE);
|
|
|
|
out("Configure host", "config:host", OMPI_CONFIGURE_HOST);
|
2004-01-19 20:43:50 +03:00
|
|
|
|
|
|
|
out("C bindings", "bindings:c", "yes");
|
|
|
|
out("C++ bindings", "bindings:cxx", "yes");
|
|
|
|
out("Fortran77 bindings", "bindings:f77", f77);
|
|
|
|
out("Fortran90 bindings", "bindings:f90", f90);
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
out("C compiler", "compiler:c:command", OMPI_CC);
|
2004-01-19 20:43:50 +03:00
|
|
|
|
|
|
|
if (want_all) {
|
|
|
|
out("C char size", "compiler:c:sizeof:char", sizeof(char));
|
|
|
|
out("C bool size", "compiler:c:sizeof:bool", sizeof(bool));
|
|
|
|
out("C short size", "compiler:c:sizeof:short", sizeof(short));
|
|
|
|
out("C int size", "compiler:c:sizeof:int", sizeof(int));
|
|
|
|
out("C long size", "compiler:c:sizeof:long", sizeof(long));
|
|
|
|
out("C float size", "compiler:c:sizeof:float", sizeof(float));
|
|
|
|
out("C double size", "compiler:c:sizeof:double", sizeof(double));
|
|
|
|
out("C pointer size", "compiler:c:sizeof:pointer", sizeof(void *));
|
2004-06-07 19:33:53 +04:00
|
|
|
out("C char align", "compiler:c:align:char", OMPI_ALIGNMENT_CHAR);
|
|
|
|
out("C bool align", "compiler:c:align:bool", OMPI_ALIGNMENT_CXX_BOOL);
|
|
|
|
out("C int align", "compiler:c:align:int", OMPI_ALIGNMENT_INT);
|
|
|
|
out("C float align", "compiler:c:align:float", OMPI_ALIGNMENT_FLOAT);
|
|
|
|
out("C double align", "compiler:c:align:double", OMPI_ALIGNMENT_DOUBLE);
|
2004-01-19 20:43:50 +03:00
|
|
|
}
|
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
out("C++ compiler", "compiler:cxx:command", OMPI_CXX);
|
2004-01-19 20:43:50 +03:00
|
|
|
|
2004-06-07 19:33:53 +04:00
|
|
|
out("Fortran77 compiler", "compiler:f77:command", OMPI_F77);
|
|
|
|
out("Fortran90 compiler", "compiler:f90:command", OMPI_F90);
|
2004-03-16 22:23:24 +03:00
|
|
|
|
2004-01-19 20:43:50 +03:00
|
|
|
if (want_all) {
|
2004-06-17 17:29:46 +04:00
|
|
|
|
|
|
|
// Will always have the size of Fortran integer
|
|
|
|
|
2004-01-19 20:43:50 +03:00
|
|
|
out("Fort integer size", "compiler:fortran:sizeof:integer",
|
2004-06-07 19:33:53 +04:00
|
|
|
OMPI_SIZEOF_FORTRAN_INT);
|
2004-06-17 17:29:46 +04:00
|
|
|
|
|
|
|
// May or may not have the other Fortran sizes
|
|
|
|
|
|
|
|
if (OMPI_WANT_F77_BINDINGS || OMPI_WANT_F90_BINDINGS) {
|
|
|
|
out("Fort real size", "compiler:fortran:sizeof:real",
|
|
|
|
OMPI_SIZEOF_FORTRAN_REAL);
|
|
|
|
out("Fort dbl prec size",
|
|
|
|
"compiler:fortran:sizeof:double_precision",
|
|
|
|
OMPI_SIZEOF_FORTRAN_REAL);
|
|
|
|
out("Fort cplx size", "compiler:fortran:sizeof:complex",
|
|
|
|
OMPI_SIZEOF_FORTRAN_REAL);
|
|
|
|
out("Fort dbl cplx size",
|
|
|
|
"compiler:fortran:sizeof:double_complex",
|
|
|
|
OMPI_SIZEOF_FORTRAN_REAL);
|
|
|
|
|
|
|
|
out("Fort integer align", "compiler:fortran:align:integer",
|
|
|
|
OMPI_ALIGNMENT_FORTRAN_INT);
|
|
|
|
out("Fort real align", "compiler:fortran:align:real",
|
|
|
|
OMPI_ALIGNMENT_FORTRAN_REAL);
|
|
|
|
out("Fort dbl prec align",
|
|
|
|
"compiler:fortran:align:double_precision",
|
|
|
|
OMPI_ALIGNMENT_FORTRAN_REAL);
|
|
|
|
out("Fort cplx align", "compiler:fortran:align:complex",
|
|
|
|
OMPI_ALIGNMENT_FORTRAN_REAL);
|
|
|
|
out("Fort dbl cplx align",
|
|
|
|
"compiler:fortran:align:double_complex",
|
|
|
|
OMPI_ALIGNMENT_FORTRAN_REAL);
|
|
|
|
} else {
|
|
|
|
out("Fort real size", "compiler:fortran:sizeof:real", "skipped");
|
|
|
|
out("Fort dbl prec size",
|
|
|
|
"compiler:fortran:sizeof:double_precision", "skipped");
|
|
|
|
out("Fort cplx size", "compiler:fortran:sizeof:complex", "skipped");
|
|
|
|
out("Fort dbl cplx size",
|
|
|
|
"compiler:fortran:sizeof:double_complex", "skipped");
|
|
|
|
|
|
|
|
out("Fort integer align", "compiler:fortran:align:integer", "skipped");
|
|
|
|
out("Fort real align", "compiler:fortran:align:real", "skipped");
|
|
|
|
out("Fort dbl prec align",
|
|
|
|
"compiler:fortran:align:double_precision","skipped");
|
|
|
|
out("Fort cplx align", "compiler:fortran:align:complex", "skipped");
|
|
|
|
out("Fort dbl cplx align",
|
|
|
|
"compiler:fortran:align:double_complex", "skipped");
|
|
|
|
}
|
2004-01-19 20:43:50 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
out("C profiling", "option:profiling:c", cprofiling);
|
|
|
|
out("C++ profiling", "option:profiling:cxx", cxxprofiling);
|
|
|
|
out("Fortran77 profiling", "option:profiling:f77", f77profiling);
|
|
|
|
out("Fortran90 profiling", "option:profiling:f90", f90profiling);
|
|
|
|
|
|
|
|
out("C++ exceptions", "option:cxx_exceptions", cxxexceptions);
|
2004-09-11 17:40:36 +04:00
|
|
|
out("Thread support", "option:threads", threads);
|
2004-02-10 02:58:37 +03:00
|
|
|
|
2004-06-17 17:29:46 +04:00
|
|
|
if (want_all) {
|
|
|
|
|
|
|
|
// Don't display the build CPPFLAGS or CXXCPPFLAGS because they're
|
|
|
|
// just -I$(top_srcdir)/include, etc. Hence, they're a) boring,
|
|
|
|
// and c) specific for ompi_info.
|
|
|
|
|
|
|
|
out("Build CFLAGS", "option:build:cflags", OMPI_BUILD_CFLAGS);
|
|
|
|
out("Build CXXFLAGS", "option:build:cxxflags", OMPI_BUILD_CXXFLAGS);
|
|
|
|
out("Build FFLAGS", "option:build:fflags", OMPI_BUILD_FFLAGS);
|
|
|
|
out("Build FCFLAGS", "option:build:fcflags", OMPI_BUILD_FCFLAGS);
|
|
|
|
out("Build LDFLAGS", "option:build:ldflags", OMPI_BUILD_LDFLAGS);
|
|
|
|
out("Build LIBS", "option:build:libs", OMPI_BUILD_LIBS);
|
|
|
|
|
|
|
|
out("Wrapper extra CFLAGS", "option:wrapper:extra_cflags",
|
|
|
|
WRAPPER_EXTRA_CFLAGS);
|
|
|
|
out("Wrapper extra CXXFLAGS", "option:wrapper:extra_cxxflags",
|
|
|
|
WRAPPER_EXTRA_CXXFLAGS);
|
|
|
|
out("Wrapper extra FFLAGS", "option:wrapper:extra_fflags",
|
|
|
|
WRAPPER_EXTRA_FFLAGS);
|
|
|
|
out("Wrapper extra FCFLAGS", "option:wrapper:extra_fcflags",
|
|
|
|
WRAPPER_EXTRA_FCFLAGS);
|
|
|
|
out("Wrapper extra LDFLAGS", "option:wrapper:extra_ldflags",
|
|
|
|
WRAPPER_EXTRA_LDFLAGS);
|
|
|
|
out("Wrapper extra LIBS", "option:wrapper:extra_libs",
|
|
|
|
WRAPPER_EXTRA_LIBS);
|
|
|
|
}
|
|
|
|
|
2004-08-13 08:10:47 +04:00
|
|
|
out("Internal debug support", "option:debug", debug);
|
2004-02-14 01:17:42 +03:00
|
|
|
out("MPI parameter check", "option:mpi-param-check", paramcheck);
|
2004-02-10 02:58:37 +03:00
|
|
|
out("Memory profiling support", "option:mem-profile", memprofile);
|
|
|
|
out("Memory debugging support", "option:mem-debug", memdebug);
|
2004-01-19 20:43:50 +03:00
|
|
|
}
|