Changeset 3914
- Timestamp:
- 02/28/09 23:27:46 (13 months ago)
- Location:
- mpich2/branches/dev/mpi_binding_const/src
- Files:
-
- 132 modified
-
binding/f77/buildiface (modified) (2 diffs)
-
include/mpi.h.in (modified) (14 diffs)
-
include/mpiimpl.h (modified) (8 diffs)
-
mpi/coll/allgather.c (modified) (3 diffs)
-
mpi/coll/allgatherv.c (modified) (3 diffs)
-
mpi/coll/allreduce.c (modified) (3 diffs)
-
mpi/coll/alltoall.c (modified) (3 diffs)
-
mpi/coll/alltoallv.c (modified) (3 diffs)
-
mpi/coll/alltoallw.c (modified) (3 diffs)
-
mpi/coll/exscan.c (modified) (2 diffs)
-
mpi/coll/gather.c (modified) (3 diffs)
-
mpi/coll/gatherv.c (modified) (2 diffs)
-
mpi/coll/helper_fns.c (modified) (4 diffs)
-
mpi/coll/opband.c (modified) (1 diff)
-
mpi/coll/opbor.c (modified) (1 diff)
-
mpi/coll/opbxor.c (modified) (1 diff)
-
mpi/coll/opland.c (modified) (1 diff)
-
mpi/coll/oplor.c (modified) (1 diff)
-
mpi/coll/oplxor.c (modified) (1 diff)
-
mpi/coll/opmax.c (modified) (1 diff)
-
mpi/coll/opmaxloc.c (modified) (1 diff)
-
mpi/coll/opmin.c (modified) (1 diff)
-
mpi/coll/opminloc.c (modified) (1 diff)
-
mpi/coll/opprod.c (modified) (1 diff)
-
mpi/coll/opsum.c (modified) (1 diff)
-
mpi/coll/red_scat.c (modified) (3 diffs)
-
mpi/coll/reduce.c (modified) (7 diffs)
-
mpi/coll/scan.c (modified) (4 diffs)
-
mpi/coll/scatter.c (modified) (3 diffs)
-
mpi/coll/scatterv.c (modified) (2 diffs)
-
mpi/comm/comm_set_name.c (modified) (1 diff)
-
mpi/datatype/address.c (modified) (1 diff)
-
mpi/datatype/get_address.c (modified) (1 diff)
-
mpi/datatype/pack.c (modified) (1 diff)
-
mpi/datatype/pack_external.c (modified) (1 diff)
-
mpi/datatype/pack_external_size.c (modified) (1 diff)
-
mpi/datatype/type_create_darray.c (modified) (5 diffs)
-
mpi/datatype/type_create_hindexed.c (modified) (1 diff)
-
mpi/datatype/type_create_indexed_block.c (modified) (1 diff)
-
mpi/datatype/type_create_struct.c (modified) (1 diff)
-
mpi/datatype/type_create_subarray.c (modified) (1 diff)
-
mpi/datatype/type_hindexed.c (modified) (1 diff)
-
mpi/datatype/type_indexed.c (modified) (1 diff)
-
mpi/datatype/type_set_name.c (modified) (1 diff)
-
mpi/datatype/type_struct.c (modified) (1 diff)
-
mpi/datatype/unpack.c (modified) (1 diff)
-
mpi/datatype/unpack_external.c (modified) (1 diff)
-
mpi/errhan/add_error_string.c (modified) (1 diff)
-
mpi/group/group.h (modified) (1 diff)
-
mpi/group/group_excl.c (modified) (1 diff)
-
mpi/group/group_incl.c (modified) (1 diff)
-
mpi/group/group_range_excl.c (modified) (1 diff)
-
mpi/group/group_range_incl.c (modified) (1 diff)
-
mpi/group/group_translate_ranks.c (modified) (1 diff)
-
mpi/group/grouputil.c (modified) (1 diff)
-
mpi/pt2pt/bsend.c (modified) (1 diff)
-
mpi/pt2pt/bsend_init.c (modified) (1 diff)
-
mpi/pt2pt/bsendutil.c (modified) (1 diff)
-
mpi/pt2pt/bsendutil.h (modified) (1 diff)
-
mpi/pt2pt/ibsend.c (modified) (1 diff)
-
mpi/pt2pt/irsend.c (modified) (1 diff)
-
mpi/pt2pt/isend.c (modified) (1 diff)
-
mpi/pt2pt/issend.c (modified) (1 diff)
-
mpi/pt2pt/rsend.c (modified) (1 diff)
-
mpi/pt2pt/rsend_init.c (modified) (1 diff)
-
mpi/pt2pt/send.c (modified) (1 diff)
-
mpi/pt2pt/send_init.c (modified) (1 diff)
-
mpi/pt2pt/sendrecv.c (modified) (1 diff)
-
mpi/pt2pt/ssend.c (modified) (1 diff)
-
mpi/pt2pt/ssend_init.c (modified) (1 diff)
-
mpi/pt2pt/test_cancelled.c (modified) (1 diff)
-
mpi/rma/accumulate.c (modified) (1 diff)
-
mpi/rma/put.c (modified) (1 diff)
-
mpi/rma/win_set_name.c (modified) (1 diff)
-
mpi/romio/include/mpio.h.in (modified) (11 diffs)
-
mpi/romio/mpi-io/delete.c (modified) (1 diff)
-
mpi/romio/mpi-io/iwrite.c (modified) (2 diffs)
-
mpi/romio/mpi-io/iwrite_at.c (modified) (1 diff)
-
mpi/romio/mpi-io/iwrite_sh.c (modified) (1 diff)
-
mpi/romio/mpi-io/open.c (modified) (1 diff)
-
mpi/romio/mpi-io/set_view.c (modified) (1 diff)
-
mpi/romio/mpi-io/wr_atallb.c (modified) (1 diff)
-
mpi/romio/mpi-io/wr_atalle.c (modified) (1 diff)
-
mpi/romio/mpi-io/write.c (modified) (2 diffs)
-
mpi/romio/mpi-io/write_all.c (modified) (2 diffs)
-
mpi/romio/mpi-io/write_allb.c (modified) (2 diffs)
-
mpi/romio/mpi-io/write_alle.c (modified) (2 diffs)
-
mpi/romio/mpi-io/write_at.c (modified) (1 diff)
-
mpi/romio/mpi-io/write_atall.c (modified) (1 diff)
-
mpi/romio/mpi-io/write_ord.c (modified) (1 diff)
-
mpi/romio/mpi-io/write_ordb.c (modified) (1 diff)
-
mpi/romio/mpi-io/write_orde.c (modified) (1 diff)
-
mpi/romio/mpi-io/write_sh.c (modified) (1 diff)
-
mpi/romio/mpi2-other/info/info_delete.c (modified) (1 diff)
-
mpi/romio/mpi2-other/info/info_get.c (modified) (1 diff)
-
mpi/romio/mpi2-other/info/info_getvln.c (modified) (1 diff)
-
mpi/romio/mpi2-other/info/info_set.c (modified) (1 diff)
-
mpi/spawn/close_port.c (modified) (1 diff)
-
mpi/spawn/comm_accept.c (modified) (1 diff)
-
mpi/spawn/comm_connect.c (modified) (1 diff)
-
mpi/spawn/comm_spawn.c (modified) (1 diff)
-
mpi/spawn/comm_spawn_multiple.c (modified) (2 diffs)
-
mpi/spawn/lookup_name.c (modified) (1 diff)
-
mpi/spawn/publish_name.c (modified) (1 diff)
-
mpi/spawn/unpublish_name.c (modified) (1 diff)
-
mpi/topo/cart_create.c (modified) (1 diff)
-
mpi/topo/cart_map.c (modified) (2 diffs)
-
mpi/topo/cart_rank.c (modified) (1 diff)
-
mpi/topo/cart_sub.c (modified) (1 diff)
-
mpi/topo/graph_map.c (modified) (1 diff)
-
mpi/topo/graphcreate.c (modified) (1 diff)
-
mpi/topo/topo.h (modified) (1 diff)
-
mpid/ch3/include/mpidimpl.h (modified) (2 diffs)
-
mpid/ch3/include/mpidrma.h (modified) (1 diff)
-
mpid/ch3/src/ch3u_comm_spawn_multiple.c (modified) (1 diff)
-
mpid/ch3/src/ch3u_rma_ops.c (modified) (4 diffs)
-
mpid/ch3/src/ch3u_rma_sync.c (modified) (2 diffs)
-
mpid/ch3/src/mpid_comm_spawn_multiple.c (modified) (1 diff)
-
mpid/ch3/src/mpid_port.c (modified) (1 diff)
-
mpid/common/datatype/dataloop/dataloop_create.h (modified) (5 diffs)
-
mpid/common/datatype/dataloop/dataloop_create_blockindexed.c (modified) (4 diffs)
-
mpid/common/datatype/dataloop/dataloop_create_indexed.c (modified) (4 diffs)
-
mpid/common/datatype/dataloop/dataloop_create_struct.c (modified) (7 diffs)
-
mpid/common/datatype/mpid_datatype.h (modified) (4 diffs)
-
mpid/common/datatype/mpid_datatype_contents.c (modified) (1 diff)
-
mpid/common/datatype/mpid_type_blockindexed.c (modified) (1 diff)
-
mpid/common/datatype/mpid_type_indexed.c (modified) (1 diff)
-
mpid/common/datatype/mpid_type_struct.c (modified) (3 diffs)
-
util/info/info_delete.c (modified) (1 diff)
-
util/info/info_get.c (modified) (1 diff)
-
util/info/info_getvallen.c (modified) (1 diff)
-
util/info/info_set.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mpich2/branches/dev/mpi_binding_const/src/binding/f77/buildiface
r3819 r3914 2987 2987 #define FUNCNAME MPI_Status_f2c 2988 2988 2989 int MPI_Status_f2c( MPI_Fint *f_status, MPI_Status *c_status )2989 int MPI_Status_f2c( const MPI_Fint *f_status, MPI_Status *c_status ) 2990 2990 { 2991 2991 int mpi_errno = MPI_SUCCESS; … … 3046 3046 #define FUNCNAME MPI_Status_c2f 3047 3047 3048 int MPI_Status_c2f( MPI_Status *c_status, MPI_Fint *f_status )3048 int MPI_Status_c2f( const MPI_Status *c_status, MPI_Fint *f_status ) 3049 3049 { 3050 3050 int mpi_errno = MPI_SUCCESS; -
mpich2/branches/dev/mpi_binding_const/src/include/mpi.h.in
r3903 r3914 239 239 240 240 /* User combination function */ 241 typedef void (MPI_User_function) ( void *, void *,int *, MPI_Datatype * );241 typedef void (MPI_User_function) ( const void *, void *, const int *, MPI_Datatype * ); 242 242 243 243 /* MPI Attribute copy and delete functions */ … … 646 646 int MPI_Cart_shift(MPI_Comm, int, int, int *, int *); 647 647 int MPI_Cart_sub(MPI_Comm, const int *, MPI_Comm *); 648 int MPI_Cart_map(MPI_Comm, int, const int *, const int *, constint *);648 int MPI_Cart_map(MPI_Comm, int, const int *, const int *, int *); 649 649 int MPI_Graph_map(MPI_Comm, int, const int *, const int *, int *); 650 650 int MPI_Get_processor_name(char *, int *); … … 686 686 int MPI_Comm_spawn(const char *, /* const */ char *[], int, MPI_Info, int, MPI_Comm, MPI_Comm *, 687 687 int []); 688 int MPI_Comm_spawn_multiple(int, /* const */ char *[], /* const */ char **[], const int [], /* const */ MPI_Info [], int, 689 MPI_Comm, MPI_Comm *, int []); 688 int MPI_Comm_spawn_multiple(int, /* const */ char *[], /* const */ char **[], const int [], /* const */ MPI_Info [], int, MPI_Comm, MPI_Comm *, int []); 690 689 int MPI_Lookup_name(const char *, MPI_Info, char *); 691 690 int MPI_Open_port(MPI_Info, char *); … … 842 841 /* Here are the bindings of the profiling routines */ 843 842 #if !defined(MPI_BUILD_PROFILING) 844 int PMPI_Send( void*, int, MPI_Datatype, int, int, MPI_Comm);843 int PMPI_Send(const void*, int, MPI_Datatype, int, int, MPI_Comm); 845 844 int PMPI_Recv(void*, int, MPI_Datatype, int, int, MPI_Comm, MPI_Status *); 846 845 int PMPI_Get_count(MPI_Status *, MPI_Datatype, int *); 847 int PMPI_Bsend( void*, int, MPI_Datatype, int, int, MPI_Comm);848 int PMPI_Ssend( void*, int, MPI_Datatype, int, int, MPI_Comm);849 int PMPI_Rsend( void*, int, MPI_Datatype, int, int, MPI_Comm);846 int PMPI_Bsend(const void*, int, MPI_Datatype, int, int, MPI_Comm); 847 int PMPI_Ssend(const void*, int, MPI_Datatype, int, int, MPI_Comm); 848 int PMPI_Rsend(const void*, int, MPI_Datatype, int, int, MPI_Comm); 850 849 int PMPI_Buffer_attach( void* buffer, int); 851 850 int PMPI_Buffer_detach( void* buffer, int *); 852 int PMPI_Isend( void*, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *);853 int PMPI_Ibsend( void*, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *);854 int PMPI_Issend( void*, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *);855 int PMPI_Irsend( void*, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *);851 int PMPI_Isend(const void*, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *); 852 int PMPI_Ibsend(const void*, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *); 853 int PMPI_Issend(const void*, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *); 854 int PMPI_Irsend(const void*, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *); 856 855 int PMPI_Irecv(void*, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *); 857 856 int PMPI_Wait(MPI_Request *, MPI_Status *); … … 867 866 int PMPI_Probe(int, int, MPI_Comm, MPI_Status *); 868 867 int PMPI_Cancel(MPI_Request *); 869 int PMPI_Test_cancelled( MPI_Status *, int *);870 int PMPI_Send_init( void*, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *);871 int PMPI_Bsend_init( void*, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *);872 int PMPI_Ssend_init( void*, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *);873 int PMPI_Rsend_init( void*, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *);868 int PMPI_Test_cancelled(const MPI_Status *, int *); 869 int PMPI_Send_init(const void*, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *); 870 int PMPI_Bsend_init(const void*, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *); 871 int PMPI_Ssend_init(const void*, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *); 872 int PMPI_Rsend_init(const void*, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *); 874 873 int PMPI_Recv_init(void*, int, MPI_Datatype, int, int, MPI_Comm, MPI_Request *); 875 874 int PMPI_Start(MPI_Request *); 876 875 int PMPI_Startall(int, MPI_Request *); 877 int PMPI_Sendrecv( void *, int, MPI_Datatype, int, int, void *, int, MPI_Datatype, int, int, MPI_Comm, MPI_Status *);876 int PMPI_Sendrecv(const void *, int, MPI_Datatype, int, int, void *, int, MPI_Datatype, int, int, MPI_Comm, MPI_Status *); 878 877 int PMPI_Sendrecv_replace(void*, int, MPI_Datatype, int, int, int, int, MPI_Comm, MPI_Status *); 879 878 int PMPI_Type_contiguous(int, MPI_Datatype, MPI_Datatype *); 880 879 int PMPI_Type_vector(int, int, int, MPI_Datatype, MPI_Datatype *); 881 880 int PMPI_Type_hvector(int, int, MPI_Aint, MPI_Datatype, MPI_Datatype *); 882 int PMPI_Type_indexed(int, int *,int *, MPI_Datatype, MPI_Datatype *);883 int PMPI_Type_hindexed(int, int *,MPI_Aint *, MPI_Datatype, MPI_Datatype *);884 int PMPI_Type_struct(int, int *, MPI_Aint *,MPI_Datatype *, MPI_Datatype *);885 int PMPI_Address( void*, MPI_Aint *);881 int PMPI_Type_indexed(int, const int *, const int *, MPI_Datatype, MPI_Datatype *); 882 int PMPI_Type_hindexed(int, const int *, const MPI_Aint *, MPI_Datatype, MPI_Datatype *); 883 int PMPI_Type_struct(int, const int *, const MPI_Aint *, const MPI_Datatype *, MPI_Datatype *); 884 int PMPI_Address(const void*, MPI_Aint *); 886 885 int PMPI_Type_extent(MPI_Datatype, MPI_Aint *); 887 886 int PMPI_Type_size(MPI_Datatype, int *); … … 891 890 int PMPI_Type_free(MPI_Datatype *); 892 891 int PMPI_Get_elements(MPI_Status *, MPI_Datatype, int *); 893 int PMPI_Pack( void*, int, MPI_Datatype, void *, int, int *, MPI_Comm);894 int PMPI_Unpack( void*, int, int *, void *, int, MPI_Datatype, MPI_Comm);892 int PMPI_Pack(const void*, int, MPI_Datatype, void *, int, int *, MPI_Comm); 893 int PMPI_Unpack(const void*, int, int *, void *, int, MPI_Datatype, MPI_Comm); 895 894 int PMPI_Pack_size(int, MPI_Datatype, MPI_Comm, int *); 896 895 int PMPI_Barrier(MPI_Comm ); 897 int PMPI_Bcast(void* buffer, int, MPI_Datatype, int, MPI_Comm );898 int PMPI_Gather( void* , int, MPI_Datatype, void*, int, MPI_Datatype, int, MPI_Comm);899 int PMPI_Gatherv( void* , int, MPI_Datatype, void*, int *,int *, MPI_Datatype, int, MPI_Comm);900 int PMPI_Scatter( void* , int, MPI_Datatype, void*, int, MPI_Datatype, int, MPI_Comm);901 int PMPI_Scatterv( void* , int *, int *displs, MPI_Datatype, void*, int, MPI_Datatype, int, MPI_Comm);902 int PMPI_Allgather( void* , int, MPI_Datatype, void*, int, MPI_Datatype, MPI_Comm);903 int PMPI_Allgatherv( void* , int, MPI_Datatype, void*, int *,int *, MPI_Datatype, MPI_Comm);904 int PMPI_Alltoall( void* , int, MPI_Datatype, void*, int, MPI_Datatype, MPI_Comm);905 int PMPI_Alltoallv( void* , int *, int *, MPI_Datatype, void*, int *,int *, MPI_Datatype, MPI_Comm);906 int PMPI_Reduce( void* , void*, int, MPI_Datatype, MPI_Op, int, MPI_Comm);896 int PMPI_Bcast(void*, int, MPI_Datatype, int, MPI_Comm ); 897 int PMPI_Gather(const void* , int, MPI_Datatype, void*, int, MPI_Datatype, int, MPI_Comm); 898 int PMPI_Gatherv(const void* , int, MPI_Datatype, void*, const int *, const int *, MPI_Datatype, int, MPI_Comm); 899 int PMPI_Scatter(const void* , int, MPI_Datatype, void*, int, MPI_Datatype, int, MPI_Comm); 900 int PMPI_Scatterv(const void* , const int *, const int *, MPI_Datatype, void*, int, MPI_Datatype, int, MPI_Comm); 901 int PMPI_Allgather(const void* , int, MPI_Datatype, void*, int, MPI_Datatype, MPI_Comm); 902 int PMPI_Allgatherv(const void* , int, MPI_Datatype, void*, const int *, const int *, MPI_Datatype, MPI_Comm); 903 int PMPI_Alltoall(const void* , int, MPI_Datatype, void*, int, MPI_Datatype, MPI_Comm); 904 int PMPI_Alltoallv(const void* , const int *, const int *, MPI_Datatype, void*, const int *, const int *, MPI_Datatype, MPI_Comm); 905 int PMPI_Reduce(const void* , void*, int, MPI_Datatype, MPI_Op, int, MPI_Comm); 907 906 int PMPI_Op_create(MPI_User_function *, int, MPI_Op *); 908 907 int PMPI_Op_free( MPI_Op *); 909 int PMPI_Allreduce( void* , void*, int, MPI_Datatype, MPI_Op, MPI_Comm);910 int PMPI_Reduce_scatter( void* , void*,int *, MPI_Datatype, MPI_Op, MPI_Comm);911 int PMPI_Scan( void* , void*, int, MPI_Datatype, MPI_Op, MPI_Comm );908 int PMPI_Allreduce(const void* , void*, int, MPI_Datatype, MPI_Op, MPI_Comm); 909 int PMPI_Reduce_scatter(const void* , void*, const int *, MPI_Datatype, MPI_Op, MPI_Comm); 910 int PMPI_Scan(const void* , void*, int, MPI_Datatype, MPI_Op, MPI_Comm ); 912 911 int PMPI_Group_size(MPI_Group, int *); 913 912 int PMPI_Group_rank(MPI_Group, int *); 914 int PMPI_Group_translate_ranks (MPI_Group, int,int *, MPI_Group, int *);913 int PMPI_Group_translate_ranks(MPI_Group, int, const int *, MPI_Group, int *); 915 914 int PMPI_Group_compare(MPI_Group, MPI_Group, int *); 916 915 int PMPI_Comm_group(MPI_Comm, MPI_Group *); … … 918 917 int PMPI_Group_intersection(MPI_Group, MPI_Group, MPI_Group *); 919 918 int PMPI_Group_difference(MPI_Group, MPI_Group, MPI_Group *); 920 int PMPI_Group_incl(MPI_Group, int, int *, MPI_Group *);921 int PMPI_Group_excl(MPI_Group, int, int *, MPI_Group *);922 int PMPI_Group_range_incl(MPI_Group, int, int [][3], MPI_Group *);923 int PMPI_Group_range_excl(MPI_Group, int, int [][3], MPI_Group *);919 int PMPI_Group_incl(MPI_Group, int, const int *, MPI_Group *); 920 int PMPI_Group_excl(MPI_Group, int, const int *, MPI_Group *); 921 int PMPI_Group_range_incl(MPI_Group, int, /* const */ int [][3], MPI_Group *); 922 int PMPI_Group_range_excl(MPI_Group, int, /* const */ int [][3], MPI_Group *); 924 923 int PMPI_Group_free(MPI_Group *); 925 924 int PMPI_Comm_size(MPI_Comm, int *); … … 941 940 int PMPI_Attr_delete(MPI_Comm, int); 942 941 int PMPI_Topo_test(MPI_Comm, int *); 943 int PMPI_Cart_create(MPI_Comm, int, int *,int *, int, MPI_Comm *);942 int PMPI_Cart_create(MPI_Comm, int, const int *, const int *, int, MPI_Comm *); 944 943 int PMPI_Dims_create(int, int, int *); 945 int PMPI_Graph_create(MPI_Comm, int, int *,int *, int, MPI_Comm *);944 int PMPI_Graph_create(MPI_Comm, int, const int *, const int *, int, MPI_Comm *); 946 945 int PMPI_Graphdims_get(MPI_Comm, int *, int *); 947 946 int PMPI_Graph_get(MPI_Comm, int, int, int *, int *); 948 947 int PMPI_Cartdim_get(MPI_Comm, int *); 949 948 int PMPI_Cart_get(MPI_Comm, int, int *, int *, int *); 950 int PMPI_Cart_rank(MPI_Comm, int *, int *);949 int PMPI_Cart_rank(MPI_Comm, const int *, int *); 951 950 int PMPI_Cart_coords(MPI_Comm, int, int, int *); 952 951 int PMPI_Graph_neighbors_count(MPI_Comm, int, int *); 953 952 int PMPI_Graph_neighbors(MPI_Comm, int, int, int *); 954 953 int PMPI_Cart_shift(MPI_Comm, int, int, int *, int *); 955 int PMPI_Cart_sub(MPI_Comm, int *, MPI_Comm *);956 int PMPI_Cart_map(MPI_Comm, int, int *,int *, int *);957 int PMPI_Graph_map(MPI_Comm, int, int *,int *, int *);954 int PMPI_Cart_sub(MPI_Comm, const int *, MPI_Comm *); 955 int PMPI_Cart_map(MPI_Comm, int, const int *, const int *, int *); 956 int PMPI_Graph_map(MPI_Comm, int, const int *, const int *, int *); 958 957 int PMPI_Get_processor_name(char *, int *); 959 958 int PMPI_Get_version(int *, int *); … … 976 975 977 976 /* Process Creation and Management */ 978 int PMPI_Close_port(c har *);979 int PMPI_Comm_accept(c har *, MPI_Info, int, MPI_Comm, MPI_Comm *);980 int PMPI_Comm_connect(c har *, MPI_Info, int, MPI_Comm, MPI_Comm *);977 int PMPI_Close_port(const char *); 978 int PMPI_Comm_accept(const char *, MPI_Info, int, MPI_Comm, MPI_Comm *); 979 int PMPI_Comm_connect(const char *, MPI_Info, int, MPI_Comm, MPI_Comm *); 981 980 int PMPI_Comm_disconnect(MPI_Comm *); 982 981 int PMPI_Comm_get_parent(MPI_Comm *); 983 982 int PMPI_Comm_join(int, MPI_Comm *); 984 int PMPI_Comm_spawn(char *, char *[], int, MPI_Info, int, MPI_Comm, MPI_Comm *, 985 int []); 986 int PMPI_Comm_spawn_multiple(int, char *[], char **[], int [], MPI_Info [], int, 987 MPI_Comm, MPI_Comm *, int []); 988 int PMPI_Lookup_name(char *, MPI_Info, char *); 983 int PMPI_Comm_spawn(const char *, /* const */ char *[], int, MPI_Info, int, MPI_Comm, MPI_Comm *, 984 int []); 985 int PMPI_Comm_spawn_multiple(int, /* const */ char *[], /* const */ char **[], const int [], /* const */ MPI_Info [], int, MPI_Comm, MPI_Comm *, int []); 986 int PMPI_Lookup_name(const char *, MPI_Info, char *); 989 987 int PMPI_Open_port(MPI_Info, char *); 990 int PMPI_Publish_name(c har *, MPI_Info,char *);991 int PMPI_Unpublish_name(c har *, MPI_Info,char *);988 int PMPI_Publish_name(const char *, MPI_Info, const char *); 989 int PMPI_Unpublish_name(const char *, MPI_Info, const char *); 992 990 993 991 /* One-Sided Communications */ 994 int PMPI_Accumulate( void *, int, MPI_Datatype, int, MPI_Aint, int,995 MPI_Datatype, MPI_Op, MPI_Win);992 int PMPI_Accumulate(const void *, int, MPI_Datatype, int, MPI_Aint, int, 993 MPI_Datatype, MPI_Op, MPI_Win); 996 994 int PMPI_Get(void *, int, MPI_Datatype, int, MPI_Aint, int, MPI_Datatype, 997 995 MPI_Win); 998 int PMPI_Put( void *, int, MPI_Datatype, int, MPI_Aint, int, MPI_Datatype,999 MPI_Win);996 int PMPI_Put(const void *, int, MPI_Datatype, int, MPI_Aint, int, MPI_Datatype, 997 MPI_Win); 1000 998 int PMPI_Win_complete(MPI_Win); 1001 999 int PMPI_Win_create(void *, MPI_Aint, int, MPI_Info, MPI_Comm, MPI_Win *); … … 1011 1009 1012 1010 /* Extended Collective Operations */ 1013 int PMPI_Alltoallw(void *, int [], int [], MPI_Datatype [], void *, int [], 1014 int [], MPI_Datatype [], MPI_Comm); 1015 int PMPI_Exscan(void *, void *, int, MPI_Datatype, MPI_Op, MPI_Comm) ; 1011 int PMPI_Alltoallw(const void *, const int [], const int [], const MPI_Datatype [], void *, const int [], const int [], const MPI_Datatype [], MPI_Comm); 1012 int PMPI_Exscan(const void *, void *, int, MPI_Datatype, MPI_Op, MPI_Comm) ; 1016 1013 1017 1014 /* External Interfaces */ 1018 1015 int PMPI_Add_error_class(int *); 1019 1016 int PMPI_Add_error_code(int, int *); 1020 int PMPI_Add_error_string(int, c har *);1017 int PMPI_Add_error_string(int, const char *); 1021 1018 int PMPI_Comm_call_errhandler(MPI_Comm, int); 1022 1019 int PMPI_Comm_create_keyval(MPI_Comm_copy_attr_function *, … … 1027 1024 int PMPI_Comm_get_name(MPI_Comm, char *, int *); 1028 1025 int PMPI_Comm_set_attr(MPI_Comm, int, void *); 1029 int PMPI_Comm_set_name(MPI_Comm, c har *);1026 int PMPI_Comm_set_name(MPI_Comm, const char *); 1030 1027 int PMPI_File_call_errhandler(MPI_File, int); 1031 1028 int PMPI_Grequest_complete(MPI_Request); … … 1049 1046 int PMPI_Type_get_name(MPI_Datatype, char *, int *); 1050 1047 int PMPI_Type_set_attr(MPI_Datatype, int, void *); 1051 int PMPI_Type_set_name(MPI_Datatype, c har *);1048 int PMPI_Type_set_name(MPI_Datatype, const char *); 1052 1049 int PMPI_Type_match_size( int, int, MPI_Datatype *); 1053 1050 int PMPI_Win_call_errhandler(MPI_Win, int); … … 1059 1056 int PMPI_Win_get_name(MPI_Win, char *, int *); 1060 1057 int PMPI_Win_set_attr(MPI_Win, int, void *); 1061 int PMPI_Win_set_name(MPI_Win, c har *);1058 int PMPI_Win_set_name(MPI_Win, const char *); 1062 1059 1063 1060 /* Fortran 90-related functions. These routines are available only if … … 1078 1075 int PMPI_Finalized(int *); 1079 1076 int PMPI_Free_mem(void *); 1080 int PMPI_Get_address( void *, MPI_Aint *);1077 int PMPI_Get_address(const void *, MPI_Aint *); 1081 1078 int PMPI_Info_create(MPI_Info *); 1082 int PMPI_Info_delete(MPI_Info, c har *);1079 int PMPI_Info_delete(MPI_Info, const char *); 1083 1080 int PMPI_Info_dup(MPI_Info, MPI_Info *); 1084 1081 int PMPI_Info_free(MPI_Info *info); 1085 int PMPI_Info_get(MPI_Info, c har *, int, char *, int *);1082 int PMPI_Info_get(MPI_Info, const char *, int, char *, int *); 1086 1083 int PMPI_Info_get_nkeys(MPI_Info, int *); 1087 1084 int PMPI_Info_get_nthkey(MPI_Info, int, char *); 1088 int PMPI_Info_get_valuelen(MPI_Info, c har *, int *, int *);1089 int PMPI_Info_set(MPI_Info, c har *,char *);1090 int PMPI_Pack_external(c har *,void *, int, MPI_Datatype, void *, MPI_Aint,1091 MPI_Aint *);1092 int PMPI_Pack_external_size(c har *, int, MPI_Datatype, MPI_Aint *);1085 int PMPI_Info_get_valuelen(MPI_Info, const char *, int *, int *); 1086 int PMPI_Info_set(MPI_Info, const char *, const char *); 1087 int PMPI_Pack_external(const char *, const void *, int, MPI_Datatype, void *, MPI_Aint, 1088 MPI_Aint *); 1089 int PMPI_Pack_external_size(const char *, int, MPI_Datatype, MPI_Aint *); 1093 1090 int PMPI_Request_get_status(MPI_Request, int *, MPI_Status *); 1094 int PMPI_Status_c2f(MPI_Status *, MPI_Fint *); 1095 int PMPI_Status_f2c(MPI_Fint *, MPI_Status *); 1096 int PMPI_Type_create_darray(int, int, int, int [], int [], int [], int [], int, 1097 MPI_Datatype, MPI_Datatype *); 1098 int PMPI_Type_create_hindexed(int, int [], MPI_Aint [], MPI_Datatype, 1099 MPI_Datatype *); 1091 int PMPI_Status_c2f(const MPI_Status *, MPI_Fint *); 1092 int PMPI_Status_f2c(const MPI_Fint *, MPI_Status *); 1093 int PMPI_Type_create_darray(int, int, int, const int [], const int [], const int [], const int [], int, MPI_Datatype, MPI_Datatype *); 1094 int PMPI_Type_create_hindexed(int, const int [], const MPI_Aint [], MPI_Datatype, 1095 MPI_Datatype *); 1100 1096 int PMPI_Type_create_hvector(int, int, MPI_Aint, MPI_Datatype, MPI_Datatype *); 1101 int PMPI_Type_create_indexed_block(int, int, int [], MPI_Datatype,1097 int PMPI_Type_create_indexed_block(int, int, const int [], MPI_Datatype, 1102 1098 MPI_Datatype *); 1103 1099 int PMPI_Type_create_resized(MPI_Datatype, MPI_Aint, MPI_Aint, MPI_Datatype *); 1104 int PMPI_Type_create_struct(int, int [], MPI_Aint [],MPI_Datatype [],1105 MPI_Datatype *);1106 int PMPI_Type_create_subarray(int, int [], int [],int [], int, MPI_Datatype,1100 int PMPI_Type_create_struct(int, const int [], const MPI_Aint [], const MPI_Datatype [], 1101 MPI_Datatype *); 1102 int PMPI_Type_create_subarray(int, const int [], const int [], const int [], int, MPI_Datatype, 1107 1103 MPI_Datatype *); 1108 1104 int PMPI_Type_get_extent(MPI_Datatype, MPI_Aint *, MPI_Aint *); 1109 1105 int PMPI_Type_get_true_extent(MPI_Datatype, MPI_Aint *, MPI_Aint *); 1110 int PMPI_Unpack_external(c har *,void *, MPI_Aint, MPI_Aint *, void *, int,1106 int PMPI_Unpack_external(const char *, const void *, MPI_Aint, MPI_Aint *, void *, int, 1111 1107 MPI_Datatype); 1112 1108 int PMPI_Win_create_errhandler(MPI_Win_errhandler_fn *, MPI_Errhandler *); -
mpich2/branches/dev/mpi_binding_const/src/include/mpiimpl.h
r3837 r3914 1515 1515 typedef struct MPIRI_RMA_Ops { 1516 1516 int (*Win_free)(struct MPID_Win **); 1517 int (*Put)( void *, int, MPI_Datatype, int, MPI_Aint, int, MPI_Datatype,1517 int (*Put)(const void *, int, MPI_Datatype, int, MPI_Aint, int, MPI_Datatype, 1518 1518 struct MPID_Win *); 1519 1519 int (*Get)(void *, int, MPI_Datatype, int, MPI_Aint, int, MPI_Datatype, 1520 1520 struct MPID_Win *); 1521 int (*Accumulate)( void *, int, MPI_Datatype, int, MPI_Aint, int,1521 int (*Accumulate)(const void *, int, MPI_Datatype, int, MPI_Aint, int, 1522 1522 MPI_Datatype, MPI_Op, struct MPID_Win *); 1523 1523 int (*Win_fence)(int, struct MPID_Win *); … … 1817 1817 int (*Barrier) (MPID_Comm *); 1818 1818 int (*Bcast) (void*, int, MPI_Datatype, int, MPID_Comm * ); 1819 int (*Gather) ( void*, int, MPI_Datatype, void*, int, MPI_Datatype,1819 int (*Gather) (const void*, int, MPI_Datatype, void*, int, MPI_Datatype, 1820 1820 int, MPID_Comm *); 1821 int (*Gatherv) ( void*, int, MPI_Datatype, void*, int *,int *,1821 int (*Gatherv) (const void*, int, MPI_Datatype, void*, const int *, const int *, 1822 1822 MPI_Datatype, int, MPID_Comm *); 1823 int (*Scatter) ( void*, int, MPI_Datatype, void*, int, MPI_Datatype,1823 int (*Scatter) (const void*, int, MPI_Datatype, void*, int, MPI_Datatype, 1824 1824 int, MPID_Comm *); 1825 int (*Scatterv) ( void*, int *,int *, MPI_Datatype, void*, int,1825 int (*Scatterv) (const void*, const int *, const int *, MPI_Datatype, void*, int, 1826 1826 MPI_Datatype, int, MPID_Comm *); 1827 int (*Allgather) ( void*, int, MPI_Datatype, void*, int,1827 int (*Allgather) (const void*, int, MPI_Datatype, void*, int, 1828 1828 MPI_Datatype, MPID_Comm *); 1829 int (*Allgatherv) ( void*, int, MPI_Datatype, void*, int *,int *,1829 int (*Allgatherv) (const void*, int, MPI_Datatype, void*, const int *, const int *, 1830 1830 MPI_Datatype, MPID_Comm *); 1831 int (*Alltoall) ( void*, int, MPI_Datatype, void*, int, MPI_Datatype,1832 MPID_Comm *);1833 int (*Alltoallv) ( void*, int *, int *, MPI_Datatype, void*,int *,1834 int *, MPI_Datatype, MPID_Comm *);1835 int (*Alltoallw) ( void*, int *, int *, MPI_Datatype *, void*,int *,1836 int *,MPI_Datatype *, MPID_Comm *);1837 int (*Reduce) ( void*, void*, int, MPI_Datatype, MPI_Op, int,1831 int (*Alltoall) (const void*, int, MPI_Datatype, void*, int, MPI_Datatype, 1832 MPID_Comm *); 1833 int (*Alltoallv) (const void*, const int *, const int *, MPI_Datatype, void*, const int *, 1834 const int *, MPI_Datatype, MPID_Comm *); 1835 int (*Alltoallw) (const void*, const int *, const int *, const MPI_Datatype *, void*, const int *, 1836 const int *, const MPI_Datatype *, MPID_Comm *); 1837 int (*Reduce) (const void*, void*, int, MPI_Datatype, MPI_Op, int, 1838 1838 MPID_Comm *); 1839 int (*Allreduce) ( void*, void*, int, MPI_Datatype, MPI_Op,1839 int (*Allreduce) (const void*, void*, int, MPI_Datatype, MPI_Op, 1840 1840 MPID_Comm *); 1841 int (*Reduce_scatter) ( void*, void*,int *, MPI_Datatype, MPI_Op,1841 int (*Reduce_scatter) (const void*, void*, const int *, MPI_Datatype, MPI_Op, 1842 1842 MPID_Comm *); 1843 int (*Scan) ( void*, void*, int, MPI_Datatype, MPI_Op, MPID_Comm * );1844 int (*Exscan) ( void*, void*, int, MPI_Datatype, MPI_Op, MPID_Comm * );1843 int (*Scan) (const void*, void*, int, MPI_Datatype, MPI_Op, MPID_Comm * ); 1844 int (*Exscan) (const void*, void*, int, MPI_Datatype, MPI_Op, MPID_Comm * ); 1845 1845 1846 1846 } MPID_Collops; … … 1866 1866 int, MPI_Comm * ); 1867 1867 int (*cartMap) ( const MPID_Comm *, int, const int[], const int [], 1868 int * );1868 const int * ); 1869 1869 int (*graphCreate)( const MPID_Comm *, int, const int[], const int [], 1870 1870 int, MPI_Comm * ); … … 2660 2660 'MPI_SUCCESS' or a valid MPI error code. 2661 2661 @*/ 2662 int MPID_Comm_accept(c har *, MPID_Info *, int, MPID_Comm *, MPID_Comm **);2662 int MPID_Comm_accept(const char *, MPID_Info *, int, MPID_Comm *, MPID_Comm **); 2663 2663 2664 2664 /*@ … … 2681 2681 int MPID_Comm_disconnect(MPID_Comm *); 2682 2682 2683 int MPID_Comm_spawn_multiple(int, c har *[], char* *[],int [], MPID_Info* [],2683 int MPID_Comm_spawn_multiple(int, const char *[], char* *[], const int [], MPID_Info* [], 2684 2684 int, MPID_Comm *, MPID_Comm **, int []); 2685 2685 … … 3539 3539 sends/receives by setting the context offset to 3540 3540 MPID_CONTEXT_INTRA_COLL. */ 3541 int MPIC_Send( void *buf, int count, MPI_Datatype datatype, int dest, int tag,3541 int MPIC_Send(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, 3542 3542 MPI_Comm comm); 3543 3543 int MPIC_Recv(void *buf, int count, MPI_Datatype datatype, int source, int tag, 3544 3544 MPI_Comm comm, MPI_Status *status); 3545 int MPIC_Sendrecv( void *sendbuf, int sendcount, MPI_Datatype sendtype,3545 int MPIC_Sendrecv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, 3546 3546 int dest, int sendtag, void *recvbuf, int recvcount, 3547 3547 MPI_Datatype recvtype, int source, int recvtag, 3548 3548 MPI_Comm comm, MPI_Status *status); 3549 int MPIR_Localcopy( void *sendbuf, int sendcount, MPI_Datatype sendtype,3549 int MPIR_Localcopy(const void *sendbuf, int sendcount, MPI_Datatype sendtype, 3550 3550 void *recvbuf, int recvcount, MPI_Datatype recvtype); 3551 3551 int MPIC_Irecv(void *buf, int count, MPI_Datatype datatype, int 3552 3552 source, int tag, MPI_Comm comm, MPI_Request *request); 3553 int MPIC_Isend( void *buf, int count, MPI_Datatype datatype, int dest, int tag,3553 int MPIC_Isend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, 3554 3554 MPI_Comm comm, MPI_Request *request); 3555 3555 int MPIC_Wait(MPID_Request * request_ptr); 3556 3556 3557 3557 3558 void MPIR_MAXF ( void *, void *,int *, MPI_Datatype * ) ;3559 void MPIR_MINF ( void *, void *,int *, MPI_Datatype * ) ;3560 void MPIR_SUM ( void *, void *,int *, MPI_Datatype * ) ;3561 void MPIR_PROD ( void *, void *,int *, MPI_Datatype * ) ;3562 void MPIR_LAND ( void *, void *,int *, MPI_Datatype * ) ;3563 void MPIR_BAND ( void *, void *,int *, MPI_Datatype * ) ;3564 void MPIR_LOR ( void *, void *,int *, MPI_Datatype * ) ;3565 void MPIR_BOR ( void *, void *,int *, MPI_Datatype * ) ;3566 void MPIR_LXOR ( void *, void *,int *, MPI_Datatype * ) ;3567 void MPIR_BXOR ( void *, void *,int *, MPI_Datatype * ) ;3568 void MPIR_MAXLOC ( void *, void *,int *, MPI_Datatype * ) ;3569 void MPIR_MINLOC ( void *, void *,int *, MPI_Datatype * ) ;3558 void MPIR_MAXF ( const void *, void *, const int *, MPI_Datatype * ) ; 3559 void MPIR_MINF ( const void *, void *, const int *, MPI_Datatype * ) ; 3560 void MPIR_SUM ( const void *, void *, const int *, MPI_Datatype * ) ; 3561 void MPIR_PROD ( const void *, void *, const int *, MPI_Datatype * ) ; 3562 void MPIR_LAND ( const void *, void *, const int *, MPI_Datatype * ) ; 3563 void MPIR_BAND ( const void *, void *, const int *, MPI_Datatype * ) ; 3564 void MPIR_LOR ( const void *, void *, const int *, MPI_Datatype * ) ; 3565 void MPIR_BOR ( const void *, void *, const int *, MPI_Datatype * ) ; 3566 void MPIR_LXOR ( const void *, void *, const int *, MPI_Datatype * ) ; 3567 void MPIR_BXOR ( const void *, void *, const int *, MPI_Datatype * ) ; 3568 void MPIR_MAXLOC ( const void *, void *, const int *, MPI_Datatype * ) ; 3569 void MPIR_MINLOC ( const void *, void *, const int *, MPI_Datatype * ) ; 3570 3570 3571 3571 int MPIR_MAXF_check_dtype ( MPI_Datatype ) ; … … 3596 3596 #endif /* MPIR_MAX */ 3597 3597 3598 int MPIR_Allgather( void *sendbuf, int sendcount, MPI_Datatype sendtype,3598 int MPIR_Allgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype, 3599 3599 void *recvbuf, int recvcount, MPI_Datatype recvtype, 3600 3600 MPID_Comm *comm_ptr ); 3601 int MPIR_Allgather_inter( void *sendbuf, int sendcount, MPI_Datatype sendtype,3601 int MPIR_Allgather_inter(const void *sendbuf, int sendcount, MPI_Datatype sendtype, 3602 3602 void *recvbuf, int recvcount, MPI_Datatype recvtype, 3603 3603 MPID_Comm *comm_ptr ); 3604 int MPIR_Allgatherv( void *sendbuf, int sendcount, MPI_Datatype sendtype,3605 void *recvbuf, int *recvcounts,int *displs,3604 int MPIR_Allgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, 3605 void *recvbuf, const int *recvcounts, const int *displs, 3606 3606 MPI_Datatype recvtype, MPID_Comm *comm_ptr ); 3607 int MPIR_Allgatherv_inter( void *sendbuf, int sendcount, MPI_Datatype sendtype,3608 void *recvbuf, int *recvcounts,int *displs,3607 int MPIR_Allgatherv_inter(const void *sendbuf, int sendcount, MPI_Datatype sendtype, 3608 void *recvbuf, const int *recvcounts, const int *displs, 3609 3609 MPI_Datatype recvtype, MPID_Comm *comm_ptr ); 3610 int MPIR_Allreduce( void *sendbuf, void *recvbuf, int count,3610 int MPIR_Allreduce(const void *sendbuf, void *recvbuf, int count, 3611 3611 MPI_Datatype datatype, MPI_Op op, MPID_Comm *comm_ptr); 3612 int MPIR_Allreduce_inter( void *sendbuf, void *recvbuf, int count,3612 int MPIR_Allreduce_inter(const void *sendbuf, void *recvbuf, int count, 3613 3613 MPI_Datatype datatype, MPI_Op op, MPID_Comm *comm_ptr); 3614 int MPIR_Alltoall( void *sendbuf, int sendcount, MPI_Datatype sendtype,3614 int MPIR_Alltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype, 3615 3615 void *recvbuf, int recvcount, MPI_Datatype recvtype, 3616 3616 MPID_Comm *comm_ptr); 3617 int MPIR_Alltoall_inter( void *sendbuf, int sendcount, MPI_Datatype sendtype,3617 int MPIR_Alltoall_inter(const void *sendbuf, int sendcount, MPI_Datatype sendtype, 3618 3618 void *recvbuf, int recvcount, MPI_Datatype recvtype, 3619 3619 MPID_Comm *comm_ptr); 3620 int MPIR_Alltoallv( void *sendbuf, int *sendcnts,int *sdispls,3621 MPI_Datatype sendtype, void *recvbuf, int *recvcnts,3622 int *rdispls, MPI_Datatype recvtype, MPID_Comm *comm_ptr);3623 int MPIR_Alltoallv_inter( void *sendbuf, int *sendcnts,int *sdispls,3624 MPI_Datatype sendtype, void *recvbuf, int *recvcnts,3625 int *rdispls, MPI_Datatype recvtype,3620 int MPIR_Alltoallv(const void *sendbuf, const int *sendcnts, const int *sdispls, 3621 MPI_Datatype sendtype, void *recvbuf, const int *recvcnts, 3622 const int *rdispls, MPI_Datatype recvtype, MPID_Comm *comm_ptr); 3623 int MPIR_Alltoallv_inter(const void *sendbuf, const int *sendcnts, const int *sdispls, 3624 MPI_Datatype sendtype, void *recvbuf, const int *recvcnts, 3625 const int *rdispls, MPI_Datatype recvtype, 3626 3626 MPID_Comm *comm_ptr); 3627 int MPIR_Alltoallw( void *sendbuf, int *sendcnts,int *sdispls,3628 MPI_Datatype *sendtypes, void *recvbuf,int *recvcnts,3629 int *rdispls,MPI_Datatype *recvtypes, MPID_Comm *comm_ptr);3630 int MPIR_Alltoallw_inter( void *sendbuf, int *sendcnts,int *sdispls,3631 MPI_Datatype *sendtypes, void *recvbuf,3632 int *recvcnts, int *rdispls,MPI_Datatype *recvtypes,3627 int MPIR_Alltoallw(const void *sendbuf, const int *sendcnts, const int *sdispls, 3628 const MPI_Datatype *sendtypes, void *recvbuf, const int *recvcnts, 3629 const int *rdispls, const MPI_Datatype *recvtypes, MPID_Comm *comm_ptr); 3630 int MPIR_Alltoallw_inter(const void *sendbuf, const int *sendcnts, const int *sdispls, 3631 const MPI_Datatype *sendtypes, void *recvbuf, 3632 const int *recvcnts, const int *rdispls, const MPI_Datatype *recvtypes, 3633 3633 MPID_Comm *comm_ptr); 3634 3634 int MPIR_Barrier_inter( MPID_Comm *comm_ptr); … … 3639 3639 int MPIR_Bcast_or_coll_fn (void *buffer, int count, MPI_Datatype datatype, int 3640 3640 root, MPID_Comm *comm_ptr); 3641 int MPIR_Exscan( void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype,3641 int MPIR_Exscan(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, 3642 3642 MPI_Op op, MPID_Comm *comm_ptr ); 3643 int MPIR_Gather ( void *sendbuf, int sendcnt, MPI_Datatype sendtype,3643 int MPIR_Gather (const void *sendbuf, int sendcnt, MPI_Datatype sendtype, 3644 3644 void *recvbuf, int recvcnt, MPI_Datatype recvtype, 3645 3645 int root, MPID_Comm *comm_ptr); 3646 int MPIR_Gather_inter ( void *sendbuf, int sendcnt, MPI_Datatype sendtype,3646 int MPIR_Gather_inter (const void *sendbuf, int sendcnt, MPI_Datatype sendtype, 3647 3647 void *recvbuf, int recvcnt, MPI_Datatype recvtype, 3648 3648 int root, MPID_Comm *comm_ptr ); 3649 int MPIR_Gatherv ( void *sendbuf, int sendcnt, MPI_Datatype sendtype,3650 void *recvbuf, int *recvcnts,int *displs,3649 int MPIR_Gatherv (const void *sendbuf, int sendcnt, MPI_Datatype sendtype, 3650 void *recvbuf, const int *recvcnts, const int *displs, 3651 3651 MPI_Datatype recvtype, int root, MPID_Comm *comm_ptr); 3652 int MPIR_Reduce_scatter( void *sendbuf, void *recvbuf,int *recvcnts,3652 int MPIR_Reduce_scatter(const void *sendbuf, void *recvbuf, const int *recvcnts, 3653 3653 MPI_Datatype datatype, MPI_Op op, MPID_Comm *comm_ptr); 3654 int MPIR_Reduce_scatter_inter( void *sendbuf, void *recvbuf,int *recvcnts,3654 int MPIR_Reduce_scatter_inter(const void *sendbuf, void *recvbuf, const int *recvcnts, 3655 3655 MPI_Datatype datatype, MPI_Op op, 3656 3656 MPID_Comm *comm_ptr); 3657 int MPIR_Reduce( void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype,3657 int MPIR_Reduce(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, 3658 3658 MPI_Op op, int root, MPID_Comm *comm_ptr ); 3659 int MPIR_Reduce_or_coll_fn( void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype,3659 int MPIR_Reduce_or_coll_fn(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, 3660 3660 MPI_Op op, int root, MPID_Comm *comm_ptr ); 3661 int MPIR_Reduce_inter ( void *sendbuf, void *recvbuf, int count, MPI_Datatype3661 int MPIR_Reduce_inter (const void *sendbuf, void *recvbuf, int count, MPI_Datatype 3662 3662 datatype, MPI_Op op, int root, MPID_Comm *comm_ptr); 3663 int MPIR_Scan( void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype,3663 int MPIR_Scan(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, 3664 3664 MPI_Op op, MPID_Comm *comm_ptr); 3665 int MPIR_Scatter( void *sendbuf, int sendcnt, MPI_Datatype sendtype,3665 int MPIR_Scatter(const void *sendbuf, int sendcnt, MPI_Datatype sendtype, 3666 3666 void *recvbuf, int recvcnt, MPI_Datatype recvtype, 3667 3667 int root, MPID_Comm *comm_ptr ); 3668 int MPIR_Scatter_inter( void *sendbuf, int sendcnt, MPI_Datatype sendtype,3668 int MPIR_Scatter_inter(const void *sendbuf, int sendcnt, MPI_Datatype sendtype, 3669 3669 void *recvbuf, int recvcnt, MPI_Datatype recvtype, 3670 3670 int root, MPID_Comm *comm_ptr ); 3671 int MPIR_Scatterv ( void *sendbuf, int *sendcnts,int *displs,3671 int MPIR_Scatterv (const void *sendbuf, const int *sendcnts, const int *displs, 3672 3672 MPI_Datatype sendtype, void *recvbuf, int recvcnt, 3673 3673 MPI_Datatype recvtype, int root, MPID_Comm -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/allgather.c
r3793 r3914 72 72 one in some cases */ 73 73 int MPIR_Allgather ( 74 void *sendbuf,74 const void *sendbuf, 75 75 int sendcount, 76 76 MPI_Datatype sendtype, … … 586 586 in some cases */ 587 587 int MPIR_Allgather_inter ( 588 void *sendbuf,588 const void *sendbuf, 589 589 int sendcount, 590 590 MPI_Datatype sendtype, … … 743 743 .N MPI_ERR_BUFFER 744 744 @*/ 745 int MPI_Allgather( void *sendbuf, int sendcount, MPI_Datatype sendtype,745 int MPI_Allgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype, 746 746 void *recvbuf, int recvcount, MPI_Datatype recvtype, 747 747 MPI_Comm comm) -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/allgatherv.c
r3177 r3914 65 65 in some cases */ 66 66 int MPIR_Allgatherv ( 67 void *sendbuf,67 const void *sendbuf, 68 68 int sendcount, 69 69 MPI_Datatype sendtype, 70 70 void *recvbuf, 71 int *recvcounts,72 int *displs,71 const int *recvcounts, 72 const int *displs, 73 73 MPI_Datatype recvtype, 74 74 MPID_Comm *comm_ptr ) … … 747 747 /* not declared static because a machine-specific function may call this one in some cases */ 748 748 int MPIR_Allgatherv_inter ( 749 void *sendbuf,749 const void *sendbuf, 750 750 int sendcount, 751 751 MPI_Datatype sendtype, 752 752 void *recvbuf, 753 int *recvcounts,754 int *displs,753 const int *recvcounts, 754 const int *displs, 755 755 MPI_Datatype recvtype, 756 756 MPID_Comm *comm_ptr ) … … 900 900 .N MPI_ERR_TYPE 901 901 @*/ 902 int MPI_Allgatherv( void *sendbuf, int sendcount, MPI_Datatype sendtype,903 void *recvbuf, int *recvcounts,int *displs,902 int MPI_Allgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, 903 void *recvbuf, const int *recvcounts, const int *displs, 904 904 MPI_Datatype recvtype, MPI_Comm comm) 905 905 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/allreduce.c
r3794 r3914 94 94 95 95 int MPIR_Allreduce ( 96 void *sendbuf,96 const void *sendbuf, 97 97 void *recvbuf, 98 98 int count, … … 490 490 #define FCNAME "MPIR_Allreduce_inter" 491 491 int MPIR_Allreduce_inter ( 492 void *sendbuf,492 const void *sendbuf, 493 493 void *recvbuf, 494 494 int count, … … 594 594 .N MPI_ERR_COMM 595 595 @*/ 596 int MPI_Allreduce (void *sendbuf, void *recvbuf, int count,597 MPI_Datatype datatype, MPI_Op op, MPI_Comm comm)596 int MPI_Allreduce(const void *sendbuf, void *recvbuf, int count, 597 MPI_Datatype datatype, MPI_Op op, MPI_Comm comm) 598 598 { 599 599 static const char FCNAME[] = "MPI_Allreduce"; -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/alltoall.c
r3177 r3914 68 68 /* not declared static because a machine-specific function may call this one in some cases */ 69 69 int MPIR_Alltoall( 70 void *sendbuf,70 const void *sendbuf, 71 71 int sendcount, 72 72 MPI_Datatype sendtype, … … 497 497 /* not declared static because a machine-specific function may call this one in some cases */ 498 498 int MPIR_Alltoall_inter( 499 void *sendbuf,499 const void *sendbuf, 500 500 int sendcount, 501 501 MPI_Datatype sendtype, … … 607 607 .N MPI_ERR_BUFFER 608 608 @*/ 609 int MPI_Alltoall( void *sendbuf, int sendcount, MPI_Datatype sendtype,609 int MPI_Alltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype, 610 610 void *recvbuf, int recvcount, MPI_Datatype recvtype, 611 611 MPI_Comm comm) -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/alltoallv.c
r3177 r3914 46 46 /* not declared static because a machine-specific function may call this one in some cases */ 47 47 int MPIR_Alltoallv ( 48 void *sendbuf,49 int *sendcnts,50 int *sdispls,51 MPI_Datatype sendtype,52 void *recvbuf,53 int *recvcnts,54 int *rdispls,55 MPI_Datatype recvtype,56 MPID_Comm *comm_ptr )48 const void *sendbuf, 49 const int *sendcnts, 50 const int *sdispls, 51 MPI_Datatype sendtype, 52 void *recvbuf, 53 const int *recvcnts, 54 const int *rdispls, 55 MPI_Datatype recvtype, 56 MPID_Comm *comm_ptr ) 57 57 { 58 58 static const char FCNAME[] = "MPIR_Alltoallv"; … … 157 157 /* not declared static because a machine-specific function may call this one in some cases */ 158 158 int MPIR_Alltoallv_inter ( 159 void *sendbuf,160 int *sendcnts,161 int *sdispls,159 const void *sendbuf, 160 const int *sendcnts, 161 const int *sdispls, 162 162 MPI_Datatype sendtype, 163 163 void *recvbuf, 164 int *recvcnts,165 int *rdispls,164 const int *recvcnts, 165 const int *rdispls, 166 166 MPI_Datatype recvtype, 167 167 MPID_Comm *comm_ptr ) … … 287 287 .N MPI_ERR_BUFFER 288 288 @*/ 289 int MPI_Alltoallv( void *sendbuf, int *sendcnts,int *sdispls,290 MPI_Datatype sendtype, void *recvbuf, int *recvcnts,291 int *rdispls, MPI_Datatype recvtype, MPI_Comm comm)289 int MPI_Alltoallv(const void *sendbuf, const int *sendcnts, const int *sdispls, 290 MPI_Datatype sendtype, void *recvbuf, const int *recvcnts, 291 const int *rdispls, MPI_Datatype recvtype, MPI_Comm comm) 292 292 { 293 293 static const char FCNAME[] = "MPI_Alltoallv"; -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/alltoallw.c
r3793 r3914 45 45 /* not declared static because a machine-specific function may call this one in some cases */ 46 46 int MPIR_Alltoallw ( 47 void *sendbuf,48 int *sendcnts,49 int *sdispls,50 MPI_Datatype *sendtypes,51 void *recvbuf,52 int *recvcnts,53 int *rdispls,54 MPI_Datatype *recvtypes,55 MPID_Comm *comm_ptr )47 const void *sendbuf, 48 const int *sendcnts, 49 const int *sdispls, 50 const MPI_Datatype *sendtypes, 51 void *recvbuf, 52 const int *recvcnts, 53 const int *rdispls, 54 const MPI_Datatype *recvtypes, 55 MPID_Comm *comm_ptr ) 56 56 { 57 57 static const char FCNAME[] = "MPIR_Alltoallw"; … … 174 174 /* not declared static because a machine-specific function may call this one in some cases */ 175 175 int MPIR_Alltoallw_inter ( 176 void *sendbuf,177 int *sendcnts,178 int *sdispls,179 MPI_Datatype *sendtypes,180 void *recvbuf,181 int *recvcnts,182 int *rdispls,183 MPI_Datatype *recvtypes,184 MPID_Comm *comm_ptr )176 const void *sendbuf, 177 const int *sendcnts, 178 const int *sdispls, 179 const MPI_Datatype *sendtypes, 180 void *recvbuf, 181 const int *recvcnts, 182 const int *rdispls, 183 const MPI_Datatype *recvtypes, 184 MPID_Comm *comm_ptr ) 185 185 { 186 186 /* Intercommunicator alltoallw. We use a pairwise exchange algorithm … … 300 300 .N MPI_ERR_TYPE 301 301 @*/ 302 int MPI_Alltoallw( void *sendbuf, int *sendcnts,int *sdispls,303 MPI_Datatype *sendtypes, void *recvbuf,int *recvcnts,304 int *rdispls,MPI_Datatype *recvtypes, MPI_Comm comm)302 int MPI_Alltoallw(const void *sendbuf, const int *sendcnts, const int *sdispls, 303 const MPI_Datatype *sendtypes, void *recvbuf, const int *recvcnts, 304 const int *rdispls, const MPI_Datatype *recvtypes, MPI_Comm comm) 305 305 { 306 306 static const char FCNAME[] = "MPI_Alltoallw"; -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/exscan.c
r3177 r3914 71 71 /* not declared static because a machine-specific function may call this one in some cases */ 72 72 int MPIR_Exscan ( 73 void *sendbuf,73 const void *sendbuf, 74 74 void *recvbuf, 75 75 int count, … … 320 320 .N MPI_ERR_BUFFER_ALIAS 321 321 @*/ 322 int MPI_Exscan( void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype,322 int MPI_Exscan(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, 323 323 MPI_Op op, MPI_Comm comm) 324 324 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/gather.c
r3177 r3914 45 45 /* begin:nested */ 46 46 int MPIR_Gather ( 47 void *sendbuf,48 int sendcnt,49 MPI_Datatype sendtype,50 void *recvbuf,51 int recvcnt,52 MPI_Datatype recvtype,53 int root,54 MPID_Comm *comm_ptr )47 const void *sendbuf, 48 int sendcnt, 49 MPI_Datatype sendtype, 50 void *recvbuf, 51 int recvcnt, 52 MPI_Datatype recvtype, 53 int root, 54 MPID_Comm *comm_ptr ) 55 55 { 56 56 static const char FCNAME[] = "MPIR_Gather"; … … 412 412 /* not declared static because a machine-specific function may call this one in some cases */ 413 413 int MPIR_Gather_inter ( 414 void *sendbuf,415 int sendcnt,416 MPI_Datatype sendtype,417 void *recvbuf,418 int recvcnt,419 MPI_Datatype recvtype,420 int root,421 MPID_Comm *comm_ptr )414 const void *sendbuf, 415 int sendcnt, 416 MPI_Datatype sendtype, 417 void *recvbuf, 418 int recvcnt, 419 MPI_Datatype recvtype, 420 int root, 421 MPID_Comm *comm_ptr ) 422 422 { 423 423 /* Intercommunicator gather. … … 609 609 .N MPI_ERR_BUFFER 610 610 @*/ 611 int MPI_Gather( void *sendbuf, int sendcnt, MPI_Datatype sendtype,611 int MPI_Gather(const void *sendbuf, int sendcnt, MPI_Datatype sendtype, 612 612 void *recvbuf, int recvcnt, MPI_Datatype recvtype, 613 613 int root, MPI_Comm comm) -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/gatherv.c
r3177 r3914 43 43 /* not declared static because it is called in intercommunicator allgatherv */ 44 44 int MPIR_Gatherv ( 45 void *sendbuf,46 int sendcnt,47 MPI_Datatype sendtype,48 void *recvbuf,49 int *recvcnts,50 int *displs,51 MPI_Datatype recvtype,52 int root,53 MPID_Comm *comm_ptr )45 const void *sendbuf, 46 int sendcnt, 47 MPI_Datatype sendtype, 48 void *recvbuf, 49 const int *recvcnts, 50 const int *displs, 51 MPI_Datatype recvtype, 52 int root, 53 MPID_Comm *comm_ptr ) 54 54 { 55 55 static const char FCNAME[] = "MPIR_Gatherv"; … … 201 201 .N MPI_ERR_BUFFER 202 202 @*/ 203 int MPI_Gatherv( void *sendbuf, int sendcnt, MPI_Datatype sendtype,204 void *recvbuf, int *recvcnts,int *displs,203 int MPI_Gatherv(const void *sendbuf, int sendcnt, MPI_Datatype sendtype, 204 void *recvbuf, const int *recvcnts, const int *displs, 205 205 MPI_Datatype recvtype, int root, MPI_Comm comm) 206 206 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/helper_fns.c
r3718 r3914 20 20 #undef FCNAME 21 21 #define FCNAME "MPIC_Send" 22 int MPIC_Send( void *buf, int count, MPI_Datatype datatype, int dest, int tag,22 int MPIC_Send(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, 23 23 MPI_Comm comm) 24 24 { … … 99 99 #undef FCNAME 100 100 #define FCNAME "MPIC_Sendrecv" 101 int MPIC_Sendrecv( void *sendbuf, int sendcount, MPI_Datatype sendtype,101 int MPIC_Sendrecv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, 102 102 int dest, int sendtag, void *recvbuf, int recvcount, 103 103 MPI_Datatype recvtype, int source, int recvtag, … … 143 143 #undef FCNAME 144 144 #define FCNAME "MPIR_Localcopy" 145 int MPIR_Localcopy( void *sendbuf, int sendcount, MPI_Datatype sendtype,145 int MPIR_Localcopy(const void *sendbuf, int sendcount, MPI_Datatype sendtype, 146 146 void *recvbuf, int recvcount, MPI_Datatype recvtype) 147 147 { … … 290 290 #undef FCNAME 291 291 #define FCNAME "MPIC_Isend" 292 int MPIC_Isend( void *buf, int count, MPI_Datatype datatype, int dest, int tag,292 int MPIC_Isend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, 293 293 MPI_Comm comm, MPI_Request *request) 294 294 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/opband.c
r1245 r3914 16 16 #endif 17 17 void MPIR_BAND ( 18 void *invec,18 const void *invec, 19 19 void *inoutvec, 20 int *Len,20 const int *Len, 21 21 MPI_Datatype *type ) 22 22 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/opbor.c
r1245 r3914 16 16 #endif 17 17 void MPIR_BOR ( 18 void *invec,18 const void *invec, 19 19 void *inoutvec, 20 int *Len,20 const int *Len, 21 21 MPI_Datatype *type ) 22 22 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/opbxor.c
r1245 r3914 16 16 #endif 17 17 void MPIR_BXOR ( 18 void *invec,18 const void *invec, 19 19 void *inoutvec, 20 int *Len,20 const int *Len, 21 21 MPI_Datatype *type ) 22 22 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/opland.c
r1245 r3914 18 18 #endif 19 19 void MPIR_LAND ( 20 void *invec,20 const void *invec, 21 21 void *inoutvec, 22 int *Len,22 const int *Len, 23 23 MPI_Datatype *type ) 24 24 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/oplor.c
r1245 r3914 19 19 #endif 20 20 void MPIR_LOR ( 21 void *invec,21 const void *invec, 22 22 void *inoutvec, 23 int *Len,23 const int *Len, 24 24 MPI_Datatype *type ) 25 25 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/oplxor.c
r1245 r3914 19 19 #endif 20 20 void MPIR_LXOR ( 21 void *invec,21 const void *invec, 22 22 void *inoutvec, 23 int *Len,23 const int *Len, 24 24 MPI_Datatype *type ) 25 25 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/opmax.c
r1245 r3914 13 13 */ 14 14 void MPIR_MAXF( 15 void *invec,15 const void *invec, 16 16 void *inoutvec, 17 int *Len,17 const int *Len, 18 18 MPI_Datatype *type ) 19 19 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/opmaxloc.c
r1245 r3914 43 43 44 44 void MPIR_MAXLOC( 45 void *invec,46 void *inoutvec,47 int *Len,48 MPI_Datatype *type )45 const void *invec, 46 void *inoutvec, 47 const int *Len, 48 MPI_Datatype *type ) 49 49 { 50 50 static const char FCNAME[] = "MPIR_MAXLOC"; -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/opmin.c
r1245 r3914 13 13 */ 14 14 void MPIR_MINF ( 15 void *invec,16 void *inoutvec,17 int *Len,18 MPI_Datatype *type )15 const void *invec, 16 void *inoutvec, 17 const int *Len, 18 MPI_Datatype *type ) 19 19 { 20 20 static const char FCNAME[] = "MPIR_MINF"; -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/opminloc.c
r1245 r3914 42 42 43 43 void MPIR_MINLOC( 44 void *invec,45 void *inoutvec,46 int *Len,47 MPI_Datatype *type )44 const void *invec, 45 void *inoutvec, 46 const int *Len, 47 MPI_Datatype *type ) 48 48 { 49 49 static const char FCNAME[] = "MPIR_MINLOC"; -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/opprod.c
r2983 r3914 15 15 16 16 void MPIR_PROD ( 17 void *invec,17 const void *invec, 18 18 void *inoutvec, 19 int *Len,19 const int *Len, 20 20 MPI_Datatype *type ) 21 21 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/opsum.c
r2983 r3914 20 20 21 21 void MPIR_SUM ( 22 void *invec,23 void *inoutvec,24 int *Len,25 MPI_Datatype *type )22 const void *invec, 23 void *inoutvec, 24 const int *Len, 25 MPI_Datatype *type ) 26 26 { 27 27 static const char FCNAME[] = "MPIR_SUM"; -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/red_scat.c
r3810 r3914 74 74 /* not declared static because a machine-specific function may call this one in some cases */ 75 75 int MPIR_Reduce_scatter ( 76 void *sendbuf,76 const void *sendbuf, 77 77 void *recvbuf, 78 int *recvcnts,78 const int *recvcnts, 79 79 MPI_Datatype datatype, 80 80 MPI_Op op, … … 898 898 /* not declared static because a machine-specific function may call this one in some cases */ 899 899 int MPIR_Reduce_scatter_inter ( 900 void *sendbuf,900 const void *sendbuf, 901 901 void *recvbuf, 902 int *recvcnts,902 const int *recvcnts, 903 903 MPI_Datatype datatype, 904 904 MPI_Op op, … … 1078 1078 .N MPI_ERR_BUFFER_ALIAS 1079 1079 @*/ 1080 int MPI_Reduce_scatter( void *sendbuf, void *recvbuf,int *recvcnts,1080 int MPI_Reduce_scatter(const void *sendbuf, void *recvbuf, const int *recvcnts, 1081 1081 MPI_Datatype datatype, MPI_Op op, MPI_Comm comm) 1082 1082 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/reduce.c
r3794 r3914 33 33 #define FCNAME MPIU_QUOTE(FUNCNAME) 34 34 static int MPIR_Reduce_binomial ( 35 void *sendbuf,35 const void *sendbuf, 36 36 void *recvbuf, 37 37 int count, … … 274 274 #define FCNAME MPIU_QUOTE(FUNCNAME) 275 275 static int MPIR_Reduce_redscat_gather ( 276 void *sendbuf,276 const void *sendbuf, 277 277 void *recvbuf, 278 278 int count, … … 712 712 #define FCNAME MPIU_QUOTE(FUNCNAME) 713 713 int MPIR_Reduce ( 714 void *sendbuf,714 const void *sendbuf, 715 715 void *recvbuf, 716 716 int count, … … 787 787 #define FCNAME MPIU_QUOTE(FUNCNAME) 788 788 int MPIR_Reduce_or_coll_fn( 789 void *sendbuf,789 const void *sendbuf, 790 790 void *recvbuf, 791 791 int count, … … 819 819 #define FCNAME MPIU_QUOTE(FUNCNAME) 820 820 int MPIR_Reduce_inter ( 821 void *sendbuf,821 const void *sendbuf, 822 822 void *recvbuf, 823 823 int count, … … 952 952 953 953 @*/ 954 int MPI_Reduce( void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype,954 int MPI_Reduce(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, 955 955 MPI_Op op, int root, MPI_Comm comm) 956 956 { … … 1125 1125 /* I am not on root's node. Use tmp_buf if we 1126 1126 participated in the first reduce, otherwise use sendbuf */ 1127 void *buf = (comm_ptr->node_comm == NULL ? sendbuf : tmp_buf);1127 const void *buf = (comm_ptr->node_comm == NULL ? sendbuf : tmp_buf); 1128 1128 mpi_errno = MPIR_Reduce(buf, NULL, count, datatype, 1129 1129 op, MPIU_Get_internode_rank(comm_ptr, root), -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/scan.c
r3839 r3914 64 64 /* not declared static because a machine-specific function may call this one in some cases */ 65 65 int MPIR_Scan ( 66 void *sendbuf,66 const void *sendbuf, 67 67 void *recvbuf, 68 68 int count, … … 280 280 #define FCNAME MPIU_QUOTE(FUNCNAME) 281 281 static int MPIR_Scan_or_coll_fn( 282 void *sendbuf,282 const void *sendbuf, 283 283 void *recvbuf, 284 284 int count, … … 313 313 #define FCNAME MPIU_QUOTE(FUNCNAME) 314 314 static int MPIR_SMP_Scan( 315 void *sendbuf,315 const void *sendbuf, 316 316 void *recvbuf, 317 317 int count, … … 517 517 .N MPI_ERR_BUFFER_ALIAS 518 518 @*/ 519 int MPI_Scan( void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype,519 int MPI_Scan(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, 520 520 MPI_Op op, MPI_Comm comm) 521 521 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/scatter.c
r3177 r3914 48 48 /* not declared static because a machine-specific function may call this one in some cases */ 49 49 int MPIR_Scatter ( 50 void *sendbuf,51 int sendcnt,52 MPI_Datatype sendtype,53 void *recvbuf,54 int recvcnt,55 MPI_Datatype recvtype,56 int root,57 MPID_Comm *comm_ptr )50 const void *sendbuf, 51 int sendcnt, 52 MPI_Datatype sendtype, 53 void *recvbuf, 54 int recvcnt, 55 MPI_Datatype recvtype, 56 int root, 57 MPID_Comm *comm_ptr ) 58 58 { 59 59 static const char FCNAME[] = "MPIR_Scatter"; … … 439 439 /* not declared static because a machine-specific function may call this one in some cases */ 440 440 int MPIR_Scatter_inter ( 441 void *sendbuf,442 int sendcnt,443 MPI_Datatype sendtype,444 void *recvbuf,445 int recvcnt,446 MPI_Datatype recvtype,447 int root,448 MPID_Comm *comm_ptr )441 const void *sendbuf, 442 int sendcnt, 443 MPI_Datatype sendtype, 444 void *recvbuf, 445 int recvcnt, 446 MPI_Datatype recvtype, 447 int root, 448 MPID_Comm *comm_ptr ) 449 449 { 450 450 /* Intercommunicator scatter. … … 619 619 .N MPI_ERR_BUFFER 620 620 @*/ 621 int MPI_Scatter( void *sendbuf, int sendcnt, MPI_Datatype sendtype,621 int MPI_Scatter(const void *sendbuf, int sendcnt, MPI_Datatype sendtype, 622 622 void *recvbuf, int recvcnt, MPI_Datatype recvtype, int root, 623 623 MPI_Comm comm) -
mpich2/branches/dev/mpi_binding_const/src/mpi/coll/scatterv.c
r3177 r3914 45 45 #define FUNCNAME MPIR_Scatterv 46 46 int MPIR_Scatterv ( 47 void *sendbuf,48 int *sendcnts,49 int *displs,50 MPI_Datatype sendtype,51 void *recvbuf,52 int recvcnt,53 MPI_Datatype recvtype,54 int root,55 MPID_Comm *comm_ptr )47 const void *sendbuf, 48 const int *sendcnts, 49 const int *displs, 50 MPI_Datatype sendtype, 51 void *recvbuf, 52 int recvcnt, 53 MPI_Datatype recvtype, 54 int root, 55 MPID_Comm *comm_ptr ) 56 56 { 57 57 static const char FCNAME[] = "MPIR_Scatterv"; … … 200 200 .N MPI_ERR_BUFFER 201 201 @*/ 202 int MPI_Scatterv( void *sendbuf, int *sendcnts,int *displs,203 MPI_Datatype sendtype, void *recvbuf, int recvcnt,204 MPI_Datatype recvtype,205 int root, MPI_Comm comm)202 int MPI_Scatterv(const void *sendbuf, const int *sendcnts, const int *displs, 203 MPI_Datatype sendtype, void *recvbuf, int recvcnt, 204 MPI_Datatype recvtype, 205 int root, MPI_Comm comm) 206 206 { 207 207 static const char FCNAME[] = "MPI_Scatterv"; -
mpich2/branches/dev/mpi_binding_const/src/mpi/comm/comm_set_name.c
r1083 r3914 46 46 .N MPI_ERR_COMM 47 47 @*/ 48 int MPI_Comm_set_name(MPI_Comm comm, c har *comm_name)48 int MPI_Comm_set_name(MPI_Comm comm, const char *comm_name) 49 49 { 50 50 int mpi_errno = MPI_SUCCESS; -
mpich2/branches/dev/mpi_binding_const/src/mpi/datatype/address.c
r1249 r3914 58 58 .N MPI_ERR_OTHER 59 59 @*/ 60 int MPI_Address( void *location, MPI_Aint *address)60 int MPI_Address(const void *location, MPI_Aint *address) 61 61 { 62 62 int mpi_errno = MPI_SUCCESS; -
mpich2/branches/dev/mpi_binding_const/src/mpi/datatype/get_address.c
r1249 r3914 68 68 .N MPI_ERR_OTHER 69 69 @*/ 70 int MPI_Get_address( void *location, MPI_Aint *address)70 int MPI_Get_address(const void *location, MPI_Aint *address) 71 71 { 72 72 int mpi_errno = MPI_SUCCESS; -
mpich2/branches/dev/mpi_binding_const/src/mpi/datatype/pack.c
r1249 r3914 56 56 .N MPI_SUCCESS 57 57 @*/ 58 int MPI_Pack( void *inbuf,58 int MPI_Pack(const void *inbuf, 59 59 int incount, 60 60 MPI_Datatype datatype, -
mpich2/branches/dev/mpi_binding_const/src/mpi/datatype/pack_external.c
r1249 r3914 56 56 .N MPI_ERR_COUNT 57 57 @*/ 58 int MPI_Pack_external(c har *datarep,59 void *inbuf,58 int MPI_Pack_external(const char *datarep, 59 const void *inbuf, 60 60 int incount, 61 61 MPI_Datatype datatype, -
mpich2/branches/dev/mpi_binding_const/src/mpi/datatype/pack_external_size.c
r1249 r3914 52 52 .N MPI_ERR_ARG 53 53 @*/ 54 int MPI_Pack_external_size(c har *datarep,54 int MPI_Pack_external_size(const char *datarep, 55 55 int incount, 56 56 MPI_Datatype datatype, -
mpich2/branches/dev/mpi_binding_const/src/mpi/datatype/type_create_darray.c
r3177 r3914 22 22 #endif 23 23 24 PMPI_LOCAL int MPIR_Type_block( int *array_of_gsizes,24 PMPI_LOCAL int MPIR_Type_block(const int *array_of_gsizes, 25 25 int dim, 26 26 int ndims, 27 int nprocs,27 const int nprocs, 28 28 int rank, 29 int darg,29 const int darg, 30 30 int order, 31 31 MPI_Aint orig_extent, … … 33 33 MPI_Datatype *type_new, 34 34 MPI_Aint *st_offset); 35 PMPI_LOCAL int MPIR_Type_cyclic( int *array_of_gsizes,35 PMPI_LOCAL int MPIR_Type_cyclic(const int *array_of_gsizes, 36 36 int dim, 37 37 int ndims, 38 int nprocs,38 const int nprocs, 39 39 int rank, 40 int darg,40 const int darg, 41 41 int order, 42 42 MPI_Aint orig_extent, … … 53 53 54 54 55 PMPI_LOCAL int MPIR_Type_block( int *array_of_gsizes,55 PMPI_LOCAL int MPIR_Type_block(const int *array_of_gsizes, 56 56 int dim, 57 57 int ndims, 58 int nprocs,58 const int nprocs, 59 59 int rank, 60 int darg,60 const int darg, 61 61 int order, 62 62 MPI_Aint orig_extent, … … 179 179 180 180 181 PMPI_LOCAL int MPIR_Type_cyclic( int *array_of_gsizes,181 PMPI_LOCAL int MPIR_Type_cyclic(const int *array_of_gsizes, 182 182 int dim, 183 183 int ndims, 184 int nprocs,184 const int nprocs, 185 185 int rank, 186 int darg,186 const int darg, 187 187 int order, 188 188 MPI_Aint orig_extent, … … 359 359 int rank, 360 360 int ndims, 361 int array_of_gsizes[],362 int array_of_distribs[],363 int array_of_dargs[],364 int array_of_psizes[],361 const int array_of_gsizes[], 362 const int array_of_distribs[], 363 const int array_of_dargs[], 364 const int array_of_psizes[], 365 365 int order, 366 366 MPI_Datatype oldtype, -
mpich2/branches/dev/mpi_binding_const/src/mpi/datatype/type_create_hindexed.c
r3177 r3914 53 53 @*/ 54 54 int MPI_Type_create_hindexed(int count, 55 int blocklengths[],56 MPI_Aint displacements[],55 const int blocklengths[], 56 const MPI_Aint displacements[], 57 57 MPI_Datatype oldtype, 58 58 MPI_Datatype *newtype) -
mpich2/branches/dev/mpi_binding_const/src/mpi/datatype/type_create_indexed_block.c
r3177 r3914 75 75 int MPI_Type_create_indexed_block(int count, 76 76 int blocklength, 77 int array_of_displacements[],77 const int array_of_displacements[], 78 78 MPI_Datatype oldtype, 79 79 MPI_Datatype *newtype) -
mpich2/branches/dev/mpi_binding_const/src/mpi/datatype/type_create_struct.c
r3177 r3914 54 54 @*/ 55 55 int MPI_Type_create_struct(int count, 56 int array_of_blocklengths[],57 MPI_Aint array_of_displacements[],58 MPI_Datatype array_of_types[],56 const int array_of_blocklengths[], 57 const MPI_Aint array_of_displacements[], 58 const MPI_Datatype array_of_types[], 59 59 MPI_Datatype *newtype) 60 60 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/datatype/type_create_subarray.c
r3177 r3914 56 56 @*/ 57 57 int MPI_Type_create_subarray(int ndims, 58 int array_of_sizes[],59 int array_of_subsizes[],60 int array_of_starts[],58 const int array_of_sizes[], 59 const int array_of_subsizes[], 60 const int array_of_starts[], 61 61 int order, 62 62 MPI_Datatype oldtype, -
mpich2/branches/dev/mpi_binding_const/src/mpi/datatype/type_hindexed.c
r3177 r3914 78 78 @*/ 79 79 int MPI_Type_hindexed(int count, 80 int blocklens[],81 MPI_Aint indices[],80 const int blocklens[], 81 const MPI_Aint indices[], 82 82 MPI_Datatype old_type, 83 83 MPI_Datatype *newtype) -
mpich2/branches/dev/mpi_binding_const/src/mpi/datatype/type_indexed.c
r3177 r3914 75 75 @*/ 76 76 int MPI_Type_indexed(int count, 77 int blocklens[],78 int indices[],77 const int blocklens[], 78 const int indices[], 79 79 MPI_Datatype old_type, 80 80 MPI_Datatype *newtype) -
mpich2/branches/dev/mpi_binding_const/src/mpi/datatype/type_set_name.c
r100 r3914 47 47 .N MPI_ERR_OTHER 48 48 @*/ 49 int MPI_Type_set_name(MPI_Datatype type, c har *type_name)49 int MPI_Type_set_name(MPI_Datatype type, const char *type_name) 50 50 { 51 51 int mpi_errno = MPI_SUCCESS; -
mpich2/branches/dev/mpi_binding_const/src/mpi/datatype/type_struct.c
r3177 r3914 96 96 @*/ 97 97 int MPI_Type_struct(int count, 98 int blocklens[],99 MPI_Aint indices[],100 MPI_Datatype old_types[],98 const int blocklens[], 99 const MPI_Aint indices[], 100 const MPI_Datatype old_types[], 101 101 MPI_Datatype *newtype) 102 102 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/datatype/unpack.c
r1249 r3914 56 56 .seealso: MPI_Pack, MPI_Pack_size 57 57 @*/ 58 int MPI_Unpack( void *inbuf, int insize, int *position,58 int MPI_Unpack(const void *inbuf, int insize, int *position, 59 59 void *outbuf, int outcount, MPI_Datatype datatype, 60 60 MPI_Comm comm) -
mpich2/branches/dev/mpi_binding_const/src/mpi/datatype/unpack_external.c
r1249 r3914 55 55 .N MPI_ERR_ARG 56 56 @*/ 57 int MPI_Unpack_external(c har *datarep,58 void *inbuf,57 int MPI_Unpack_external(const char *datarep, 58 const void *inbuf, 59 59 MPI_Aint insize, 60 60 MPI_Aint *position, -
mpich2/branches/dev/mpi_binding_const/src/mpi/errhan/add_error_string.c
r3177 r3914 57 57 .N MPI_SUCCESS 58 58 @*/ 59 int MPI_Add_error_string(int errorcode, c har *string)59 int MPI_Add_error_string(int errorcode, const char *string) 60 60 { 61 61 static const char FCNAME[] = "MPI_Add_error_string"; -
mpich2/branches/dev/mpi_binding_const/src/mpi/group/group.h
r3456 r3914 8 8 from communicators, so it is in mpidimpl.h */ 9 9 void MPIR_Group_setup_lpid_list( MPID_Group * ); 10 int MPIR_Group_check_valid_ranks( MPID_Group *, int [], int );10 int MPIR_Group_check_valid_ranks( MPID_Group *, const int [], int ); 11 11 int MPIR_Group_check_valid_ranges( MPID_Group *, int [][3], int ); 12 12 void MPIR_Group_setup_lpid_pairs( MPID_Group *, MPID_Group * ); -
mpich2/branches/dev/mpi_binding_const/src/mpi/group/group_excl.c
r3177 r3914 62 62 .seealso: MPI_Group_free 63 63 @*/ 64 int MPI_Group_excl(MPI_Group group, int n, int *ranks, MPI_Group *newgroup)64 int MPI_Group_excl(MPI_Group group, int n, const int *ranks, MPI_Group *newgroup) 65 65 { 66 66 static const char FCNAME[] = "MPI_Group_excl"; -
mpich2/branches/dev/mpi_binding_const/src/mpi/group/group_incl.c
r3177 r3914 58 58 .seealso: MPI_Group_free 59 59 @*/ 60 int MPI_Group_incl(MPI_Group group, int n, int *ranks, MPI_Group *newgroup)60 int MPI_Group_incl(MPI_Group group, int n, const int *ranks, MPI_Group *newgroup) 61 61 { 62 62 static const char FCNAME[] = "MPI_Group_incl"; -
mpich2/branches/dev/mpi_binding_const/src/mpi/group/group_range_excl.c
r3177 r3914 64 64 .seealso: MPI_Group_free 65 65 @*/ 66 int MPI_Group_range_excl(MPI_Group group, int n, int ranges[][3],66 int MPI_Group_range_excl(MPI_Group group, int n, /* const */ int ranges[][3], 67 67 MPI_Group *newgroup) 68 68 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/group/group_range_incl.c
r3177 r3914 59 59 .seealso: MPI_Group_free 60 60 @*/ 61 int MPI_Group_range_incl(MPI_Group group, int n, int ranges[][3],61 int MPI_Group_range_incl(MPI_Group group, int n, /* const */ int ranges[][3], 62 62 MPI_Group *newgroup) 63 63 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/group/group_translate_ranks.c
r3177 r3914 54 54 .N MPI_SUCCESS 55 55 @*/ 56 int MPI_Group_translate_ranks(MPI_Group group1, int n, int *ranks1,56 int MPI_Group_translate_ranks(MPI_Group group1, int n, const int *ranks1, 57 57 MPI_Group group2, int *ranks2) 58 58 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/group/grouputil.c
r100 r3914 217 217 * case, that means that the SINGLE_CS must be held on entry to this routine. 218 218 */ 219 int MPIR_Group_check_valid_ranks( MPID_Group *group_ptr, int ranks[], int n )219 int MPIR_Group_check_valid_ranks( MPID_Group *group_ptr, const int ranks[], int n ) 220 220 { 221 221 int mpi_errno = MPI_SUCCESS, i; -
mpich2/branches/dev/mpi_binding_const/src/mpi/pt2pt/bsend.c
r3177 r3914 84 84 .seealso: MPI_Buffer_attach, MPI_Ibsend, MPI_Bsend_init 85 85 @*/ 86 int MPI_Bsend( void *buf, int count, MPI_Datatype datatype, int dest, int tag,86 int MPI_Bsend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, 87 87 MPI_Comm comm) 88 88 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/pt2pt/bsend_init.c
r3177 r3914 57 57 .seealso: MPI_Buffer_attach 58 58 @*/ 59 int MPI_Bsend_init( void *buf, int count, MPI_Datatype datatype,59 int MPI_Bsend_init(const void *buf, int count, MPI_Datatype datatype, 60 60 int dest, int tag, MPI_Comm comm, MPI_Request *request) 61 61 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/pt2pt/bsendutil.c
r3717 r3914 243 243 * Initiate an ibsend. We'll used this for Bsend as well. 244 244 */ 245 int MPIR_Bsend_isend( void *buf, int count, MPI_Datatype dtype,246 int dest, int tag, MPID_Comm *comm_ptr,247 BsendKind_t kind, MPID_Request **request)245 int MPIR_Bsend_isend(const void *buf, int count, MPI_Datatype dtype, 246 int dest, int tag, MPID_Comm *comm_ptr, 247 BsendKind_t kind, MPID_Request **request) 248 248 { 249 249 BsendData_t *p; -
mpich2/branches/dev/mpi_binding_const/src/mpi/pt2pt/bsendutil.h
r100 r3914 10 10 int MPIR_Bsend_attach( void *, int ); 11 11 int MPIR_Bsend_detach( void *, int * ); 12 int MPIR_Bsend_isend( void *, int, MPI_Datatype, int, int, MPID_Comm *,12 int MPIR_Bsend_isend( const void *, int, MPI_Datatype, int, int, MPID_Comm *, 13 13 BsendKind_t, MPID_Request ** ); 14 14 -
mpich2/branches/dev/mpi_binding_const/src/mpi/pt2pt/ibsend.c
r3177 r3914 114 114 115 115 @*/ 116 int MPI_Ibsend( void *buf, int count, MPI_Datatype datatype, int dest, int tag,116 int MPI_Ibsend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, 117 117 MPI_Comm comm, MPI_Request *request) 118 118 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/pt2pt/irsend.c
r3177 r3914 57 57 58 58 @*/ 59 int MPI_Irsend( void *buf, int count, MPI_Datatype datatype, int dest, int tag,59 int MPI_Irsend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, 60 60 MPI_Comm comm, MPI_Request *request) 61 61 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/pt2pt/isend.c
r3177 r3914 55 55 56 56 @*/ 57 int MPI_Isend( void *buf, int count, MPI_Datatype datatype, int dest, int tag,57 int MPI_Isend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, 58 58 MPI_Comm comm, MPI_Request *request) 59 59 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/pt2pt/issend.c
r3177 r3914 56 56 .N MPI_ERR_EXHAUSTED 57 57 @*/ 58 int MPI_Issend( void *buf, int count, MPI_Datatype datatype, int dest, int tag,58 int MPI_Issend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, 59 59 MPI_Comm comm, MPI_Request *request) 60 60 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/pt2pt/rsend.c
r3177 r3914 53 53 54 54 @*/ 55 int MPI_Rsend( void *buf, int count, MPI_Datatype datatype, int dest, int tag,55 int MPI_Rsend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, 56 56 MPI_Comm comm) 57 57 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/pt2pt/rsend_init.c
r3177 r3914 58 58 .seealso: MPI_Start, MPI_Request_free, MPI_Send_init 59 59 @*/ 60 int MPI_Rsend_init( void *buf, int count, MPI_Datatype datatype, int dest,60 int MPI_Rsend_init(const void *buf, int count, MPI_Datatype datatype, int dest, 61 61 int tag, MPI_Comm comm, MPI_Request *request) 62 62 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/pt2pt/send.c
r3177 r3914 58 58 .seealso: MPI_Isend, MPI_Bsend 59 59 @*/ 60 int MPI_Send( void *buf, int count, MPI_Datatype datatype, int dest, int tag,60 int MPI_Send(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, 61 61 MPI_Comm comm) 62 62 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/pt2pt/send_init.c
r3177 r3914 58 58 .seealso: MPI_Start, MPI_Startall, MPI_Request_free 59 59 @*/ 60 int MPI_Send_init( void *buf, int count, MPI_Datatype datatype, int dest,60 int MPI_Send_init(const void *buf, int count, MPI_Datatype datatype, int dest, 61 61 int tag, MPI_Comm comm, MPI_Request *request) 62 62 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/pt2pt/sendrecv.c
r3177 r3914 63 63 64 64 @*/ 65 int MPI_Sendrecv( void *sendbuf, int sendcount, MPI_Datatype sendtype,65 int MPI_Sendrecv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, 66 66 int dest, int sendtag, 67 67 void *recvbuf, int recvcount, MPI_Datatype recvtype, -
mpich2/branches/dev/mpi_binding_const/src/mpi/pt2pt/ssend.c
r3177 r3914 52 52 .N MPI_ERR_RANK 53 53 @*/ 54 int MPI_Ssend( void *buf, int count, MPI_Datatype datatype, int dest, int tag,54 int MPI_Ssend(const void *buf, int count, MPI_Datatype datatype, int dest, int tag, 55 55 MPI_Comm comm) 56 56 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/pt2pt/ssend_init.c
r3177 r3914 55 55 .N MPI_ERR_RANK 56 56 @*/ 57 int MPI_Ssend_init( void *buf, int count, MPI_Datatype datatype, int dest,57 int MPI_Ssend_init(const void *buf, int count, MPI_Datatype datatype, int dest, 58 58 int tag, MPI_Comm comm, MPI_Request *request) 59 59 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/pt2pt/test_cancelled.c
r100 r3914 46 46 .N MPI_ERR_ARG 47 47 @*/ 48 int MPI_Test_cancelled( MPI_Status *status, int *flag)48 int MPI_Test_cancelled(const MPI_Status *status, int *flag) 49 49 { 50 50 #ifdef HAVE_ERROR_CHECKING -
mpich2/branches/dev/mpi_binding_const/src/mpi/rma/accumulate.c
r3177 r3914 60 60 .N MPI_ERR_WIN 61 61 @*/ 62 int MPI_Accumulate( void *origin_addr, int origin_count, MPI_Datatype62 int MPI_Accumulate(const void *origin_addr, int origin_count, MPI_Datatype 63 63 origin_datatype, int target_rank, MPI_Aint 64 64 target_disp, int target_count, MPI_Datatype -
mpich2/branches/dev/mpi_binding_const/src/mpi/rma/put.c
r3177 r3914 56 56 .N MPI_ERR_WIN 57 57 @*/ 58 int MPI_Put( void *origin_addr, int origin_count, MPI_Datatype58 int MPI_Put(const void *origin_addr, int origin_count, MPI_Datatype 59 59 origin_datatype, int target_rank, MPI_Aint target_disp, 60 60 int target_count, MPI_Datatype target_datatype, MPI_Win -
mpich2/branches/dev/mpi_binding_const/src/mpi/rma/win_set_name.c
r100 r3914 46 46 .N MPI_ERR_ARG 47 47 @*/ 48 int MPI_Win_set_name(MPI_Win win, c har *win_name)48 int MPI_Win_set_name(MPI_Win win, const char *win_name) 49 49 { 50 50 #ifdef HAVE_ERROR_CHECKING -
mpich2/branches/dev/mpi_binding_const/src/mpi/romio/include/mpio.h.in
r3903 r3914 203 203 204 204 /* Section 9.5.3 */ 205 int MPI_Register_datarep(c har *,205 int MPI_Register_datarep(const char *, 206 206 MPI_Datarep_conversion_function *, 207 207 MPI_Datarep_conversion_function *, … … 303 303 304 304 /* Section 9.2 */ 305 int PMPI_File_open(MPI_Comm, c har *, int, MPI_Info, MPI_File *);305 int PMPI_File_open(MPI_Comm, const char *, int, MPI_Info, MPI_File *); 306 306 int PMPI_File_close(MPI_File *); 307 int PMPI_File_delete(c har *, MPI_Info);307 int PMPI_File_delete(const char *, MPI_Info); 308 308 int PMPI_File_set_size(MPI_File, MPI_Offset); 309 309 int PMPI_File_preallocate(MPI_File, MPI_Offset); … … 315 315 316 316 /* Section 9.3 */ 317 int PMPI_File_set_view(MPI_File, MPI_Offset, 318 MPI_Datatype, MPI_Datatype, char *, MPI_Info); 317 int PMPI_File_set_view(MPI_File, MPI_Offset, MPI_Datatype, const MPI_Datatype, char *, MPI_Info); 319 318 int PMPI_File_get_view(MPI_File, MPI_Offset *, 320 319 MPI_Datatype *, MPI_Datatype *, char *); … … 325 324 int PMPI_File_read_at_all(MPI_File, MPI_Offset, void *, 326 325 int, MPI_Datatype, MPI_Status *); 327 int PMPI_File_write_at(MPI_File, MPI_Offset, void *,328 int, MPI_Datatype, MPI_Status *); 329 int PMPI_File_write_at_all(MPI_File, MPI_Offset, void *,326 int PMPI_File_write_at(MPI_File, MPI_Offset, const void *, 327 int, MPI_Datatype, MPI_Status *); 328 int PMPI_File_write_at_all(MPI_File, MPI_Offset, const void *, 330 329 int, MPI_Datatype, MPI_Status *); 331 330 … … 336 335 int PMPI_File_iread_at(MPI_File, MPI_Offset, void *, 337 336 int, MPI_Datatype, MPIO_Request *); 338 int PMPI_File_iwrite_at(MPI_File, MPI_Offset, void *,337 int PMPI_File_iwrite_at(MPI_File, MPI_Offset, const void *, 339 338 int, MPI_Datatype, MPIO_Request *); 340 339 … … 342 341 int PMPI_File_read(MPI_File, void *, int, MPI_Datatype, MPI_Status *); 343 342 int PMPI_File_read_all(MPI_File, void *, int, MPI_Datatype, MPI_Status *); 344 int PMPI_File_write(MPI_File, void *, int, MPI_Datatype, MPI_Status *);345 int PMPI_File_write_all(MPI_File, void *, int, MPI_Datatype, MPI_Status *);343 int PMPI_File_write(MPI_File, const void *, int, MPI_Datatype, MPI_Status *); 344 int PMPI_File_write_all(MPI_File, const void *, int, MPI_Datatype, MPI_Status *); 346 345 347 346 /* nonblocking calls currently use MPIO_Request, because generalized … … 350 349 351 350 int PMPI_File_iread(MPI_File, void *, int, MPI_Datatype, MPIO_Request *); 352 int PMPI_File_iwrite(MPI_File, void *, int, MPI_Datatype, MPIO_Request *);351 int PMPI_File_iwrite(MPI_File, const void *, int, MPI_Datatype, MPIO_Request *); 353 352 354 353 int PMPI_File_seek(MPI_File, MPI_Offset, int); … … 358 357 /* Section 9.4.4 */ 359 358 int PMPI_File_read_shared(MPI_File, void *, int, MPI_Datatype, MPI_Status *); 360 int PMPI_File_write_shared(MPI_File, void *, int, MPI_Datatype, MPI_Status *);359 int PMPI_File_write_shared(MPI_File, const void *, int, MPI_Datatype, MPI_Status *); 361 360 int PMPI_File_iread_shared(MPI_File, void *, int, 362 361 MPI_Datatype, MPIO_Request *); 363 int PMPI_File_iwrite_shared(MPI_File, void *, int,362 int PMPI_File_iwrite_shared(MPI_File, const void *, int, 364 363 MPI_Datatype, MPIO_Request *); 365 364 int PMPI_File_read_ordered(MPI_File, void *, int, MPI_Datatype, MPI_Status *); 366 int PMPI_File_write_ordered(MPI_File, void *, int, MPI_Datatype, MPI_Status *);365 int PMPI_File_write_ordered(MPI_File, const void *, int, MPI_Datatype, MPI_Status *); 367 366 int PMPI_File_seek_shared(MPI_File, MPI_Offset, int); 368 367 int PMPI_File_get_position_shared(MPI_File, MPI_Offset *); … … 372 371 int, MPI_Datatype); 373 372 int PMPI_File_read_at_all_end(MPI_File, void *, MPI_Status *); 374 int PMPI_File_write_at_all_begin(MPI_File, MPI_Offset, void *,373 int PMPI_File_write_at_all_begin(MPI_File, MPI_Offset, const void *, 375 374 int, MPI_Datatype); 376 int PMPI_File_write_at_all_end(MPI_File, void *, MPI_Status *);377 int PMPI_File_read_all_begin(MPI_File, void *, int, MPI_Datatype);378 int PMPI_File_read_all_end(MPI_File, void *, MPI_Status *);375 int PMPI_File_write_at_all_end(MPI_File, const void *, MPI_Status *); 376 int PMPI_File_read_all_begin(MPI_File, const void *, int, MPI_Datatype); 377 int PMPI_File_read_all_end(MPI_File, const void *, MPI_Status *); 379 378 int PMPI_File_write_all_begin(MPI_File, void *, int, MPI_Datatype); 380 379 int PMPI_File_write_all_end(MPI_File, void *, MPI_Status *); 381 380 int PMPI_File_read_ordered_begin(MPI_File, void *, int, MPI_Datatype); 382 381 int PMPI_File_read_ordered_end(MPI_File, void *, MPI_Status *); 383 int PMPI_File_write_ordered_begin(MPI_File, void *, int, MPI_Datatype);384 int PMPI_File_write_ordered_end(MPI_File, void *, MPI_Status *);382 int PMPI_File_write_ordered_begin(MPI_File, const void *, int, MPI_Datatype); 383 int PMPI_File_write_ordered_end(MPI_File, const void *, MPI_Status *); 385 384 386 385 /* Section 9.5.1 */ … … 388 387 389 388 /* Section 9.5.3 */ 390 int PMPI_Register_datarep(c har *,391 MPI_Datarep_conversion_function *,392 MPI_Datarep_conversion_function *,393 MPI_Datarep_extent_function *,394 void *);389 int PMPI_Register_datarep(const char *, 390 MPI_Datarep_conversion_function *, 391 MPI_Datarep_conversion_function *, 392 MPI_Datarep_extent_function *, 393 void *); 395 394 396 395 /* Section 9.6.1 */ … … 440 439 441 440 int PMPI_Info_create(MPI_Info *); 442 int PMPI_Info_set(MPI_Info, c har *,char *);443 int PMPI_Info_delete(MPI_Info, c har *);444 int PMPI_Info_get(MPI_Info, c har *, int, char *, int *);445 int PMPI_Info_get_valuelen(MPI_Info, c har *, int *, int *);441 int PMPI_Info_set(MPI_Info, const char *, const char *); 442 int PMPI_Info_delete(MPI_Info, const char *); 443 int PMPI_Info_get(MPI_Info, const char *, int, char *, int *); 444 int PMPI_Info_get_valuelen(MPI_Info, const char *, int *, int *); 446 445 int PMPI_Info_get_nkeys(MPI_Info, int *); 447 446 int PMPI_Info_get_nthkey(MPI_Info, int, char *); -
mpich2/branches/dev/mpi_binding_const/src/mpi/romio/mpi-io/delete.c
r3177 r3914 35 35 .N fortran 36 36 @*/ 37 int MPI_File_delete(c har *filename, MPI_Info info)37 int MPI_File_delete(const char *filename, MPI_Info info) 38 38 { 39 39 int flag, error_code, file_system; -
mpich2/branches/dev/mpi_binding_const/src/mpi/romio/mpi-io/iwrite.c
r3407 r3914 42 42 #endif 43 43 44 int MPI_File_iwrite(MPI_File mpi_fh, void *buf, int count,44 int MPI_File_iwrite(MPI_File mpi_fh, const void *buf, int count, 45 45 MPI_Datatype datatype, MPI_Request *request) 46 46 { … … 79 79 MPI_Offset offset, 80 80 int file_ptr_type, 81 void *buf,81 const void *buf, 82 82 int count, 83 83 MPI_Datatype datatype, -
mpich2/branches/dev/mpi_binding_const/src/mpi/romio/mpi-io/iwrite_at.c
r100 r3914 43 43 #endif 44 44 45 int MPI_File_iwrite_at(MPI_File mpi_fh, MPI_Offset offset, void *buf,45 int MPI_File_iwrite_at(MPI_File mpi_fh, MPI_Offset offset, const void *buf, 46 46 int count, MPI_Datatype datatype, 47 47 MPIO_Request *request) -
mpich2/branches/dev/mpi_binding_const/src/mpi/romio/mpi-io/iwrite_sh.c
r3177 r3914 42 42 #endif 43 43 44 int MPI_File_iwrite_shared(MPI_File mpi_fh, void *buf, int count,44 int MPI_File_iwrite_shared(MPI_File mpi_fh, const void *buf, int count, 45 45 MPI_Datatype datatype, MPIO_Request *request) 46 46 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/romio/mpi-io/open.c
r3177 r3914 40 40 .N fortran 41 41 @*/ 42 int MPI_File_open(MPI_Comm comm, c har *filename, int amode,42 int MPI_File_open(MPI_Comm comm, const char *filename, int amode, 43 43 MPI_Info info, MPI_File *fh) 44 44 { -
mpich2/branches/dev/mpi_binding_const/src/mpi/romio/mpi-io/set_view.c
r3177 r3914
