2009-07-01 01:41:28 +04:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2006 The University of Tennessee and The University
|
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved.
|
2011-02-17 01:53:23 +03:00
|
|
|
* Copyright (c) 2008-2011 Cisco Systems, Inc. All rights reserved.
|
2012-06-28 22:23:34 +04:00
|
|
|
* Copyright (c) 2012 Los Alamos National Security, LLC.
|
|
|
|
* All rights reserved.
|
2009-07-01 01:41:28 +04:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "ompi_config.h"
|
|
|
|
|
|
|
|
#include <stdio.h>
|
2009-07-01 17:19:06 +04:00
|
|
|
#include <string.h>
|
2009-07-01 01:41:28 +04:00
|
|
|
|
2011-11-05 03:30:59 +04:00
|
|
|
#include "mpi.h"
|
|
|
|
|
2009-07-01 01:41:28 +04:00
|
|
|
#include "opal/version.h"
|
2013-01-28 03:25:10 +04:00
|
|
|
#if OMPI_RTE_ORTE
|
2009-07-01 01:41:28 +04:00
|
|
|
#include "orte/version.h"
|
2013-01-28 03:25:10 +04:00
|
|
|
#endif
|
2009-07-01 01:41:28 +04:00
|
|
|
#include "ompi/version.h"
|
|
|
|
#include "opal/mca/base/base.h"
|
|
|
|
#include "opal/util/printf.h"
|
2012-06-28 22:23:34 +04:00
|
|
|
#include "opal/runtime/opal_info_support.h"
|
|
|
|
|
2013-01-28 03:25:10 +04:00
|
|
|
#if OMPI_RTE_ORTE
|
2012-06-28 22:23:34 +04:00
|
|
|
#include "orte/runtime/orte_info_support.h"
|
2013-01-28 03:25:10 +04:00
|
|
|
#endif
|
2009-07-01 01:41:28 +04:00
|
|
|
|
|
|
|
#include "ompi/tools/ompi_info/ompi_info.h"
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Show the version of Open MPI
|
|
|
|
*/
|
|
|
|
void ompi_info_show_ompi_version(const char *scope)
|
|
|
|
{
|
2011-11-02 00:22:49 +04:00
|
|
|
char *tmp, *tmp2;
|
2009-07-01 01:41:28 +04:00
|
|
|
|
2012-06-28 22:23:34 +04:00
|
|
|
opal_info_out("Package", "package", OPAL_PACKAGE_STRING);
|
2012-12-23 23:54:44 +04:00
|
|
|
(void)asprintf(&tmp, "%s:version:full", ompi_info_type_ompi);
|
2012-06-28 22:23:34 +04:00
|
|
|
tmp2 = opal_info_make_version_str(scope,
|
|
|
|
OMPI_MAJOR_VERSION, OMPI_MINOR_VERSION,
|
|
|
|
OMPI_RELEASE_VERSION,
|
|
|
|
OMPI_GREEK_VERSION,
|
|
|
|
OMPI_WANT_REPO_REV, OMPI_REPO_REV);
|
|
|
|
opal_info_out("Open MPI", tmp, tmp2);
|
2009-07-01 01:41:28 +04:00
|
|
|
free(tmp);
|
2011-11-02 00:22:49 +04:00
|
|
|
free(tmp2);
|
2012-12-23 23:54:44 +04:00
|
|
|
(void)asprintf(&tmp, "%s:version:repo", ompi_info_type_ompi);
|
2012-06-28 22:23:34 +04:00
|
|
|
opal_info_out("Open MPI repo revision", tmp, OMPI_REPO_REV);
|
2009-07-01 01:41:28 +04:00
|
|
|
free(tmp);
|
2012-12-23 23:54:44 +04:00
|
|
|
(void)asprintf(&tmp, "%s:version:release_date", ompi_info_type_ompi);
|
2012-06-28 22:23:34 +04:00
|
|
|
opal_info_out("Open MPI release date", tmp, OMPI_RELEASE_DATE);
|
2009-07-01 01:41:28 +04:00
|
|
|
free(tmp);
|
|
|
|
|
2013-01-28 03:25:10 +04:00
|
|
|
#if OMPI_RTE_ORTE
|
2012-06-28 22:23:34 +04:00
|
|
|
/* show the orte version */
|
|
|
|
orte_info_show_orte_version(scope);
|
2013-01-28 03:25:10 +04:00
|
|
|
#endif
|
2009-07-01 01:41:28 +04:00
|
|
|
|
2012-06-28 22:23:34 +04:00
|
|
|
/* show the opal version */
|
|
|
|
opal_info_show_opal_version(scope);
|
2013-02-12 21:45:27 +04:00
|
|
|
|
2012-06-28 22:23:34 +04:00
|
|
|
tmp2 = opal_info_make_version_str(scope,
|
|
|
|
MPI_VERSION, MPI_SUBVERSION,
|
|
|
|
0, "", 0, "");
|
|
|
|
opal_info_out("MPI API", "mpi-api:version:full", tmp2);
|
|
|
|
free(tmp2);
|
2011-11-02 00:22:49 +04:00
|
|
|
|
2012-06-28 22:23:34 +04:00
|
|
|
opal_info_out("Ident string", "ident", OPAL_IDENT_STRING);
|
2009-07-01 01:41:28 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|