1
1

Complete changes specified in MPI-3 Ticket #125. Still holding on proposed change to MPI_Init as it remains under discussion (and is just plain uuuugly). No action taken on changing string arrays as that part of #125 was not included in the final pdf text.

This commit was SVN r26939.
Этот коммит содержится в:
Ralph Castain 2012-08-02 16:31:02 +00:00
родитель 91ccba9643
Коммит 8b595ddf84
8 изменённых файлов: 26 добавлений и 18 удалений

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

@ -13,6 +13,7 @@
* Copyright (c) 2008-2009 Sun Microsystems, Inc. All rights reserved. * Copyright (c) 2008-2009 Sun Microsystems, Inc. All rights reserved.
* Copyright (c) 2009-2012 Oak Rigde National Laboratory. All rights reserved. * Copyright (c) 2009-2012 Oak Rigde National Laboratory. All rights reserved.
* Copyright (c) 2011 Sandia National Laboratories. All rights reserved. * Copyright (c) 2011 Sandia National Laboratories. All rights reserved.
* Copyright (c) 2012 Los Alamos Nat Security, LLC. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -1103,11 +1104,11 @@ OMPI_DECLSPEC int MPI_Bsend_init(void *buf, int count, MPI_Datatype datatype,
OMPI_DECLSPEC int MPI_Buffer_attach(void *buffer, int size); OMPI_DECLSPEC int MPI_Buffer_attach(void *buffer, int size);
OMPI_DECLSPEC int MPI_Buffer_detach(void *buffer, int *size); OMPI_DECLSPEC int MPI_Buffer_detach(void *buffer, int *size);
OMPI_DECLSPEC int MPI_Cancel(MPI_Request *request); OMPI_DECLSPEC int MPI_Cancel(MPI_Request *request);
OMPI_DECLSPEC int MPI_Cart_coords(MPI_Comm comm, int rank, int maxdims, int *coords); OMPI_DECLSPEC int MPI_Cart_coords(MPI_Comm comm, int rank, int maxdims, int coords[]);
OMPI_DECLSPEC int MPI_Cart_create(MPI_Comm old_comm, int ndims, int *dims, OMPI_DECLSPEC int MPI_Cart_create(MPI_Comm old_comm, int ndims, int *dims,
int *periods, int reorder, MPI_Comm *comm_cart); int *periods, int reorder, MPI_Comm *comm_cart);
OMPI_DECLSPEC int MPI_Cart_get(MPI_Comm comm, int maxdims, int *dims, OMPI_DECLSPEC int MPI_Cart_get(MPI_Comm comm, int maxdims, int dims[],
int *periods, int *coords); int periods[], int coords[]);
OMPI_DECLSPEC int MPI_Cart_map(MPI_Comm comm, int ndims, int *dims, OMPI_DECLSPEC int MPI_Cart_map(MPI_Comm comm, int ndims, int *dims,
int *periods, int *newrank); int *periods, int *newrank);
OMPI_DECLSPEC int MPI_Cart_rank(MPI_Comm comm, int *coords, int *rank); OMPI_DECLSPEC int MPI_Cart_rank(MPI_Comm comm, int *coords, int *rank);
@ -1294,12 +1295,12 @@ OMPI_DECLSPEC int MPI_Get_version(int *version, int *subversion);
OMPI_DECLSPEC int MPI_Graph_create(MPI_Comm comm_old, int nnodes, int *index, OMPI_DECLSPEC int MPI_Graph_create(MPI_Comm comm_old, int nnodes, int *index,
int *edges, int reorder, MPI_Comm *comm_graph); int *edges, int reorder, MPI_Comm *comm_graph);
OMPI_DECLSPEC int MPI_Graph_get(MPI_Comm comm, int maxindex, int maxedges, OMPI_DECLSPEC int MPI_Graph_get(MPI_Comm comm, int maxindex, int maxedges,
int *index, int *edges); int index[], int edges[]);
OMPI_DECLSPEC int MPI_Graph_map(MPI_Comm comm, int nnodes, int *index, int *edges, OMPI_DECLSPEC int MPI_Graph_map(MPI_Comm comm, int nnodes, int *index, int *edges,
int *newrank); int *newrank);
OMPI_DECLSPEC int MPI_Graph_neighbors_count(MPI_Comm comm, int rank, int *nneighbors); OMPI_DECLSPEC int MPI_Graph_neighbors_count(MPI_Comm comm, int rank, int *nneighbors);
OMPI_DECLSPEC int MPI_Graph_neighbors(MPI_Comm comm, int rank, int maxneighbors, OMPI_DECLSPEC int MPI_Graph_neighbors(MPI_Comm comm, int rank, int maxneighbors,
int *neighbors); int neighbors[]);
OMPI_DECLSPEC int MPI_Graphdims_get(MPI_Comm comm, int *nnodes, int *nedges); OMPI_DECLSPEC int MPI_Graphdims_get(MPI_Comm comm, int *nnodes, int *nedges);
OMPI_DECLSPEC int MPI_Grequest_complete(MPI_Request request); OMPI_DECLSPEC int MPI_Grequest_complete(MPI_Request request);
OMPI_DECLSPEC int MPI_Grequest_start(MPI_Grequest_query_function *query_fn, OMPI_DECLSPEC int MPI_Grequest_start(MPI_Grequest_query_function *query_fn,
@ -1310,11 +1311,11 @@ OMPI_DECLSPEC MPI_Fint MPI_Group_c2f(MPI_Group group);
OMPI_DECLSPEC int MPI_Group_compare(MPI_Group group1, MPI_Group group2, int *result); OMPI_DECLSPEC int MPI_Group_compare(MPI_Group group1, MPI_Group group2, int *result);
OMPI_DECLSPEC int MPI_Group_difference(MPI_Group group1, MPI_Group group2, OMPI_DECLSPEC int MPI_Group_difference(MPI_Group group1, MPI_Group group2,
MPI_Group *newgroup); MPI_Group *newgroup);
OMPI_DECLSPEC int MPI_Group_excl(MPI_Group group, int n, int *ranks, OMPI_DECLSPEC int MPI_Group_excl(MPI_Group group, int n, int ranks[],
MPI_Group *newgroup); MPI_Group *newgroup);
OMPI_DECLSPEC MPI_Group MPI_Group_f2c(MPI_Fint group); OMPI_DECLSPEC MPI_Group MPI_Group_f2c(MPI_Fint group);
OMPI_DECLSPEC int MPI_Group_free(MPI_Group *group); OMPI_DECLSPEC int MPI_Group_free(MPI_Group *group);
OMPI_DECLSPEC int MPI_Group_incl(MPI_Group group, int n, int *ranks, OMPI_DECLSPEC int MPI_Group_incl(MPI_Group group, int n, int ranks[],
MPI_Group *newgroup); MPI_Group *newgroup);
OMPI_DECLSPEC int MPI_Group_intersection(MPI_Group group1, MPI_Group group2, OMPI_DECLSPEC int MPI_Group_intersection(MPI_Group group1, MPI_Group group2,
MPI_Group *newgroup); MPI_Group *newgroup);
@ -1324,8 +1325,8 @@ OMPI_DECLSPEC int MPI_Group_range_incl(MPI_Group group, int n, int ranges[][3],
MPI_Group *newgroup); MPI_Group *newgroup);
OMPI_DECLSPEC int MPI_Group_rank(MPI_Group group, int *rank); OMPI_DECLSPEC int MPI_Group_rank(MPI_Group group, int *rank);
OMPI_DECLSPEC int MPI_Group_size(MPI_Group group, int *size); OMPI_DECLSPEC int MPI_Group_size(MPI_Group group, int *size);
OMPI_DECLSPEC int MPI_Group_translate_ranks(MPI_Group group1, int n, int *ranks1, OMPI_DECLSPEC int MPI_Group_translate_ranks(MPI_Group group1, int n, int ranks1[],
MPI_Group group2, int *ranks2); MPI_Group group2, int ranks2[]);
OMPI_DECLSPEC int MPI_Group_union(MPI_Group group1, MPI_Group group2, OMPI_DECLSPEC int MPI_Group_union(MPI_Group group1, MPI_Group group2,
MPI_Group *newgroup); MPI_Group *newgroup);
OMPI_DECLSPEC int MPI_Ibsend(void *buf, int count, MPI_Datatype datatype, int dest, OMPI_DECLSPEC int MPI_Ibsend(void *buf, int count, MPI_Datatype datatype, int dest,

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

@ -10,6 +10,7 @@
* 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 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2012 Los Alamos Nat Security, LLC. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -38,7 +39,7 @@
static const char FUNC_NAME[] = "MPI_Cart_coords"; static const char FUNC_NAME[] = "MPI_Cart_coords";
int MPI_Cart_coords(MPI_Comm comm, int rank, int maxdims, int *coords) int MPI_Cart_coords(MPI_Comm comm, int rank, int maxdims, int coords[])
{ {
int err; int err;
mca_topo_base_module_cart_coords_fn_t func; mca_topo_base_module_cart_coords_fn_t func;

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

@ -10,6 +10,7 @@
* 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 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2012 Los Alamos Nat Security, LLC. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -37,8 +38,8 @@
static const char FUNC_NAME[] = "MPI_Cart_get"; static const char FUNC_NAME[] = "MPI_Cart_get";
int MPI_Cart_get(MPI_Comm comm, int maxdims, int *dims, int MPI_Cart_get(MPI_Comm comm, int maxdims, int dims[],
int *periods, int *coords) int periods[], int coords[])
{ {
/* local variables */ /* local variables */
mca_topo_base_module_cart_get_fn_t func; mca_topo_base_module_cart_get_fn_t func;

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

@ -10,6 +10,7 @@
* 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-2012 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2007-2012 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2012 Los Alamos Nat Security, LLC. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -38,7 +39,7 @@ static const char FUNC_NAME[] = "MPI_Graph_get";
int MPI_Graph_get(MPI_Comm comm, int maxindx, int maxedges, int MPI_Graph_get(MPI_Comm comm, int maxindx, int maxedges,
int *indx, int *edges) int indx[], int edges[])
{ {
int err; int err;
mca_topo_base_module_graph_get_fn_t func; mca_topo_base_module_graph_get_fn_t func;

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

@ -10,6 +10,7 @@
* 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 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2012 Los Alamos Nat Security, LLC. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -38,7 +39,7 @@ static const char FUNC_NAME[] = "MPI_Graph_neighbors";
int MPI_Graph_neighbors(MPI_Comm comm, int rank, int maxneighbors, int MPI_Graph_neighbors(MPI_Comm comm, int rank, int maxneighbors,
int *neighbors) int neighbors[])
{ {
int err; int err;
mca_topo_base_module_graph_neighbors_fn_t func; mca_topo_base_module_graph_neighbors_fn_t func;

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

@ -11,6 +11,7 @@
* All rights reserved. * All rights reserved.
* Copyright (c) 2006 University of Houston. All rights reserved. * Copyright (c) 2006 University of Houston. All rights reserved.
* Copyright (c) 2006-2009 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2006-2009 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2012 Los Alamos Nat Security, LLC. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -37,7 +38,7 @@
static const char FUNC_NAME[] = "MPI_Group_excl"; static const char FUNC_NAME[] = "MPI_Group_excl";
int MPI_Group_excl(MPI_Group group, int n, int *ranks, int MPI_Group_excl(MPI_Group group, int n, int ranks[],
MPI_Group *new_group) MPI_Group *new_group)
{ {
ompi_group_t *group_pointer = (ompi_group_t *)group; ompi_group_t *group_pointer = (ompi_group_t *)group;

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

@ -11,6 +11,7 @@
* All rights reserved. * All rights reserved.
* Copyright (c) 2006 University of Houston. All rights reserved. * Copyright (c) 2006 University of Houston. All rights reserved.
* Copyright (c) 2006-2009 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2006-2009 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2012 Los Alamos Nat Security, LLC. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -37,7 +38,7 @@
static const char FUNC_NAME[] = "MPI_Group_incl"; static const char FUNC_NAME[] = "MPI_Group_incl";
int MPI_Group_incl(MPI_Group group, int n, int *ranks, MPI_Group *new_group) int MPI_Group_incl(MPI_Group group, int n, int ranks[], MPI_Group *new_group)
{ {
int i, group_size, err; int i, group_size, err;
ompi_group_t *group_pointer; ompi_group_t *group_pointer;

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

@ -10,6 +10,7 @@
* 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) 2009 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2009 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2012 Los Alamos Nat Security, LLC. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -36,8 +37,8 @@
static const char FUNC_NAME[] = "MPI_Group_translate_ranks"; static const char FUNC_NAME[] = "MPI_Group_translate_ranks";
int MPI_Group_translate_ranks(MPI_Group group1, int n_ranks, int *ranks1, int MPI_Group_translate_ranks(MPI_Group group1, int n_ranks, int ranks1[],
MPI_Group group2, int *ranks2) MPI_Group group2, int ranks2[])
{ {
int err; int err;