1
1

Remove warnings identified by clang 3.4

* Remove unused static functions
 * Remove unused static variables

cmr=v1.8:reviewer=hjelmn

This commit was SVN r31023.
Этот коммит содержится в:
Jeff Squyres 2014-03-12 13:17:54 +00:00
родитель 4512b3375e
Коммит da87b506bd
38 изменённых файлов: 45 добавлений и 112 удалений

Просмотреть файл

@ -12,7 +12,7 @@
* All rights reserved. * All rights reserved.
* Copyright (c) 2007-2012 Los Alamos National Security, LLC. All rights * Copyright (c) 2007-2012 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2008-2009 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2008-2014 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2013 Intel, Inc. All rights reserved * Copyright (c) 2013 Intel, Inc. All rights reserved
* $COPYRIGHT$ * $COPYRIGHT$
* *
@ -43,15 +43,6 @@ extern mca_bml_base_component_t mca_bml_r2_component;
/* Names of all the BTL components that this BML is aware of */ /* Names of all the BTL components that this BML is aware of */
static char *btl_names = NULL; static char *btl_names = NULL;
static inline unsigned int bml_base_log2(unsigned long val) {
unsigned int count = 0;
while(val > 0) {
val = val >> 1;
count++;
}
return count > 0 ? count-1: 0;
}
static int btl_exclusivity_compare(const void* arg1, const void* arg2) static int btl_exclusivity_compare(const void* arg1, const void* arg2)
{ {
mca_btl_base_module_t* btl1 = *(struct mca_btl_base_module_t**)arg1; mca_btl_base_module_t* btl1 = *(struct mca_btl_base_module_t**)arg1;

Просмотреть файл

@ -4,7 +4,7 @@
* Copyright (c) 2009-2012 Mellanox Technologies. All rights reserved. * Copyright (c) 2009-2012 Mellanox Technologies. All rights reserved.
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2013-2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -52,15 +52,6 @@ static int coll_ml_parse_topology (sub_group_params_t *sub_group_meta_data, size
/* #define NEW_LEADER_SELECTION */ /* #define NEW_LEADER_SELECTION */
static inline double ret_us(void)
{
struct timeval t;
gettimeofday(&t, NULL);
return t.tv_sec * 1e6 + t.tv_usec;
}
struct ranks_proxy_t { struct ranks_proxy_t {
/* number of subgroups for which the rank is a proxy */ /* number of subgroups for which the rank is a proxy */
int number_subgroups; int number_subgroups;

Просмотреть файл

@ -160,22 +160,6 @@ static bool want_this_port(char **include_list, char **exclude_list,
/***********************************************************************/ /***********************************************************************/
static const char *transport_name_to_str(enum ibv_transport_type transport_type)
{
switch(transport_type) {
case IBV_TRANSPORT_IB: return "IB";
case IBV_TRANSPORT_IWARP: return "IWARP";
#if HAVE_DECL_IBV_TRANSPORT_USNIC
case IBV_TRANSPORT_USNIC: return "usNIC";
#endif
#if HAVE_DECL_IBV_TRANSPORT_USNIC_UDP
case IBV_TRANSPORT_USNIC_UDP: return "usNIC UDP";
#endif
case IBV_TRANSPORT_UNKNOWN:
default: return "unknown";
}
}
#if HAVE_DECL_IBV_LINK_LAYER_ETHERNET #if HAVE_DECL_IBV_LINK_LAYER_ETHERNET
static const char *link_layer_to_str(int link_type) static const char *link_layer_to_str(int link_type)
{ {

Просмотреть файл

@ -10,7 +10,7 @@
* University of Stuttgart. All rights reserved. * University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California. * Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved. * All rights reserved.
* Copyright (c) 2006-2009 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2006-2014 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* $COPYRIGHT$ * $COPYRIGHT$
@ -157,7 +157,7 @@ FUNC_FUNC(max, fortran_real4, ompi_fortran_real4_t)
#if OMPI_HAVE_FORTRAN_REAL8 #if OMPI_HAVE_FORTRAN_REAL8
FUNC_FUNC(max, fortran_real8, ompi_fortran_real8_t) FUNC_FUNC(max, fortran_real8, ompi_fortran_real8_t)
#endif #endif
#if OMPI_HAVE_FORTRAN_REAL16 #if OMPI_HAVE_FORTRAN_REAL16 && OMPI_REAL16_MATCHES_C
FUNC_FUNC(max, fortran_real16, ompi_fortran_real16_t) FUNC_FUNC(max, fortran_real16, ompi_fortran_real16_t)
#endif #endif
@ -217,7 +217,7 @@ FUNC_FUNC(min, fortran_real4, ompi_fortran_real4_t)
#if OMPI_HAVE_FORTRAN_REAL8 #if OMPI_HAVE_FORTRAN_REAL8
FUNC_FUNC(min, fortran_real8, ompi_fortran_real8_t) FUNC_FUNC(min, fortran_real8, ompi_fortran_real8_t)
#endif #endif
#if OMPI_HAVE_FORTRAN_REAL16 #if OMPI_HAVE_FORTRAN_REAL16 && OMPI_REAL16_MATCHES_C
FUNC_FUNC(min, fortran_real16, ompi_fortran_real16_t) FUNC_FUNC(min, fortran_real16, ompi_fortran_real16_t)
#endif #endif
@ -274,7 +274,7 @@ OP_FUNC(sum, fortran_real4, ompi_fortran_real4_t, +=)
#if OMPI_HAVE_FORTRAN_REAL8 #if OMPI_HAVE_FORTRAN_REAL8
OP_FUNC(sum, fortran_real8, ompi_fortran_real8_t, +=) OP_FUNC(sum, fortran_real8, ompi_fortran_real8_t, +=)
#endif #endif
#if OMPI_HAVE_FORTRAN_REAL16 #if OMPI_HAVE_FORTRAN_REAL16 && OMPI_REAL16_MATCHES_C
OP_FUNC(sum, fortran_real16, ompi_fortran_real16_t, +=) OP_FUNC(sum, fortran_real16, ompi_fortran_real16_t, +=)
#endif #endif
/* Complex */ /* Complex */
@ -341,7 +341,7 @@ OP_FUNC(prod, fortran_real4, ompi_fortran_real4_t, *=)
#if OMPI_HAVE_FORTRAN_REAL8 #if OMPI_HAVE_FORTRAN_REAL8
OP_FUNC(prod, fortran_real8, ompi_fortran_real8_t, *=) OP_FUNC(prod, fortran_real8, ompi_fortran_real8_t, *=)
#endif #endif
#if OMPI_HAVE_FORTRAN_REAL16 #if OMPI_HAVE_FORTRAN_REAL16 && OMPI_REAL16_MATCHES_C
OP_FUNC(prod, fortran_real16, ompi_fortran_real16_t, *=) OP_FUNC(prod, fortran_real16, ompi_fortran_real16_t, *=)
#endif #endif
/* Complex */ /* Complex */
@ -737,7 +737,7 @@ FUNC_FUNC_3BUF(max, fortran_real4, ompi_fortran_real4_t)
#if OMPI_HAVE_FORTRAN_REAL8 #if OMPI_HAVE_FORTRAN_REAL8
FUNC_FUNC_3BUF(max, fortran_real8, ompi_fortran_real8_t) FUNC_FUNC_3BUF(max, fortran_real8, ompi_fortran_real8_t)
#endif #endif
#if OMPI_HAVE_FORTRAN_REAL16 #if OMPI_HAVE_FORTRAN_REAL16 && OMPI_REAL16_MATCHES_C
FUNC_FUNC_3BUF(max, fortran_real16, ompi_fortran_real16_t) FUNC_FUNC_3BUF(max, fortran_real16, ompi_fortran_real16_t)
#endif #endif
@ -797,7 +797,7 @@ FUNC_FUNC_3BUF(min, fortran_real4, ompi_fortran_real4_t)
#if OMPI_HAVE_FORTRAN_REAL8 #if OMPI_HAVE_FORTRAN_REAL8
FUNC_FUNC_3BUF(min, fortran_real8, ompi_fortran_real8_t) FUNC_FUNC_3BUF(min, fortran_real8, ompi_fortran_real8_t)
#endif #endif
#if OMPI_HAVE_FORTRAN_REAL16 #if OMPI_HAVE_FORTRAN_REAL16 && OMPI_REAL16_MATCHES_C
FUNC_FUNC_3BUF(min, fortran_real16, ompi_fortran_real16_t) FUNC_FUNC_3BUF(min, fortran_real16, ompi_fortran_real16_t)
#endif #endif
@ -854,7 +854,7 @@ OP_FUNC_3BUF(sum, fortran_real4, ompi_fortran_real4_t, +)
#if OMPI_HAVE_FORTRAN_REAL8 #if OMPI_HAVE_FORTRAN_REAL8
OP_FUNC_3BUF(sum, fortran_real8, ompi_fortran_real8_t, +) OP_FUNC_3BUF(sum, fortran_real8, ompi_fortran_real8_t, +)
#endif #endif
#if OMPI_HAVE_FORTRAN_REAL16 #if OMPI_HAVE_FORTRAN_REAL16 && OMPI_REAL16_MATCHES_C
OP_FUNC_3BUF(sum, fortran_real16, ompi_fortran_real16_t, +) OP_FUNC_3BUF(sum, fortran_real16, ompi_fortran_real16_t, +)
#endif #endif
/* Complex */ /* Complex */
@ -921,7 +921,7 @@ OP_FUNC_3BUF(prod, fortran_real4, ompi_fortran_real4_t, *)
#if OMPI_HAVE_FORTRAN_REAL8 #if OMPI_HAVE_FORTRAN_REAL8
OP_FUNC_3BUF(prod, fortran_real8, ompi_fortran_real8_t, *) OP_FUNC_3BUF(prod, fortran_real8, ompi_fortran_real8_t, *)
#endif #endif
#if OMPI_HAVE_FORTRAN_REAL16 #if OMPI_HAVE_FORTRAN_REAL16 && OMPI_REAL16_MATCHES_C
OP_FUNC_3BUF(prod, fortran_real16, ompi_fortran_real16_t, *) OP_FUNC_3BUF(prod, fortran_real16, ompi_fortran_real16_t, *)
#endif #endif
/* Complex */ /* Complex */

Просмотреть файл

@ -9,7 +9,7 @@
* University of Stuttgart. All rights reserved. * University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California. * Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved. * All rights reserved.
* Copyright (c) 2007 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2007-2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -35,8 +35,6 @@
#include "ompi/mpi/c/profile/defines.h" #include "ompi/mpi/c/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_Wtick";
double MPI_Wtick(void) double MPI_Wtick(void)
{ {

Просмотреть файл

@ -9,7 +9,7 @@
* University of Stuttgart. All rights reserved. * University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California. * Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved. * All rights reserved.
* Copyright (c) 2006 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2006-2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -35,8 +35,6 @@
#include "ompi/mpi/c/profile/defines.h" #include "ompi/mpi/c/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_Wtime";
double MPI_Wtime(void) double MPI_Wtime(void)
{ {

Просмотреть файл

@ -4,7 +4,7 @@
* reserved. * reserved.
* Copyright (c) 2011 INRIA. All rights reserved. * Copyright (c) 2011 INRIA. All rights reserved.
* Copyright (c) 2011 Université Bordeaux 1 * Copyright (c) 2011 Université Bordeaux 1
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2013-2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -59,7 +59,6 @@ OMPI_GENERATE_F77_BINDINGS (MPI_DIST_GRAPH_CREATE_ADJACENT,
#include "ompi/mpi/fortran/mpif-h/profile/defines.h" #include "ompi/mpi/fortran/mpif-h/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_DIST_GRAPH_CREATE_ADJACENT";
void ompi_dist_graph_create_adjacent_f(MPI_Fint *comm_old, MPI_Fint *indegree, void ompi_dist_graph_create_adjacent_f(MPI_Fint *comm_old, MPI_Fint *indegree,
MPI_Fint *sources, MPI_Fint *sourceweights, MPI_Fint *sources, MPI_Fint *sourceweights,

Просмотреть файл

@ -9,7 +9,7 @@
* University of Stuttgart. All rights reserved. * University of Stuttgart. All rights reserved.
* Copyright (c) 2004-2005 The Regents of the University of California. * Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved. * All rights reserved.
* Copyright (c) 2011-2012 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2011-2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -64,8 +64,6 @@ OMPI_GENERATE_F77_BINDINGS (MPI_TYPE_CREATE_HINDEXED,
#include "ompi/mpi/fortran/mpif-h/profile/defines.h" #include "ompi/mpi/fortran/mpif-h/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_TYPE_CREATE_HINDEXED";
void ompi_type_create_hindexed_f(MPI_Fint *count, void ompi_type_create_hindexed_f(MPI_Fint *count,
MPI_Fint *array_of_blocklengths, MPI_Fint *array_of_blocklengths,

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_category_changed";
int MPI_T_category_changed(int *stamp) int MPI_T_category_changed(int *stamp)
{ {

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_category_get_categories";
int MPI_T_category_get_categories(int cat_index, int len, int indices[]) int MPI_T_category_get_categories(int cat_index, int len, int indices[])
{ {

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_category_get_cvars";
int MPI_T_category_get_cvars(int cat_index, int len, int indices[]) int MPI_T_category_get_cvars(int cat_index, int len, int indices[])
{ {

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_category_get_info";
int MPI_T_category_get_info(int cat_index, char *name, int *name_len, int MPI_T_category_get_info(int cat_index, char *name, int *name_len,
char *desc, int *desc_len, int *num_cvars, char *desc, int *desc_len, int *num_cvars,

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_category_get_num";
int MPI_T_category_get_num (int *num_cat) int MPI_T_category_get_num (int *num_cat)
{ {

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-213 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-213 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_category_get_pvars";
int MPI_T_category_get_pvars(int cat_index, int len, int indices[]) int MPI_T_category_get_pvars(int cat_index, int len, int indices[])
{ {

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_cvar_get_info";
int MPI_T_cvar_get_info(int cvar_index, char *name, int *name_len, int *verbosity, int MPI_T_cvar_get_info(int cvar_index, char *name, int *name_len, int *verbosity,
MPI_Datatype *datatype, MPI_T_enum *enumtype, char *desc, MPI_Datatype *datatype, MPI_T_enum *enumtype, char *desc,

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_cvar_get_num";
int MPI_T_cvar_get_num (int *num_cvar) { int MPI_T_cvar_get_num (int *num_cvar) {
if (!mpit_is_initialized ()) { if (!mpit_is_initialized ()) {

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_cvar_handle_alloc";
int MPI_T_cvar_handle_alloc (int cvar_index, void *obj_handle, int MPI_T_cvar_handle_alloc (int cvar_index, void *obj_handle,
MPI_T_cvar_handle *handle, int *count) MPI_T_cvar_handle *handle, int *count)

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_cvar_handle_free";
int MPI_T_cvar_handle_free (MPI_T_cvar_handle *handle) int MPI_T_cvar_handle_free (MPI_T_cvar_handle *handle)
{ {

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_cvar_read";
int MPI_T_cvar_read (MPI_T_cvar_handle handle, void *buf) int MPI_T_cvar_read (MPI_T_cvar_handle handle, void *buf)
{ {

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_cvar_write";
int MPI_T_cvar_write (MPI_T_cvar_handle handle, const void *buf) int MPI_T_cvar_write (MPI_T_cvar_handle handle, const void *buf)
{ {

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_enum_get_info";
int MPI_T_enum_get_info(MPI_T_enum enumtype, int *num, char *name, int *name_len) int MPI_T_enum_get_info(MPI_T_enum enumtype, int *num, char *name, int *name_len)
{ {

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_enum_get_item";
int MPI_T_enum_get_item(MPI_T_enum enumtype, int index, int *value, char *name, int MPI_T_enum_get_item(MPI_T_enum enumtype, int index, int *value, char *name,
int *name_len) int *name_len)

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -23,7 +24,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_finalize";
int MPI_T_finalize (void) int MPI_T_finalize (void)
{ {

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -28,7 +29,6 @@ extern opal_mutex_t mpit_big_lock;
extern volatile uint32_t mpit_init_count; extern volatile uint32_t mpit_init_count;
extern volatile int32_t initted; extern volatile int32_t initted;
static const char FUNC_NAME[] = "MPI_T_init_thread";
int MPI_T_init_thread (int required, int *provided) int MPI_T_init_thread (int required, int *provided)
{ {

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_pvar_get_info";
int MPI_T_pvar_get_info(int pvar_index, char *name, int *name_len, int MPI_T_pvar_get_info(int pvar_index, char *name, int *name_len,
int *verbosity, int *var_class, MPI_Datatype *datatype, int *verbosity, int *var_class, MPI_Datatype *datatype,

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_pvar_get_num";
int MPI_T_pvar_get_num(int *num_pvar) int MPI_T_pvar_get_num(int *num_pvar)
{ {

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_pvar_handle_alloc";
int MPI_T_pvar_handle_alloc(MPI_T_pvar_session session, int pvar_index, int MPI_T_pvar_handle_alloc(MPI_T_pvar_session session, int pvar_index,
void *obj_handle, MPI_T_pvar_handle *handle, int *count) void *obj_handle, MPI_T_pvar_handle *handle, int *count)

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_pvar_handle_free";
int MPI_T_pvar_handle_free(MPI_T_pvar_session session, MPI_T_pvar_handle *handle) int MPI_T_pvar_handle_free(MPI_T_pvar_session session, MPI_T_pvar_handle *handle)
{ {

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_pvar_read";
int MPI_T_pvar_read(MPI_T_pvar_session session, MPI_T_pvar_handle handle, int MPI_T_pvar_read(MPI_T_pvar_session session, MPI_T_pvar_handle handle,
void* buf) void* buf)

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_pvar_readreset";
int MPI_T_pvar_readreset(MPI_T_pvar_session session, MPI_T_pvar_handle handle, int MPI_T_pvar_readreset(MPI_T_pvar_session session, MPI_T_pvar_handle handle,
void *buf) void *buf)

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_pvar_reset";
int MPI_T_pvar_reset(MPI_T_pvar_session session, MPI_T_pvar_handle handle) int MPI_T_pvar_reset(MPI_T_pvar_session session, MPI_T_pvar_handle handle)
{ {

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_pvar_session_create";
int MPI_T_pvar_session_create(MPI_T_pvar_session *session) int MPI_T_pvar_session_create(MPI_T_pvar_session *session)
{ {

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_pvar_session_free";
int MPI_T_pvar_session_free(MPI_T_pvar_session *session) int MPI_T_pvar_session_free(MPI_T_pvar_session *session)
{ {

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_pvar_start";
static int pvar_handle_start (mca_base_pvar_handle_t *handle) static int pvar_handle_start (mca_base_pvar_handle_t *handle)
{ {

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_pvar_stop";
static int pvar_handle_stop (mca_base_pvar_handle_t *handle) static int pvar_handle_stop (mca_base_pvar_handle_t *handle)
{ {

Просмотреть файл

@ -2,6 +2,7 @@
/* /*
* Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights * Copyright (c) 2012-2013 Los Alamos National Security, LLC. All rights
* reserved. * reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -19,7 +20,6 @@
#include "ompi/mpi/tool/profile/defines.h" #include "ompi/mpi/tool/profile/defines.h"
#endif #endif
static const char FUNC_NAME[] = "MPI_T_pvar_write";
int MPI_T_pvar_write(MPI_T_pvar_session session, MPI_T_pvar_handle handle, int MPI_T_pvar_write(MPI_T_pvar_session session, MPI_T_pvar_handle handle,
const void* buf) const void* buf)

Просмотреть файл

@ -11,6 +11,7 @@
* Copyright (c) 2004-2006 The Regents of the University of California. * Copyright (c) 2004-2006 The Regents of the University of California.
* All rights reserved. * All rights reserved.
* Copyright (c) 2009 Oak Ridge National Labs. All rights reserved. * Copyright (c) 2009 Oak Ridge National Labs. All rights reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -36,12 +37,10 @@
#define LMAX(A,B) ({ OPAL_PTRDIFF_TYPE _a = (A), _b = (B); (_a < _b ? _b : _a) }) #define LMAX(A,B) ({ OPAL_PTRDIFF_TYPE _a = (A), _b = (B); (_a < _b ? _b : _a) })
#define LMIN(A,B) ({ OPAL_PTRDIFF_TYPE _a = (A), _b = (B); (_a < _b ? _a : _b); }) #define LMIN(A,B) ({ OPAL_PTRDIFF_TYPE _a = (A), _b = (B); (_a < _b ? _a : _b); })
#define IMAX(A,B) ({ int _a = (A), _b = (B); (_a < _b ? _b : _a); }) #define IMAX(A,B) ({ int _a = (A), _b = (B); (_a < _b ? _b : _a); })
#define IMIN(A,B) ({ int _a = (A), _b = (B); (_a < _b ? _a : _b); })
#else #else
static inline OPAL_PTRDIFF_TYPE LMAX( OPAL_PTRDIFF_TYPE a, OPAL_PTRDIFF_TYPE b ) { return ( a < b ? b : a ); } static inline OPAL_PTRDIFF_TYPE LMAX( OPAL_PTRDIFF_TYPE a, OPAL_PTRDIFF_TYPE b ) { return ( a < b ? b : a ); }
static inline OPAL_PTRDIFF_TYPE LMIN( OPAL_PTRDIFF_TYPE a, OPAL_PTRDIFF_TYPE b ) { return ( a < b ? a : b ); } static inline OPAL_PTRDIFF_TYPE LMIN( OPAL_PTRDIFF_TYPE a, OPAL_PTRDIFF_TYPE b ) { return ( a < b ? a : b ); }
static inline int IMAX( int a, int b ) { return ( a < b ? b : a ); } static inline int IMAX( int a, int b ) { return ( a < b ? b : a ); }
static inline int IMIN( int a, int b ) { return ( a < b ? a : b ); }
#endif /* __GNU__ */ #endif /* __GNU__ */
#define OPAL_DATATYPE_COMPUTE_REQUIRED_ENTRIES( _pdtAdd, _count, _extent, _place_needed) \ #define OPAL_DATATYPE_COMPUTE_REQUIRED_ENTRIES( _pdtAdd, _count, _extent, _place_needed) \

Просмотреть файл

@ -11,6 +11,7 @@
* Copyright (c) 2004-2006 The Regents of the University of California. * Copyright (c) 2004-2006 The Regents of the University of California.
* All rights reserved. * All rights reserved.
* Copyright (c) 2009 Oak Ridge National Labs. All rights reserved. * Copyright (c) 2009 Oak Ridge National Labs. All rights reserved.
* Copyright (c) 2014 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -40,32 +41,6 @@
_elem->extent = 0; \ _elem->extent = 0; \
} while (0) } while (0)
static inline int SAVE_OPTIMIZED_ELEMENT( dt_elem_desc_t* pElemDesc,
ddt_elem_desc_t* opt_elem )
{
if( 0 != opt_elem->count ) {
pElemDesc->elem = *opt_elem;
SET_EMPTY_ELEMENT( opt_elem );
}
return 0;
}
static inline int ADD_ELEMENT( dt_elem_desc_t* pElemDesc __opal_attribute_unused__,
ddt_elem_desc_t* opt_elem,
uint16_t type, uint32_t count,
OPAL_PTRDIFF_TYPE disp, int32_t extent )
{
if( 0 == opt_elem->count ) {
opt_elem->common.flags = OPAL_DATATYPE_FLAG_BASIC;
opt_elem->common.type = type;
opt_elem->count = count;
opt_elem->disp = disp;
opt_elem->extent = extent;
return 0;
}
return 1;
}
static int32_t static int32_t
opal_datatype_optimize_short( opal_datatype_t* pData, opal_datatype_optimize_short( opal_datatype_t* pData,
int32_t count, int32_t count,