From 1465ff59683b476ed4a5ee87643f7b0aae2fdb46 Mon Sep 17 00:00:00 2001 From: Hui Zhou Date: Thu, 21 Jan 2021 22:35:30 -0600 Subject: [PATCH] coll: use MPI_Aint for count parameter --- src/include/mpir_coll.h | 912 +++++++++--------- src/mpi/coll/allgather/allgather.c | 12 +- src/mpi/coll/allgather/allgather_allcomm_nb.c | 4 +- ...llgather_inter_local_gather_remote_bcast.c | 4 +- .../coll/allgather/allgather_intra_brucks.c | 4 +- .../allgather_intra_recursive_doubling.c | 4 +- src/mpi/coll/allgather/allgather_intra_ring.c | 4 +- src/mpi/coll/allgatherv/allgatherv.c | 6 +- .../coll/allgatherv/allgatherv_allcomm_nb.c | 2 +- ...lgatherv_inter_remote_gather_local_bcast.c | 2 +- .../coll/allgatherv/allgatherv_intra_brucks.c | 2 +- .../allgatherv_intra_recursive_doubling.c | 2 +- .../coll/allgatherv/allgatherv_intra_ring.c | 2 +- src/mpi/coll/allreduce/allreduce.c | 6 +- src/mpi/coll/allreduce/allreduce_allcomm_nb.c | 5 +- .../allreduce_intra_recursive_doubling.c | 2 +- ...allreduce_intra_reduce_scatter_allgather.c | 2 +- src/mpi/coll/allreduce/allreduce_intra_smp.c | 2 +- .../coll/allreduce_group/allreduce_group.c | 4 +- .../coll/allreduce_group/allreduce_group.h | 4 +- src/mpi/coll/alltoall/alltoall.c | 12 +- src/mpi/coll/alltoall/alltoall_allcomm_nb.c | 4 +- .../alltoall_inter_pairwise_exchange.c | 4 +- src/mpi/coll/alltoall/alltoall_intra_brucks.c | 4 +- .../coll/alltoall/alltoall_intra_pairwise.c | 4 +- ...alltoall_intra_pairwise_sendrecv_replace.c | 4 +- .../coll/alltoall/alltoall_intra_scattered.c | 4 +- src/mpi/coll/bcast/bcast.c | 8 +- src/mpi/coll/bcast/bcast.h | 2 +- src/mpi/coll/bcast/bcast_allcomm_nb.c | 2 +- .../bcast_inter_remote_send_local_bcast.c | 2 +- src/mpi/coll/bcast/bcast_intra_binomial.c | 2 +- ...tra_scatter_recursive_doubling_allgather.c | 2 +- .../bcast_intra_scatter_ring_allgather.c | 2 +- src/mpi/coll/bcast/bcast_intra_smp.c | 2 +- src/mpi/coll/exscan/exscan.c | 9 +- src/mpi/coll/exscan/exscan_allcomm_nb.c | 5 +- .../exscan/exscan_intra_recursive_doubling.c | 2 +- src/mpi/coll/gather/gather.c | 12 +- src/mpi/coll/gather/gather_allcomm_nb.c | 6 +- src/mpi/coll/gather/gather_inter_linear.c | 4 +- .../gather_inter_local_gather_remote_send.c | 6 +- src/mpi/coll/gather/gather_intra_binomial.c | 4 +- src/mpi/coll/gatherv/gatherv.c | 6 +- src/mpi/coll/gatherv/gatherv_allcomm_linear.c | 2 +- src/mpi/coll/gatherv/gatherv_allcomm_nb.c | 2 +- src/mpi/coll/iallgather/iallgather.c | 24 +- ...er_inter_sched_local_gather_remote_bcast.c | 4 +- .../iallgather_intra_gentran_brucks.c | 7 +- ...allgather_intra_gentran_recexch_doubling.c | 4 +- ...iallgather_intra_gentran_recexch_halving.c | 4 +- .../iallgather_intra_gentran_ring.c | 4 +- .../iallgather_intra_sched_brucks.c | 6 +- ...allgather_intra_sched_recursive_doubling.c | 4 +- .../iallgather/iallgather_intra_sched_ring.c | 6 +- .../iallgather/iallgather_tsp_brucks_algos.h | 4 +- .../iallgather_tsp_brucks_algos_prototypes.h | 8 +- .../iallgather/iallgather_tsp_recexch_algos.h | 28 +- .../iallgather_tsp_recexch_algos_prototypes.h | 27 +- .../iallgather/iallgather_tsp_ring_algos.h | 8 +- .../iallgather_tsp_ring_algos_prototypes.h | 8 +- src/mpi/coll/iallgatherv/iallgatherv.c | 22 +- ...rv_inter_sched_remote_gather_local_bcast.c | 2 +- .../iallgatherv_intra_gentran_brucks.c | 5 +- ...llgatherv_intra_gentran_recexch_doubling.c | 2 +- ...allgatherv_intra_gentran_recexch_halving.c | 2 +- .../iallgatherv_intra_gentran_ring.c | 2 +- .../iallgatherv_intra_sched_brucks.c | 5 +- ...llgatherv_intra_sched_recursive_doubling.c | 2 +- .../iallgatherv_intra_sched_ring.c | 7 +- .../iallgatherv_tsp_brucks_algos.h | 8 +- .../iallgatherv_tsp_brucks_algos_prototypes.h | 10 +- .../iallgatherv_tsp_recexch_algos.h | 10 +- ...iallgatherv_tsp_recexch_algos_prototypes.h | 10 +- .../iallgatherv/iallgatherv_tsp_ring_algos.h | 4 +- .../iallgatherv_tsp_ring_algos_prototypes.h | 4 +- src/mpi/coll/iallreduce/iallreduce.c | 15 +- ...ce_inter_sched_remote_reduce_local_bcast.c | 2 +- ...ce_intra_gentran_recexch_multiple_buffer.c | 2 +- ...ecexch_reduce_scatter_recexch_allgatherv.c | 2 +- ...duce_intra_gentran_recexch_single_buffer.c | 4 +- .../iallreduce_intra_gentran_ring.c | 2 +- .../iallreduce_intra_gentran_tree.c | 2 +- .../iallreduce/iallreduce_intra_sched_naive.c | 2 +- ...allreduce_intra_sched_recursive_doubling.c | 4 +- ...uce_intra_sched_reduce_scatter_allgather.c | 2 +- .../iallreduce/iallreduce_intra_sched_smp.c | 2 +- .../iallreduce/iallreduce_tsp_recexch_algos.h | 4 +- .../iallreduce_tsp_recexch_algos_prototypes.h | 4 +- ..._reduce_scatter_recexch_allgatherv_algos.h | 5 +- ...tter_recexch_allgatherv_algos_prototypes.h | 5 +- ...iallreduce_tsp_recursive_exchange_common.h | 2 +- ...tsp_recursive_exchange_common_prototypes.h | 2 +- .../iallreduce/iallreduce_tsp_ring_algos.h | 4 +- .../iallreduce_tsp_ring_algos_prototypes.h | 4 +- .../iallreduce/iallreduce_tsp_tree_algos.h | 4 +- .../iallreduce_tsp_tree_algos_prototypes.h | 4 +- src/mpi/coll/ialltoall/ialltoall.c | 26 +- .../ialltoall_inter_sched_pairwise_exchange.c | 4 +- .../ialltoall_intra_gentran_brucks.c | 8 +- .../ialltoall/ialltoall_intra_gentran_ring.c | 6 +- .../ialltoall_intra_gentran_scattered.c | 4 +- .../ialltoall/ialltoall_intra_sched_brucks.c | 6 +- .../ialltoall/ialltoall_intra_sched_inplace.c | 6 +- .../ialltoall_intra_sched_pairwise.c | 6 +- .../ialltoall_intra_sched_permuted_sendrecv.c | 4 +- .../ialltoall/ialltoall_tsp_brucks_algos.h | 4 +- .../ialltoall_tsp_brucks_algos_prototypes.h | 12 +- .../coll/ialltoall/ialltoall_tsp_ring_algos.h | 11 +- .../ialltoall_tsp_ring_algos_prototypes.h | 11 +- .../ialltoall/ialltoall_tsp_scattered_algos.h | 8 +- ...ialltoall_tsp_scattered_algos_prototypes.h | 8 +- src/mpi/coll/ibcast/ibcast.c | 12 +- src/mpi/coll/ibcast/ibcast_inter_sched_flat.c | 2 +- .../coll/ibcast/ibcast_intra_gentran_ring.c | 2 +- ..._intra_gentran_scatter_recexch_allgather.c | 2 +- ...ntra_gentran_scatterv_recexch_allgatherv.c | 2 +- .../coll/ibcast/ibcast_intra_gentran_tree.c | 2 +- .../coll/ibcast/ibcast_intra_sched_binomial.c | 2 +- ...hed_scatter_recursive_doubling_allgather.c | 2 +- ...bcast_intra_sched_scatter_ring_allgather.c | 5 +- src/mpi/coll/ibcast/ibcast_intra_sched_smp.c | 2 +- .../ibcast_tsp_scatterv_allgatherv_algos.h | 4 +- ...tsp_scatterv_allgatherv_algos_prototypes.h | 4 +- src/mpi/coll/ibcast/ibcast_tsp_tree_algos.h | 4 +- .../ibcast/ibcast_tsp_tree_algos_prototypes.h | 4 +- src/mpi/coll/iexscan/iexscan.c | 11 +- .../iexscan_intra_sched_recursive_doubling.c | 2 +- src/mpi/coll/igather/igather.c | 28 +- .../coll/igather/igather_inter_sched_long.c | 6 +- .../coll/igather/igather_inter_sched_short.c | 6 +- .../coll/igather/igather_intra_gentran_tree.c | 4 +- .../igather/igather_intra_sched_binomial.c | 7 +- src/mpi/coll/igather/igather_tsp_tree_algos.h | 8 +- .../igather_tsp_tree_algos_prototypes.h | 8 +- src/mpi/coll/igatherv/igatherv.c | 17 +- .../igatherv_allcomm_gentran_linear.c | 5 +- .../igatherv/igatherv_allcomm_sched_linear.c | 8 +- .../coll/igatherv/igatherv_tsp_linear_algos.h | 4 +- .../igatherv_tsp_linear_algos_prototypes.h | 4 +- .../ineighbor_allgather/ineighbor_allgather.c | 37 +- ...eighbor_allgather_allcomm_gentran_linear.c | 4 +- ...ineighbor_allgather_allcomm_sched_linear.c | 4 +- .../ineighbor_allgather_tsp_linear_algos.h | 12 +- ...or_allgather_tsp_linear_algos_prototypes.h | 12 +- .../ineighbor_allgatherv.c | 12 +- ...ighbor_allgatherv_allcomm_gentran_linear.c | 2 +- ...neighbor_allgatherv_allcomm_sched_linear.c | 2 +- .../ineighbor_allgatherv_tsp_linear_algos.h | 4 +- ...r_allgatherv_tsp_linear_algos_prototypes.h | 4 +- .../ineighbor_alltoall/ineighbor_alltoall.c | 27 +- ...neighbor_alltoall_allcomm_gentran_linear.c | 4 +- .../ineighbor_alltoall_allcomm_sched_linear.c | 4 +- .../ineighbor_alltoall_tsp_linear_algos.h | 8 +- ...bor_alltoall_tsp_linear_algos_prototypes.h | 12 +- src/mpi/coll/ireduce/ireduce.c | 18 +- ...uce_inter_sched_local_reduce_remote_send.c | 7 +- .../coll/ireduce/ireduce_intra_gentran_ring.c | 2 +- .../coll/ireduce/ireduce_intra_gentran_tree.c | 2 +- .../ireduce/ireduce_intra_sched_binomial.c | 2 +- ...reduce_intra_sched_reduce_scatter_gather.c | 6 +- .../coll/ireduce/ireduce_intra_sched_smp.c | 2 +- src/mpi/coll/ireduce/ireduce_tsp_tree_algos.h | 4 +- .../ireduce_tsp_tree_algos_prototypes.h | 4 +- .../ireduce_scatter_block.c | 20 +- ...inter_sched_remote_reduce_local_scatterv.c | 2 +- ...duce_scatter_block_intra_gentran_recexch.c | 2 +- ...scatter_block_intra_sched_noncommutative.c | 2 +- ...educe_scatter_block_intra_sched_pairwise.c | 4 +- ...ter_block_intra_sched_recursive_doubling.c | 6 +- ...tter_block_intra_sched_recursive_halving.c | 6 +- .../ireduce_scatter_block_tsp_recexch_algos.h | 9 +- ...atter_block_tsp_recexch_algos_prototypes.h | 9 +- src/mpi/coll/iscan/iscan.c | 11 +- .../iscan_intra_gentran_recursive_doubling.c | 2 +- .../iscan_intra_sched_recursive_doubling.c | 2 +- src/mpi/coll/iscan/iscan_intra_sched_smp.c | 5 +- .../iscan_tsp_recursive_doubling_algos.h | 6 +- ..._tsp_recursive_doubling_algos_prototypes.h | 6 +- .../neighbor_allgather/neighbor_allgather.c | 14 +- .../neighbor_allgather_allcomm_nb.c | 6 +- .../neighbor_allgatherv/neighbor_allgatherv.c | 9 +- .../neighbor_allgatherv_allcomm_nb.c | 5 +- .../neighbor_alltoall/neighbor_alltoall.c | 14 +- .../neighbor_alltoall_allcomm_nb.c | 6 +- src/mpi/coll/reduce/reduce.c | 9 +- src/mpi/coll/reduce/reduce_allcomm_nb.c | 5 +- .../reduce_inter_local_reduce_remote_send.c | 2 +- src/mpi/coll/reduce/reduce_intra_binomial.c | 2 +- .../reduce_intra_reduce_scatter_gather.c | 2 +- src/mpi/coll/reduce/reduce_intra_smp.c | 2 +- src/mpi/coll/reduce_local/reduce_local.c | 2 +- .../reduce_scatter_block.c | 6 +- .../reduce_scatter_block_allcomm_nb.c | 2 +- ..._block_inter_remote_reduce_local_scatter.c | 2 +- ...educe_scatter_block_intra_noncommutative.c | 2 +- .../reduce_scatter_block_intra_pairwise.c | 2 +- ...e_scatter_block_intra_recursive_doubling.c | 2 +- ...ce_scatter_block_intra_recursive_halving.c | 2 +- src/mpi/coll/scan/scan.c | 9 +- src/mpi/coll/scan/scan_allcomm_nb.c | 2 +- .../coll/scan/scan_intra_recursive_doubling.c | 2 +- src/mpi/coll/scan/scan_intra_smp.c | 2 +- 203 files changed, 1091 insertions(+), 1017 deletions(-) diff --git a/src/include/mpir_coll.h b/src/include/mpir_coll.h index 24279b6fc6d..6228876e8fd 100644 --- a/src/include/mpir_coll.h +++ b/src/include/mpir_coll.h @@ -41,144 +41,147 @@ int MPIC_Waitall(int numreq, MPIR_Request * requests[], MPI_Status statuses[], /******************************** Allgather ********************************/ -int MPIR_Allgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, +int MPIR_Allgather(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Allgather_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, - MPIR_Errflag_t * errflag); +int MPIR_Allgather_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* intracomm-only functions */ -int MPIR_Allgather_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Allgather_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Allgather_intra_brucks(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Allgather_intra_brucks(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Allgather_intra_recursive_doubling(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, - MPI_Datatype recvtype, MPIR_Comm * comm_ptr, - MPIR_Errflag_t * errflag); -int MPIR_Allgather_intra_ring(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Allgather_intra_recursive_doubling(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); +int MPIR_Allgather_intra_ring(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* intercomm-only functions */ -int MPIR_Allgather_inter_local_gather_remote_bcast(const void *sendbuf, int sendcount, +int MPIR_Allgather_inter_local_gather_remote_bcast(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* anycomm functions */ -int MPIR_Allgather_allcomm_nb(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Allgather_allcomm_nb(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /******************************** Allgatherv ********************************/ -int MPIR_Allgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, +int MPIR_Allgatherv(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Allgatherv_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, - const int *recvcounts, const int *displs, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); +int MPIR_Allgatherv_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, const int *recvcounts, const int *displs, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* intracomm-only functions */ -int MPIR_Allgatherv_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Allgatherv_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Allgatherv_intra_brucks(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Allgatherv_intra_brucks(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Allgatherv_intra_recursive_doubling(const void *sendbuf, int sendcount, +int MPIR_Allgatherv_intra_recursive_doubling(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Allgatherv_intra_ring(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Allgatherv_intra_ring(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* intercomm-only functions */ -int MPIR_Allgatherv_inter_remote_gather_local_bcast(const void *sendbuf, int sendcount, +int MPIR_Allgatherv_inter_remote_gather_local_bcast(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* anycomm functions */ -int MPIR_Allgatherv_allcomm_nb(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Allgatherv_allcomm_nb(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /******************************** Allreduce ********************************/ -int MPIR_Allreduce(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, - MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Allreduce_impl(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, +int MPIR_Allreduce(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, + MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); +int MPIR_Allreduce_impl(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* intracomm-only functions */ -int MPIR_Allreduce_allcomm_auto(const void *sendbuf, void *recvbuf, int count, +int MPIR_Allreduce_allcomm_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Allreduce_intra_recursive_doubling(const void *sendbuf, void *recvbuf, int count, +int MPIR_Allreduce_intra_recursive_doubling(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Allreduce_intra_reduce_scatter_allgather(const void *sendbuf, void *recvbuf, int count, - MPI_Datatype datatype, MPI_Op op, +int MPIR_Allreduce_intra_reduce_scatter_allgather(const void *sendbuf, void *recvbuf, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Allreduce_intra_smp(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); +int MPIR_Allreduce_intra_smp(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, + MPIR_Errflag_t * errflag); /* intercomm-only functions */ -int MPIR_Allreduce_inter_reduce_exchange_bcast(const void *sendbuf, void *recvbuf, int count, +int MPIR_Allreduce_inter_reduce_exchange_bcast(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* anycomm functions */ -int MPIR_Allreduce_allcomm_nb(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); +int MPIR_Allreduce_allcomm_nb(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, + MPIR_Errflag_t * errflag); /******************************** Alltoall ********************************/ -int MPIR_Alltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, +int MPIR_Alltoall(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Alltoall_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, - MPIR_Errflag_t * errflag); +int MPIR_Alltoall_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* intracomm-only functions */ -int MPIR_Alltoall_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Alltoall_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Alltoall_intra_brucks(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Alltoall_intra_brucks(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Alltoall_intra_pairwise(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Alltoall_intra_pairwise(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Alltoall_intra_pairwise_sendrecv_replace(const void *sendbuf, int sendcount, +int MPIR_Alltoall_intra_pairwise_sendrecv_replace(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Alltoall_intra_scattered(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Alltoall_intra_scattered(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* intercomm-only functions */ -int MPIR_Alltoall_inter_pairwise_exchange(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); +int MPIR_Alltoall_inter_pairwise_exchange(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, + MPIR_Errflag_t * errflag); /* anycomm functions */ -int MPIR_Alltoall_allcomm_nb(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Alltoall_allcomm_nb(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); @@ -279,95 +282,97 @@ int MPIR_Barrier_allcomm_nb(MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /******************************** Bcast ********************************/ -int MPIR_Bcast(void *buffer, int count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, +int MPIR_Bcast(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Bcast_impl(void *buffer, int count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, - MPIR_Errflag_t * errflag); +int MPIR_Bcast_impl(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, + MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* intracomm-only functions */ -int MPIR_Bcast_allcomm_auto(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Bcast_allcomm_auto(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Bcast_intra_binomial(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Bcast_intra_binomial(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Bcast_intra_scatter_recursive_doubling_allgather(void *buffer, int count, +int MPIR_Bcast_intra_scatter_recursive_doubling_allgather(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Bcast_intra_scatter_ring_allgather(void *buffer, int count, MPI_Datatype datatype, +int MPIR_Bcast_intra_scatter_ring_allgather(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Bcast_intra_smp(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Bcast_intra_smp(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* intercomm-only functions */ -int MPIR_Bcast_inter_remote_send_local_bcast(void *buffer, int count, MPI_Datatype datatype, +int MPIR_Bcast_inter_remote_send_local_bcast(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* anycomm functions */ -int MPIR_Bcast_allcomm_nb(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Bcast_allcomm_nb(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /******************************** Exscan ********************************/ -int MPIR_Exscan(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, - MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Exscan_impl(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, +int MPIR_Exscan(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, + MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); +int MPIR_Exscan_impl(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* intracomm-only functions */ -int MPIR_Exscan_allcomm_auto(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Exscan_intra_recursive_doubling(const void *sendbuf, void *recvbuf, int count, +int MPIR_Exscan_allcomm_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, + MPIR_Errflag_t * errflag); +int MPIR_Exscan_intra_recursive_doubling(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* anycomm functions */ -int MPIR_Exscan_allcomm_nb(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); +int MPIR_Exscan_allcomm_nb(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, + MPIR_Errflag_t * errflag); /******************************** Gather ********************************/ -int MPIR_Gather(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, +int MPIR_Gather(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Gather_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, +int MPIR_Gather_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* intracomm-only functions */ -int MPIR_Gather_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, +int MPIR_Gather_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Gather_intra_binomial(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, +int MPIR_Gather_intra_binomial(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* intercomm-only functions */ -int MPIR_Gather_inter_linear(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, +int MPIR_Gather_inter_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Gather_inter_local_gather_remote_send(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, - MPI_Datatype recvtype, int root, +int MPIR_Gather_inter_local_gather_remote_send(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* anycomm functions */ -int MPIR_Gather_allcomm_nb(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, - MPIR_Errflag_t * errflag); +int MPIR_Gather_allcomm_nb(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, int root, + MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /******************************** Gatherv ********************************/ -int MPIR_Gatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, +int MPIR_Gatherv(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Gatherv_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, +int MPIR_Gatherv_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* intracomm-only functions */ -int MPIR_Gatherv_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Gatherv_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); @@ -375,11 +380,11 @@ int MPIR_Gatherv_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype s /* intercomm-only functions */ /* anycomm functions */ -int MPIR_Gatherv_allcomm_linear(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Gatherv_allcomm_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Gatherv_allcomm_nb(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Gatherv_allcomm_nb(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); @@ -387,119 +392,126 @@ int MPIR_Gatherv_allcomm_nb(const void *sendbuf, int sendcount, MPI_Datatype sen /******************************** Iallgather ********************************/ /* request-based functions */ -int MPIR_Iallgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, +int MPIR_Iallgather(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Iallgather_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, - MPIR_Request ** request); -int MPIR_Iallgather_intra_gentran_brucks(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, int k, MPIR_Request ** request); -int MPIR_Iallgather_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Iallgather_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Request ** request); +int MPIR_Iallgather_intra_gentran_brucks(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, int k, + MPIR_Request ** request); +int MPIR_Iallgather_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request); /* sched-based functions */ -int MPIR_Iallgather_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Iallgather_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /* sched-based intracomm-only functions */ -int MPIR_Iallgather_intra_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Iallgather_intra_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Iallgather_intra_sched_brucks(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Iallgather_intra_sched_recursive_doubling(const void *sendbuf, int sendcount, +int MPIR_Iallgather_intra_sched_brucks(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); +int MPIR_Iallgather_intra_sched_recursive_doubling(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Iallgather_intra_sched_ring(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Iallgather_intra_sched_ring(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Iallgather_intra_gentran_recexch_doubling(const void *sendbuf, int sendcount, +int MPIR_Iallgather_intra_gentran_recexch_doubling(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, int k, MPIR_Request ** request); -int MPIR_Iallgather_intra_gentran_recexch_halving(const void *sendbuf, int sendcount, +int MPIR_Iallgather_intra_gentran_recexch_halving(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, int k, MPIR_Request ** request); -int MPIR_Iallgather_intra_gentran_ring(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, MPIR_Request ** request); +int MPIR_Iallgather_intra_gentran_ring(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, + MPIR_Request ** request); /* sched-based intercomm-only functions */ -int MPIR_Iallgather_inter_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Iallgather_inter_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Iallgather_inter_sched_local_gather_remote_bcast(const void *sendbuf, int sendcount, +int MPIR_Iallgather_inter_sched_local_gather_remote_bcast(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /******************************** Iallgatherv ********************************/ /* request-based functions */ -int MPIR_Iallgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, +int MPIR_Iallgatherv(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Iallgatherv_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, - const int *recvcounts, const int *displs, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Iallgatherv_intra_gentran_brucks(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int recvcounts[], const int displs[], +int MPIR_Iallgatherv_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, const int *recvcounts, const int *displs, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request); +int MPIR_Iallgatherv_intra_gentran_brucks(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, int k, MPIR_Request ** request); -int MPIR_Iallgatherv_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Iallgatherv_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request); /* sched-based functions */ -int MPIR_Iallgatherv_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Iallgatherv_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /* sched-based intracomm-only functions */ -int MPIR_Iallgatherv_intra_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int *recvcounts, const int *displs, - MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Iallgatherv_intra_sched_brucks(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int recvcounts[], const int displs[], +int MPIR_Iallgatherv_intra_sched_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, + const int *displs, MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Sched_t s); +int MPIR_Iallgatherv_intra_sched_brucks(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Iallgatherv_intra_sched_recursive_doubling(const void *sendbuf, int sendcount, +int MPIR_Iallgatherv_intra_sched_recursive_doubling(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Iallgatherv_intra_sched_ring(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int recvcounts[], const int displs[], - MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Iallgatherv_intra_gentran_recexch_doubling(const void *sendbuf, int sendcount, +int MPIR_Iallgatherv_intra_sched_ring(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], + const int displs[], MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Sched_t s); +int MPIR_Iallgatherv_intra_gentran_recexch_doubling(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, int k, MPIR_Request ** request); -int MPIR_Iallgatherv_intra_gentran_recexch_halving(const void *sendbuf, int sendcount, +int MPIR_Iallgatherv_intra_gentran_recexch_halving(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, int k, MPIR_Request ** request); -int MPIR_Iallgatherv_intra_gentran_ring(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int *recvcounts, const int *displs, - MPI_Datatype recvtype, MPIR_Comm * comm_ptr, - MPIR_Request ** request); +int MPIR_Iallgatherv_intra_gentran_ring(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, + const int *displs, MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Request ** request); /* sched-based intercomm-only functions */ -int MPIR_Iallgatherv_inter_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int *recvcounts, const int *displs, - MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Iallgatherv_inter_sched_remote_gather_local_bcast(const void *sendbuf, int sendcount, +int MPIR_Iallgatherv_inter_sched_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, + const int *displs, MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Sched_t s); +int MPIR_Iallgatherv_inter_sched_remote_gather_local_bcast(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, @@ -508,124 +520,127 @@ int MPIR_Iallgatherv_inter_sched_remote_gather_local_bcast(const void *sendbuf, /******************************** Iallreduce ********************************/ /* request-based functions */ -int MPIR_Iallreduce(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, - MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Iallreduce_impl(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, +int MPIR_Iallreduce(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, + MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request); +int MPIR_Iallreduce_impl(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Iallreduce_allcomm_auto(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iallreduce_allcomm_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request); /* sched-based functions */ -int MPIR_Iallreduce_sched_auto(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s); +int MPIR_Iallreduce_sched_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, + MPIR_Sched_t s); /* sched-based intracomm-only functions */ -int MPIR_Iallreduce_intra_sched_auto(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iallreduce_intra_sched_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Iallreduce_intra_sched_naive(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iallreduce_intra_sched_naive(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Iallreduce_intra_sched_recursive_doubling(const void *sendbuf, void *recvbuf, int count, - MPI_Datatype datatype, MPI_Op op, +int MPIR_Iallreduce_intra_sched_recursive_doubling(const void *sendbuf, void *recvbuf, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s); int MPIR_Iallreduce_intra_sched_reduce_scatter_allgather(const void *sendbuf, void *recvbuf, - int count, MPI_Datatype datatype, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s); int MPIR_Iallreduce_intra_gentran_recexch_single_buffer(const void *sendbuf, void *recvbuf, - int count, MPI_Datatype datatype, MPI_Op op, - MPIR_Comm * comm_ptr, int k, + MPI_Aint count, MPI_Datatype datatype, + MPI_Op op, MPIR_Comm * comm_ptr, int k, MPIR_Request ** request); int MPIR_Iallreduce_intra_gentran_recexch_multiple_buffer(const void *sendbuf, void *recvbuf, - int count, MPI_Datatype datatype, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, int k, MPIR_Request ** request); -int MPIR_Iallreduce_intra_gentran_tree(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iallreduce_intra_gentran_tree(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, int tree_type, int k, int maxbytes, int buffer_per_child, MPIR_Request ** request); -int MPIR_Iallreduce_intra_gentran_ring(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iallreduce_intra_gentran_ring(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request); int MPIR_Iallreduce_intra_gentran_recexch_reduce_scatter_recexch_allgatherv(const void *sendbuf, void *recvbuf, - int count, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, int k, MPIR_Request ** request); -int MPIR_Iallreduce_intra_sched_smp(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iallreduce_intra_sched_smp(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /* sched-based intercomm-only functions */ -int MPIR_Iallreduce_inter_sched_auto(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iallreduce_inter_sched_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s); int MPIR_Iallreduce_inter_sched_remote_reduce_local_bcast(const void *sendbuf, void *recvbuf, - int count, MPI_Datatype datatype, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /******************************** Ialltoall ********************************/ /* request-based functions */ -int MPIR_Ialltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, +int MPIR_Ialltoall(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Ialltoall_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, - MPIR_Request ** request); -int MPIR_Ialltoall_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Ialltoall_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Request ** request); +int MPIR_Ialltoall_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Ialltoall_intra_gentran_ring(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Ialltoall_intra_gentran_brucks(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, int k, int buffer_per_phase, - MPIR_Request ** request); -int MPIR_Ialltoall_intra_gentran_scattered(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, +int MPIR_Ialltoall_intra_gentran_ring(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, + MPIR_Request ** request); +int MPIR_Ialltoall_intra_gentran_brucks(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, int k, + int buffer_per_phase, MPIR_Request ** request); +int MPIR_Ialltoall_intra_gentran_scattered(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, int batch_size, int bblock, MPIR_Request ** request); /* sched-based functions */ -int MPIR_Ialltoall_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Ialltoall_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /* sched-based intracomm-only functions */ -int MPIR_Ialltoall_intra_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Ialltoall_intra_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Ialltoall_intra_sched_brucks(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Ialltoall_intra_sched_inplace(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Ialltoall_intra_sched_pairwise(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Ialltoall_intra_sched_permuted_sendrecv(const void *sendbuf, int sendcount, +int MPIR_Ialltoall_intra_sched_brucks(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); +int MPIR_Ialltoall_intra_sched_inplace(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); +int MPIR_Ialltoall_intra_sched_pairwise(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, + MPIR_Sched_t s); +int MPIR_Ialltoall_intra_sched_permuted_sendrecv(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /* sched-based intercomm-only functions */ -int MPIR_Ialltoall_inter_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Ialltoall_inter_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Ialltoall_inter_sched_pairwise_exchange(const void *sendbuf, int sendcount, +int MPIR_Ialltoall_inter_sched_pairwise_exchange(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); @@ -777,229 +792,237 @@ int MPIR_Ibarrier_inter_sched_bcast(MPIR_Comm * comm_ptr, MPIR_Sched_t s); /******************************** Ibcast ********************************/ /* request-based functions */ -int MPIR_Ibcast(void *buffer, int count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, +int MPIR_Ibcast(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Ibcast_impl(void *buffer, int count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, - MPIR_Request ** request); -int MPIR_Ibcast_allcomm_auto(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Ibcast_impl(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, + MPIR_Comm * comm_ptr, MPIR_Request ** request); +int MPIR_Ibcast_allcomm_auto(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Ibcast_intra_gentran_tree(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Ibcast_intra_gentran_tree(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, int tree_type, int k, int maxbytes, MPIR_Request ** request); -int MPIR_Ibcast_intra_gentran_scatterv_recexch_allgatherv(void *buffer, int count, +int MPIR_Ibcast_intra_gentran_scatterv_recexch_allgatherv(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, int scatterv_k, int allgatherv_k, MPIR_Request ** request); -int MPIR_Ibcast_intra_gentran_ring(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Ibcast_intra_gentran_ring(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, int maxbytes, MPIR_Request ** request); /* sched-based functions */ -int MPIR_Ibcast_sched_auto(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Ibcast_sched_auto(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /* sched-based intracomm-only functions */ -int MPIR_Ibcast_intra_sched_auto(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Ibcast_intra_sched_auto(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Ibcast_intra_sched_binomial(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Ibcast_intra_sched_binomial(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Ibcast_intra_sched_scatter_recursive_doubling_allgather(void *buffer, int count, +int MPIR_Ibcast_intra_sched_scatter_recursive_doubling_allgather(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Ibcast_intra_sched_scatter_ring_allgather(void *buffer, int count, MPI_Datatype datatype, - int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Ibcast_intra_sched_smp(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Ibcast_intra_sched_scatter_ring_allgather(void *buffer, MPI_Aint count, + MPI_Datatype datatype, int root, + MPIR_Comm * comm_ptr, MPIR_Sched_t s); +int MPIR_Ibcast_intra_sched_smp(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /* sched-based intercomm-only functions */ -int MPIR_Ibcast_inter_sched_auto(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Ibcast_inter_sched_auto(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Ibcast_inter_sched_flat(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Ibcast_inter_sched_flat(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /******************************** Iexscan ********************************/ /* request-based functions */ -int MPIR_Iexscan(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, - MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Iexscan_impl(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, +int MPIR_Iexscan(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, + MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request); +int MPIR_Iexscan_impl(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Iexscan_allcomm_auto(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request); +int MPIR_Iexscan_allcomm_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, + MPIR_Request ** request); /* sched-based intracomm-only functions */ -int MPIR_Iexscan_intra_sched_auto(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iexscan_intra_sched_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Iexscan_intra_sched_recursive_doubling(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iexscan_intra_sched_recursive_doubling(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /******************************** Igather ********************************/ /* request-based functions */ -int MPIR_Igather(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, +int MPIR_Igather(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Igather_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, +int MPIR_Igather_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Igather_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, +int MPIR_Igather_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Igather_intra_gentran_tree(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, - MPIR_Comm * comm_ptr, int k, MPIR_Request ** request); +int MPIR_Igather_intra_gentran_tree(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, + int root, MPIR_Comm * comm_ptr, int k, MPIR_Request ** request); /* sched-based functions */ -int MPIR_Igather_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, +int MPIR_Igather_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /* sched-based intracomm-only functions */ -int MPIR_Igather_intra_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, - MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Igather_intra_sched_binomial(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, - MPIR_Comm * comm_ptr, MPIR_Sched_t s); +int MPIR_Igather_intra_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, + int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s); +int MPIR_Igather_intra_sched_binomial(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, + MPIR_Sched_t s); /* sched-based intercomm-only functions */ -int MPIR_Igather_inter_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, - MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Igather_inter_sched_long(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, - MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Igather_inter_sched_short(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, - MPIR_Comm * comm_ptr, MPIR_Sched_t s); +int MPIR_Igather_inter_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, + int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s); +int MPIR_Igather_inter_sched_long(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, + int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s); +int MPIR_Igather_inter_sched_short(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, + int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /******************************** Igatherv ********************************/ /* request-based functions */ -int MPIR_Igatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, +int MPIR_Igatherv(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Igatherv_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, - const int *recvcounts, const int *displs, MPI_Datatype recvtype, int root, - MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Igatherv_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Igatherv_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, const int *recvcounts, const int *displs, + MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, + MPIR_Request ** request); +int MPIR_Igatherv_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Igatherv_allcomm_gentran_linear(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int *recvcounts, const int *displs, +int MPIR_Igatherv_allcomm_gentran_linear(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + const int *recvcounts, const int *displs, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request); /* sched-based functions */ -int MPIR_Igatherv_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Igatherv_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /* sched-based intracomm-only functions */ -int MPIR_Igatherv_intra_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Igatherv_intra_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /* sched-based intercomm-only functions */ -int MPIR_Igatherv_inter_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Igatherv_inter_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /* sched-based anycomm functions */ -int MPIR_Igatherv_allcomm_sched_linear(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int *recvcounts, const int *displs, - MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, - MPIR_Sched_t s); +int MPIR_Igatherv_allcomm_sched_linear(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, + const int *displs, MPI_Datatype recvtype, int root, + MPIR_Comm * comm_ptr, MPIR_Sched_t s); /******************************** Ineighbor_allgather ********************************/ /* request-based functions */ -int MPIR_Ineighbor_allgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Ineighbor_allgather(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Ineighbor_allgather_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Ineighbor_allgather_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Ineighbor_allgather_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Ineighbor_allgather_allcomm_gentran_linear(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_allgather_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, + MPIR_Request ** request); +int MPIR_Ineighbor_allgather_allcomm_gentran_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request); /* sched-based functions */ -int MPIR_Ineighbor_allgather_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, MPIR_Sched_t s); +int MPIR_Ineighbor_allgather_sched_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, + MPIR_Sched_t s); /* sched-based intracomm-only functions */ -int MPIR_Ineighbor_allgather_intra_sched_auto(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, - MPI_Datatype recvtype, MPIR_Comm * comm_ptr, - MPIR_Sched_t s); +int MPIR_Ineighbor_allgather_intra_sched_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Sched_t s); /* sched-based intercomm-only functions */ -int MPIR_Ineighbor_allgather_inter_sched_auto(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, - MPI_Datatype recvtype, MPIR_Comm * comm_ptr, - MPIR_Sched_t s); +int MPIR_Ineighbor_allgather_inter_sched_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Sched_t s); /* sched-based anycomm functions */ -int MPIR_Ineighbor_allgather_allcomm_sched_linear(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_allgather_allcomm_sched_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /******************************** Ineighbor_allgatherv ********************************/ /* request-based functions */ -int MPIR_Ineighbor_allgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Ineighbor_allgatherv(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Ineighbor_allgatherv_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Ineighbor_allgatherv_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Ineighbor_allgatherv_allcomm_auto(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_allgatherv_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Ineighbor_allgatherv_allcomm_gentran_linear(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_allgatherv_allcomm_gentran_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request); /* sched-based functions */ -int MPIR_Ineighbor_allgatherv_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int recvcounts[], const int displs[], +int MPIR_Ineighbor_allgatherv_sched_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /* sched-based intracomm-only functions */ -int MPIR_Ineighbor_allgatherv_intra_sched_auto(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_allgatherv_intra_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /* sched-based intercomm-only functions */ -int MPIR_Ineighbor_allgatherv_inter_sched_auto(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_allgatherv_inter_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /* sched-based anycomm functions */ -int MPIR_Ineighbor_allgatherv_allcomm_sched_linear(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_allgatherv_allcomm_sched_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, @@ -1008,41 +1031,42 @@ int MPIR_Ineighbor_allgatherv_allcomm_sched_linear(const void *sendbuf, int send /******************************** Ineighbor_alltoall ********************************/ /* request-based functions */ -int MPIR_Ineighbor_alltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Ineighbor_alltoall(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Ineighbor_alltoall_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Ineighbor_alltoall_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Ineighbor_alltoall_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Ineighbor_alltoall_allcomm_gentran_linear(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_alltoall_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, + MPIR_Request ** request); +int MPIR_Ineighbor_alltoall_allcomm_gentran_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request); /* sched-based functions */ -int MPIR_Ineighbor_alltoall_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, MPIR_Sched_t s); +int MPIR_Ineighbor_alltoall_sched_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /* sched-based intracomm-only functions */ -int MPIR_Ineighbor_alltoall_intra_sched_auto(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, - MPI_Datatype recvtype, MPIR_Comm * comm_ptr, - MPIR_Sched_t s); +int MPIR_Ineighbor_alltoall_intra_sched_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Sched_t s); /* sched-based intercomm-only functions */ -int MPIR_Ineighbor_alltoall_inter_sched_auto(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, - MPI_Datatype recvtype, MPIR_Comm * comm_ptr, - MPIR_Sched_t s); +int MPIR_Ineighbor_alltoall_inter_sched_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Sched_t s); /* sched-based anycomm functions */ -int MPIR_Ineighbor_alltoall_allcomm_sched_linear(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_alltoall_allcomm_sched_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s); @@ -1154,46 +1178,49 @@ int MPIR_Ineighbor_alltoallw_allcomm_sched_linear(const void *sendbuf, const int /******************************** Ireduce ********************************/ /* request-based functions */ -int MPIR_Ireduce(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, - int root, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Ireduce_impl(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, +int MPIR_Ireduce(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, + MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request); +int MPIR_Ireduce_impl(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Ireduce_allcomm_auto(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Ireduce_intra_gentran_tree(const void *sendbuf, void *recvbuf, int count, +int MPIR_Ireduce_allcomm_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, + MPIR_Request ** request); +int MPIR_Ireduce_intra_gentran_tree(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, int tree_type, int k, int maxbytes, int buffer_per_child, MPIR_Request ** request); -int MPIR_Ireduce_intra_gentran_ring(const void *sendbuf, void *recvbuf, int count, +int MPIR_Ireduce_intra_gentran_ring(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, int maxbytes, int buffer_per_child, MPIR_Request ** request); /* sched-based functions */ -int MPIR_Ireduce_sched_auto(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s); +int MPIR_Ireduce_sched_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, + MPIR_Sched_t s); /* sched-based intracomm-only functions */ -int MPIR_Ireduce_intra_sched_auto(const void *sendbuf, void *recvbuf, int count, +int MPIR_Ireduce_intra_sched_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Ireduce_intra_sched_binomial(const void *sendbuf, void *recvbuf, int count, +int MPIR_Ireduce_intra_sched_binomial(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Ireduce_intra_sched_reduce_scatter_gather(const void *sendbuf, void *recvbuf, int count, - MPI_Datatype datatype, MPI_Op op, int root, - MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Ireduce_intra_sched_smp(const void *sendbuf, void *recvbuf, int count, +int MPIR_Ireduce_intra_sched_reduce_scatter_gather(const void *sendbuf, void *recvbuf, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, + int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s); +int MPIR_Ireduce_intra_sched_smp(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /* sched-based intercomm-only functions */ -int MPIR_Ireduce_inter_sched_auto(const void *sendbuf, void *recvbuf, int count, +int MPIR_Ireduce_inter_sched_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Ireduce_inter_sched_local_reduce_remote_send(const void *sendbuf, void *recvbuf, int count, - MPI_Datatype datatype, MPI_Op op, int root, - MPIR_Comm * comm_ptr, MPIR_Sched_t s); +int MPIR_Ireduce_inter_sched_local_reduce_remote_send(const void *sendbuf, void *recvbuf, + MPI_Aint count, MPI_Datatype datatype, + MPI_Op op, int root, MPIR_Comm * comm_ptr, + MPIR_Sched_t s); /******************************** Ireduce_scatter ********************************/ @@ -1251,52 +1278,53 @@ int MPIR_Ireduce_scatter_inter_sched_remote_reduce_local_scatterv(const void *se /******************************** Ireduce_scatter_block ********************************/ /* request-based functions */ -int MPIR_Ireduce_scatter_block(const void *sendbuf, void *recvbuf, int recvcount, +int MPIR_Ireduce_scatter_block(const void *sendbuf, void *recvbuf, MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Ireduce_scatter_block_impl(const void *sendbuf, void *recvbuf, int recvcount, +int MPIR_Ireduce_scatter_block_impl(const void *sendbuf, void *recvbuf, MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Ireduce_scatter_block_allcomm_auto(const void *sendbuf, void *recvbuf, int recvcount, +int MPIR_Ireduce_scatter_block_allcomm_auto(const void *sendbuf, void *recvbuf, MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request); int MPIR_Ireduce_scatter_block_intra_gentran_recexch(const void *sendbuf, void *recvbuf, - int recvcount, MPI_Datatype datatype, + MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, int k, MPIR_Request ** request); /* sched-based functions */ -int MPIR_Ireduce_scatter_block_sched_auto(const void *sendbuf, void *recvbuf, int recvcount, +int MPIR_Ireduce_scatter_block_sched_auto(const void *sendbuf, void *recvbuf, MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s); /* sched-based intracomm-only functions */ -int MPIR_Ireduce_scatter_block_intra_sched_auto(const void *sendbuf, void *recvbuf, int recvcount, - MPI_Datatype datatype, MPI_Op op, - MPIR_Comm * comm_ptr, MPIR_Sched_t s); +int MPIR_Ireduce_scatter_block_intra_sched_auto(const void *sendbuf, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype datatype, + MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s); int MPIR_Ireduce_scatter_block_intra_sched_noncommutative(const void *sendbuf, void *recvbuf, - int recvcount, MPI_Datatype datatype, + MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s); int MPIR_Ireduce_scatter_block_intra_sched_pairwise(const void *sendbuf, void *recvbuf, - int recvcount, MPI_Datatype datatype, MPI_Op op, - MPIR_Comm * comm_ptr, MPIR_Sched_t s); + MPI_Aint recvcount, MPI_Datatype datatype, + MPI_Op op, MPIR_Comm * comm_ptr, + MPIR_Sched_t s); int MPIR_Ireduce_scatter_block_intra_sched_recursive_doubling(const void *sendbuf, void *recvbuf, - int recvcount, MPI_Datatype datatype, - MPI_Op op, MPIR_Comm * comm_ptr, - MPIR_Sched_t s); + MPI_Aint recvcount, + MPI_Datatype datatype, MPI_Op op, + MPIR_Comm * comm_ptr, MPIR_Sched_t s); int MPIR_Ireduce_scatter_block_intra_sched_recursive_halving(const void *sendbuf, void *recvbuf, - int recvcount, MPI_Datatype datatype, - MPI_Op op, MPIR_Comm * comm_ptr, - MPIR_Sched_t s); + MPI_Aint recvcount, + MPI_Datatype datatype, MPI_Op op, + MPIR_Comm * comm_ptr, MPIR_Sched_t s); /* sched-based intercomm-only functions */ -int MPIR_Ireduce_scatter_block_inter_sched_auto(const void *sendbuf, void *recvbuf, int recvcount, - MPI_Datatype datatype, MPI_Op op, - MPIR_Comm * comm_ptr, MPIR_Sched_t s); +int MPIR_Ireduce_scatter_block_inter_sched_auto(const void *sendbuf, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype datatype, + MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s); int MPIR_Ireduce_scatter_block_inter_sched_remote_reduce_local_scatterv(const void *sendbuf, void *recvbuf, - int recvcount, + MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, @@ -1305,23 +1333,25 @@ int MPIR_Ireduce_scatter_block_inter_sched_remote_reduce_local_scatterv(const vo /******************************** Iscan ********************************/ /* request-based functions */ -int MPIR_Iscan(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, +int MPIR_Iscan(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Iscan_impl(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, - MPIR_Comm * comm_ptr, MPIR_Request ** request); -int MPIR_Iscan_allcomm_auto(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request); +int MPIR_Iscan_impl(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, + MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request); +int MPIR_Iscan_allcomm_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, + MPIR_Request ** request); /* sched-based intracomm-only functions */ -int MPIR_Iscan_intra_sched_auto(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iscan_intra_sched_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Iscan_intra_sched_recursive_doubling(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iscan_intra_sched_recursive_doubling(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Iscan_intra_sched_smp(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s); -int MPIR_Iscan_intra_gentran_recursive_doubling(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iscan_intra_sched_smp(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, + MPIR_Sched_t s); +int MPIR_Iscan_intra_gentran_recursive_doubling(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request); @@ -1411,65 +1441,68 @@ int MPIR_Iscatterv_allcomm_sched_linear(const void *sendbuf, const int *sendcoun /******************************** Neighbor_allgather ********************************/ -int MPIR_Neighbor_allgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Neighbor_allgather(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr); -int MPIR_Neighbor_allgather_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Neighbor_allgather_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr); /* intracomm-only functions */ -int MPIR_Neighbor_allgather_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr); +int MPIR_Neighbor_allgather_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr); /* intercomm-only functions */ /* anycomm functions */ -int MPIR_Neighbor_allgather_allcomm_nb(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr); +int MPIR_Neighbor_allgather_allcomm_nb(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr); /******************************** Neighbor_allgatherv ********************************/ -int MPIR_Neighbor_allgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Neighbor_allgatherv(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr); -int MPIR_Neighbor_allgatherv_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Neighbor_allgatherv_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr); /* intracomm-only functions */ -int MPIR_Neighbor_allgatherv_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int recvcounts[], const int displs[], +int MPIR_Neighbor_allgatherv_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr); /* intercomm-only functions */ /* anycomm functions */ -int MPIR_Neighbor_allgatherv_allcomm_nb(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int recvcounts[], const int displs[], +int MPIR_Neighbor_allgatherv_allcomm_nb(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr); /******************************** Neighbor_alltoall ********************************/ -int MPIR_Neighbor_alltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr); -int MPIR_Neighbor_alltoall_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Neighbor_alltoall(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, + MPIR_Comm * comm_ptr); +int MPIR_Neighbor_alltoall_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr); /* intracomm-only functions */ -int MPIR_Neighbor_alltoall_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr); +int MPIR_Neighbor_alltoall_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr); /* intercomm-only functions */ /* anycomm functions */ -int MPIR_Neighbor_alltoall_allcomm_nb(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr); +int MPIR_Neighbor_alltoall_allcomm_nb(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr); /******************************** Neighbor_alltoallv ********************************/ @@ -1523,34 +1556,37 @@ int MPIR_Neighbor_alltoallw_allcomm_nb(const void *sendbuf, const int sendcounts /******************************** Reduce ********************************/ -int MPIR_Reduce(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, - int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Reduce_impl(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, +int MPIR_Reduce(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, + MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); +int MPIR_Reduce_impl(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* intracomm-only functions */ -int MPIR_Reduce_allcomm_auto(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Reduce_intra_binomial(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Reduce_intra_reduce_scatter_gather(const void *sendbuf, void *recvbuf, int count, +int MPIR_Reduce_allcomm_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, + MPIR_Errflag_t * errflag); +int MPIR_Reduce_intra_binomial(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, + MPIR_Errflag_t * errflag); +int MPIR_Reduce_intra_reduce_scatter_gather(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Reduce_intra_smp(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, +int MPIR_Reduce_intra_smp(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* intercomm-only functions */ -int MPIR_Reduce_inter_local_reduce_remote_send(const void *sendbuf, void *recvbuf, int count, +int MPIR_Reduce_inter_local_reduce_remote_send(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* anycomm functions */ -int MPIR_Reduce_allcomm_nb(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); +int MPIR_Reduce_allcomm_nb(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, + MPIR_Errflag_t * errflag); /******************************** Reduce_local ********************************/ -int MPIR_Reduce_local(const void *inbuf, void *inoutbuf, int count, MPI_Datatype datatype, +int MPIR_Reduce_local(const void *inbuf, void *inoutbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op); @@ -1596,62 +1632,64 @@ int MPIR_Reduce_scatter_allcomm_nb(const void *sendbuf, void *recvbuf, const int /******************************** Reduce_scatter_block ********************************/ -int MPIR_Reduce_scatter_block(const void *sendbuf, void *recvbuf, int recvcount, +int MPIR_Reduce_scatter_block(const void *sendbuf, void *recvbuf, MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Reduce_scatter_block_impl(const void *sendbuf, void *recvbuf, int recvcount, +int MPIR_Reduce_scatter_block_impl(const void *sendbuf, void *recvbuf, MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* intracomm-only functions */ -int MPIR_Reduce_scatter_block_allcomm_auto(const void *sendbuf, void *recvbuf, int recvcount, +int MPIR_Reduce_scatter_block_allcomm_auto(const void *sendbuf, void *recvbuf, MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); int MPIR_Reduce_scatter_block_intra_noncommutative(const void *sendbuf, void *recvbuf, - int recvcount, MPI_Datatype datatype, MPI_Op op, - MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Reduce_scatter_block_intra_pairwise(const void *sendbuf, void *recvbuf, int recvcount, + MPI_Aint recvcount, MPI_Datatype datatype, + MPI_Op op, MPIR_Comm * comm_ptr, + MPIR_Errflag_t * errflag); +int MPIR_Reduce_scatter_block_intra_pairwise(const void *sendbuf, void *recvbuf, MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); int MPIR_Reduce_scatter_block_intra_recursive_doubling(const void *sendbuf, void *recvbuf, - int recvcount, MPI_Datatype datatype, + MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); int MPIR_Reduce_scatter_block_intra_recursive_halving(const void *sendbuf, void *recvbuf, - int recvcount, MPI_Datatype datatype, + MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* intercomm-only functions */ int MPIR_Reduce_scatter_block_inter_remote_reduce_local_scatter(const void *sendbuf, void *recvbuf, - int recvcount, + MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* anycomm functions */ -int MPIR_Reduce_scatter_block_allcomm_nb(const void *sendbuf, void *recvbuf, int recvcount, +int MPIR_Reduce_scatter_block_allcomm_nb(const void *sendbuf, void *recvbuf, MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /******************************** Scan ********************************/ -int MPIR_Scan(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, +int MPIR_Scan(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Scan_impl(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, MPI_Op op, - MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); +int MPIR_Scan_impl(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, + MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* intracomm-only functions */ -int MPIR_Scan_allcomm_auto(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Scan_intra_recursive_doubling(const void *sendbuf, void *recvbuf, int count, +int MPIR_Scan_allcomm_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, + MPIR_Errflag_t * errflag); +int MPIR_Scan_intra_recursive_doubling(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); -int MPIR_Scan_intra_smp(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, +int MPIR_Scan_intra_smp(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); /* anycomm functions */ -int MPIR_Scan_allcomm_nb(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, +int MPIR_Scan_allcomm_nb(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag); diff --git a/src/mpi/coll/allgather/allgather.c b/src/mpi/coll/allgather/allgather.c index 2492244ad80..b1303b6e78b 100644 --- a/src/mpi/coll/allgather/allgather.c +++ b/src/mpi/coll/allgather/allgather.c @@ -80,10 +80,10 @@ */ int MPIR_Allgather_allcomm_auto(const void *sendbuf, - int sendcount, + MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { @@ -143,8 +143,8 @@ int MPIR_Allgather_allcomm_auto(const void *sendbuf, return mpi_errno; } -int MPIR_Allgather_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Allgather_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; @@ -211,8 +211,8 @@ int MPIR_Allgather_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtyp goto fn_exit; } -int MPIR_Allgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Allgather(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/allgather/allgather_allcomm_nb.c b/src/mpi/coll/allgather/allgather_allcomm_nb.c index c54eefd63f1..15bfe69b5be 100644 --- a/src/mpi/coll/allgather/allgather_allcomm_nb.c +++ b/src/mpi/coll/allgather/allgather_allcomm_nb.c @@ -5,8 +5,8 @@ #include "mpiimpl.h" -int MPIR_Allgather_allcomm_nb(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Allgather_allcomm_nb(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/allgather/allgather_inter_local_gather_remote_bcast.c b/src/mpi/coll/allgather/allgather_inter_local_gather_remote_bcast.c index d686d579bf6..23f83c88f85 100644 --- a/src/mpi/coll/allgather/allgather_inter_local_gather_remote_bcast.c +++ b/src/mpi/coll/allgather/allgather_inter_local_gather_remote_bcast.c @@ -12,9 +12,9 @@ * broadcast. */ -int MPIR_Allgather_inter_local_gather_remote_bcast(const void *sendbuf, int sendcount, +int MPIR_Allgather_inter_local_gather_remote_bcast(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int rank, local_size, remote_size, mpi_errno = MPI_SUCCESS, root; diff --git a/src/mpi/coll/allgather/allgather_intra_brucks.c b/src/mpi/coll/allgather/allgather_intra_brucks.c index 38f4766e6e3..a738f93d70a 100644 --- a/src/mpi/coll/allgather/allgather_intra_brucks.c +++ b/src/mpi/coll/allgather/allgather_intra_brucks.c @@ -15,10 +15,10 @@ * where n is total size of data gathered on each process. */ int MPIR_Allgather_intra_brucks(const void *sendbuf, - int sendcount, + MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { diff --git a/src/mpi/coll/allgather/allgather_intra_recursive_doubling.c b/src/mpi/coll/allgather/allgather_intra_recursive_doubling.c index 31e8c272599..4fd62af8135 100644 --- a/src/mpi/coll/allgather/allgather_intra_recursive_doubling.c +++ b/src/mpi/coll/allgather/allgather_intra_recursive_doubling.c @@ -18,10 +18,10 @@ * PVM/MPI 2003). */ int MPIR_Allgather_intra_recursive_doubling(const void *sendbuf, - int sendcount, + MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { diff --git a/src/mpi/coll/allgather/allgather_intra_ring.c b/src/mpi/coll/allgather/allgather_intra_ring.c index c1f35260947..7981d8b4ef5 100644 --- a/src/mpi/coll/allgather/allgather_intra_ring.c +++ b/src/mpi/coll/allgather/allgather_intra_ring.c @@ -21,10 +21,10 @@ * Myrinet and IBM SP). */ int MPIR_Allgather_intra_ring(const void *sendbuf, - int sendcount, + MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int comm_size, rank; diff --git a/src/mpi/coll/allgatherv/allgatherv.c b/src/mpi/coll/allgatherv/allgatherv.c index a563f8c28ce..b074cfbb62f 100644 --- a/src/mpi/coll/allgatherv/allgatherv.c +++ b/src/mpi/coll/allgatherv/allgatherv.c @@ -67,7 +67,7 @@ */ int MPIR_Allgatherv_allcomm_auto(const void *sendbuf, - int sendcount, + MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, @@ -136,7 +136,7 @@ int MPIR_Allgatherv_allcomm_auto(const void *sendbuf, goto fn_exit; } -int MPIR_Allgatherv_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Allgatherv_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { @@ -205,7 +205,7 @@ int MPIR_Allgatherv_impl(const void *sendbuf, int sendcount, MPI_Datatype sendty goto fn_exit; } -int MPIR_Allgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Allgatherv(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { diff --git a/src/mpi/coll/allgatherv/allgatherv_allcomm_nb.c b/src/mpi/coll/allgatherv/allgatherv_allcomm_nb.c index 9310544d1da..ba5fa7f0bfa 100644 --- a/src/mpi/coll/allgatherv/allgatherv_allcomm_nb.c +++ b/src/mpi/coll/allgatherv/allgatherv_allcomm_nb.c @@ -5,7 +5,7 @@ #include "mpiimpl.h" -int MPIR_Allgatherv_allcomm_nb(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Allgatherv_allcomm_nb(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) diff --git a/src/mpi/coll/allgatherv/allgatherv_inter_remote_gather_local_bcast.c b/src/mpi/coll/allgatherv/allgatherv_inter_remote_gather_local_bcast.c index ffb5ce358cb..f9d0211aa32 100644 --- a/src/mpi/coll/allgatherv/allgatherv_inter_remote_gather_local_bcast.c +++ b/src/mpi/coll/allgatherv/allgatherv_inter_remote_gather_local_bcast.c @@ -15,7 +15,7 @@ * intracommunicator broadcast. */ -int MPIR_Allgatherv_inter_remote_gather_local_bcast(const void *sendbuf, int sendcount, +int MPIR_Allgatherv_inter_remote_gather_local_bcast(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, diff --git a/src/mpi/coll/allgatherv/allgatherv_intra_brucks.c b/src/mpi/coll/allgatherv/allgatherv_intra_brucks.c index aa301e22397..71adcbe4a4b 100644 --- a/src/mpi/coll/allgatherv/allgatherv_intra_brucks.c +++ b/src/mpi/coll/allgatherv/allgatherv_intra_brucks.c @@ -17,7 +17,7 @@ */ int MPIR_Allgatherv_intra_brucks(const void *sendbuf, - int sendcount, + MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, diff --git a/src/mpi/coll/allgatherv/allgatherv_intra_recursive_doubling.c b/src/mpi/coll/allgatherv/allgatherv_intra_recursive_doubling.c index 704327b64f3..27db1278d7d 100644 --- a/src/mpi/coll/allgatherv/allgatherv_intra_recursive_doubling.c +++ b/src/mpi/coll/allgatherv/allgatherv_intra_recursive_doubling.c @@ -19,7 +19,7 @@ */ int MPIR_Allgatherv_intra_recursive_doubling(const void *sendbuf, - int sendcount, + MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, diff --git a/src/mpi/coll/allgatherv/allgatherv_intra_ring.c b/src/mpi/coll/allgatherv/allgatherv_intra_ring.c index a09e352c273..0e195cf0f74 100644 --- a/src/mpi/coll/allgatherv/allgatherv_intra_ring.c +++ b/src/mpi/coll/allgatherv/allgatherv_intra_ring.c @@ -23,7 +23,7 @@ */ int MPIR_Allgatherv_intra_ring(const void *sendbuf, - int sendcount, + MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, diff --git a/src/mpi/coll/allreduce/allreduce.c b/src/mpi/coll/allreduce/allreduce.c index aabd8005e7b..596f74ff7ea 100644 --- a/src/mpi/coll/allreduce/allreduce.c +++ b/src/mpi/coll/allreduce/allreduce.c @@ -100,7 +100,7 @@ MPIR_Op_check_dtype_fn *MPIR_Op_check_dtype_table[] = { }; -int MPIR_Allreduce_allcomm_auto(const void *sendbuf, void *recvbuf, int count, +int MPIR_Allreduce_allcomm_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { @@ -159,7 +159,7 @@ int MPIR_Allreduce_allcomm_auto(const void *sendbuf, void *recvbuf, int count, goto fn_exit; } -int MPIR_Allreduce_impl(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, +int MPIR_Allreduce_impl(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; @@ -222,7 +222,7 @@ int MPIR_Allreduce_impl(const void *sendbuf, void *recvbuf, int count, MPI_Datat goto fn_exit; } -int MPIR_Allreduce(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, +int MPIR_Allreduce(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/allreduce/allreduce_allcomm_nb.c b/src/mpi/coll/allreduce/allreduce_allcomm_nb.c index 229b6379bf4..2e6027c8ee6 100644 --- a/src/mpi/coll/allreduce/allreduce_allcomm_nb.c +++ b/src/mpi/coll/allreduce/allreduce_allcomm_nb.c @@ -5,8 +5,9 @@ #include "mpiimpl.h" -int MPIR_Allreduce_allcomm_nb(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) +int MPIR_Allreduce_allcomm_nb(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, + MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; MPI_Request req = MPI_REQUEST_NULL; diff --git a/src/mpi/coll/allreduce/allreduce_intra_recursive_doubling.c b/src/mpi/coll/allreduce/allreduce_intra_recursive_doubling.c index d866c01f0f7..ad5701dfcad 100644 --- a/src/mpi/coll/allreduce/allreduce_intra_recursive_doubling.c +++ b/src/mpi/coll/allreduce/allreduce_intra_recursive_doubling.c @@ -19,7 +19,7 @@ int MPIR_Allreduce_intra_recursive_doubling(const void *sendbuf, void *recvbuf, - int count, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) diff --git a/src/mpi/coll/allreduce/allreduce_intra_reduce_scatter_allgather.c b/src/mpi/coll/allreduce/allreduce_intra_reduce_scatter_allgather.c index f3677812b8b..bda40596252 100644 --- a/src/mpi/coll/allreduce/allreduce_intra_reduce_scatter_allgather.c +++ b/src/mpi/coll/allreduce/allreduce_intra_reduce_scatter_allgather.c @@ -40,7 +40,7 @@ int MPIR_Allreduce_intra_reduce_scatter_allgather(const void *sendbuf, void *recvbuf, - int count, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) diff --git a/src/mpi/coll/allreduce/allreduce_intra_smp.c b/src/mpi/coll/allreduce/allreduce_intra_smp.c index 700fd22a463..460556c7afd 100644 --- a/src/mpi/coll/allreduce/allreduce_intra_smp.c +++ b/src/mpi/coll/allreduce/allreduce_intra_smp.c @@ -5,7 +5,7 @@ #include "mpiimpl.h" -int MPIR_Allreduce_intra_smp(const void *sendbuf, void *recvbuf, int count, +int MPIR_Allreduce_intra_smp(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { diff --git a/src/mpi/coll/allreduce_group/allreduce_group.c b/src/mpi/coll/allreduce_group/allreduce_group.c index cf1592a980e..73f94b0aa7c 100644 --- a/src/mpi/coll/allreduce_group/allreduce_group.c +++ b/src/mpi/coll/allreduce_group/allreduce_group.c @@ -15,7 +15,7 @@ MPIR_Assert((cr_) != MPI_UNDEFINED); \ } while (0) -int MPII_Allreduce_group_intra(void *sendbuf, void *recvbuf, int count, +int MPII_Allreduce_group_intra(void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Group * group_ptr, int tag, MPIR_Errflag_t * errflag) { @@ -337,7 +337,7 @@ int MPII_Allreduce_group_intra(void *sendbuf, void *recvbuf, int count, goto fn_exit; } -int MPII_Allreduce_group(void *sendbuf, void *recvbuf, int count, +int MPII_Allreduce_group(void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Group * group_ptr, int tag, MPIR_Errflag_t * errflag) { diff --git a/src/mpi/coll/allreduce_group/allreduce_group.h b/src/mpi/coll/allreduce_group/allreduce_group.h index cf1444351e5..c5ba65f1d51 100644 --- a/src/mpi/coll/allreduce_group/allreduce_group.h +++ b/src/mpi/coll/allreduce_group/allreduce_group.h @@ -8,10 +8,10 @@ #ifndef ALLREDUCE_GROUP_H_INCLUDED #define ALLREDUCE_GROUP_H_INCLUDED -int MPII_Allreduce_group(void *sendbuf, void *recvbuf, int count, +int MPII_Allreduce_group(void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Group * group_ptr, int tag, MPIR_Errflag_t * errflag); -int MPII_Allreduce_group_intra(void *sendbuf, void *recvbuf, int count, +int MPII_Allreduce_group_intra(void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Group * group_ptr, int tag, MPIR_Errflag_t * errflag); diff --git a/src/mpi/coll/alltoall/alltoall.c b/src/mpi/coll/alltoall/alltoall.c index a33bd4e2c71..d1dd5c92e48 100644 --- a/src/mpi/coll/alltoall/alltoall.c +++ b/src/mpi/coll/alltoall/alltoall.c @@ -98,10 +98,10 @@ categories : */ int MPIR_Alltoall_allcomm_auto(const void *sendbuf, - int sendcount, + MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { @@ -172,8 +172,8 @@ int MPIR_Alltoall_allcomm_auto(const void *sendbuf, goto fn_exit; } -int MPIR_Alltoall_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Alltoall_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; @@ -245,8 +245,8 @@ int MPIR_Alltoall_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype goto fn_exit; } -int MPIR_Alltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Alltoall(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/alltoall/alltoall_allcomm_nb.c b/src/mpi/coll/alltoall/alltoall_allcomm_nb.c index 39d29fad861..d01509a7ff3 100644 --- a/src/mpi/coll/alltoall/alltoall_allcomm_nb.c +++ b/src/mpi/coll/alltoall/alltoall_allcomm_nb.c @@ -5,8 +5,8 @@ #include "mpiimpl.h" -int MPIR_Alltoall_allcomm_nb(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Alltoall_allcomm_nb(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/alltoall/alltoall_inter_pairwise_exchange.c b/src/mpi/coll/alltoall/alltoall_inter_pairwise_exchange.c index 6f5fc1ad8c2..c5a573c3163 100644 --- a/src/mpi/coll/alltoall/alltoall_inter_pairwise_exchange.c +++ b/src/mpi/coll/alltoall/alltoall_inter_pairwise_exchange.c @@ -16,8 +16,8 @@ * max_size if dst < remote_size. */ -int MPIR_Alltoall_inter_pairwise_exchange(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, +int MPIR_Alltoall_inter_pairwise_exchange(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { diff --git a/src/mpi/coll/alltoall/alltoall_intra_brucks.c b/src/mpi/coll/alltoall/alltoall_intra_brucks.c index 7440d9debdf..3e2b6dc0871 100644 --- a/src/mpi/coll/alltoall/alltoall_intra_brucks.c +++ b/src/mpi/coll/alltoall/alltoall_intra_brucks.c @@ -19,10 +19,10 @@ * other processes. */ int MPIR_Alltoall_intra_brucks(const void *sendbuf, - int sendcount, + MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { diff --git a/src/mpi/coll/alltoall/alltoall_intra_pairwise.c b/src/mpi/coll/alltoall/alltoall_intra_pairwise.c index 40a355cbdab..46065e8f9ac 100644 --- a/src/mpi/coll/alltoall/alltoall_intra_pairwise.c +++ b/src/mpi/coll/alltoall/alltoall_intra_pairwise.c @@ -23,10 +23,10 @@ * other processes. */ int MPIR_Alltoall_intra_pairwise(const void *sendbuf, - int sendcount, + MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { diff --git a/src/mpi/coll/alltoall/alltoall_intra_pairwise_sendrecv_replace.c b/src/mpi/coll/alltoall/alltoall_intra_pairwise_sendrecv_replace.c index 12190165855..2ffb22a3ed6 100644 --- a/src/mpi/coll/alltoall/alltoall_intra_pairwise_sendrecv_replace.c +++ b/src/mpi/coll/alltoall/alltoall_intra_pairwise_sendrecv_replace.c @@ -20,10 +20,10 @@ * MADRE is probably the best solution for the MPI_IN_PLACE scenario. */ int MPIR_Alltoall_intra_pairwise_sendrecv_replace(const void *sendbuf, - int sendcount, + MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { diff --git a/src/mpi/coll/alltoall/alltoall_intra_scattered.c b/src/mpi/coll/alltoall/alltoall_intra_scattered.c index f641221109e..8d54c50df37 100644 --- a/src/mpi/coll/alltoall/alltoall_intra_scattered.c +++ b/src/mpi/coll/alltoall/alltoall_intra_scattered.c @@ -28,10 +28,10 @@ */ int MPIR_Alltoall_intra_scattered(const void *sendbuf, - int sendcount, + MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { diff --git a/src/mpi/coll/bcast/bcast.c b/src/mpi/coll/bcast/bcast.c index 125df6b440c..5db26981ab1 100644 --- a/src/mpi/coll/bcast/bcast.c +++ b/src/mpi/coll/bcast/bcast.c @@ -128,7 +128,7 @@ */ -int MPIR_Bcast_allcomm_auto(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Bcast_allcomm_auto(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; @@ -184,8 +184,8 @@ int MPIR_Bcast_allcomm_auto(void *buffer, int count, MPI_Datatype datatype, int return mpi_errno; } -int MPIR_Bcast_impl(void *buffer, int count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, - MPIR_Errflag_t * errflag) +int MPIR_Bcast_impl(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, + MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; @@ -247,7 +247,7 @@ int MPIR_Bcast_impl(void *buffer, int count, MPI_Datatype datatype, int root, MP goto fn_exit; } -int MPIR_Bcast(void *buffer, int count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, +int MPIR_Bcast(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/bcast/bcast.h b/src/mpi/coll/bcast/bcast.h index 854ed91a448..9a8e07d4b32 100644 --- a/src/mpi/coll/bcast/bcast.h +++ b/src/mpi/coll/bcast/bcast.h @@ -8,7 +8,7 @@ #include "mpiimpl.h" -int MPII_Scatter_for_bcast(void *buffer, int count, MPI_Datatype datatype, +int MPII_Scatter_for_bcast(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, int nbytes, void *tmp_buf, int is_contig, MPIR_Errflag_t * errflag); diff --git a/src/mpi/coll/bcast/bcast_allcomm_nb.c b/src/mpi/coll/bcast/bcast_allcomm_nb.c index 1c745d465c5..1bcedc09df6 100644 --- a/src/mpi/coll/bcast/bcast_allcomm_nb.c +++ b/src/mpi/coll/bcast/bcast_allcomm_nb.c @@ -5,7 +5,7 @@ #include "mpiimpl.h" -int MPIR_Bcast_allcomm_nb(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Bcast_allcomm_nb(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/bcast/bcast_inter_remote_send_local_bcast.c b/src/mpi/coll/bcast/bcast_inter_remote_send_local_bcast.c index a7e99567a73..6f87b4f0d82 100644 --- a/src/mpi/coll/bcast/bcast_inter_remote_send_local_bcast.c +++ b/src/mpi/coll/bcast/bcast_inter_remote_send_local_bcast.c @@ -12,7 +12,7 @@ */ int MPIR_Bcast_inter_remote_send_local_bcast(void *buffer, - int count, + MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) diff --git a/src/mpi/coll/bcast/bcast_intra_binomial.c b/src/mpi/coll/bcast/bcast_intra_binomial.c index bbb8c49b7ff..9fb0fab02ff 100644 --- a/src/mpi/coll/bcast/bcast_intra_binomial.c +++ b/src/mpi/coll/bcast/bcast_intra_binomial.c @@ -11,7 +11,7 @@ * Cost = lgp.alpha + n.lgp.beta */ int MPIR_Bcast_intra_binomial(void *buffer, - int count, + MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { diff --git a/src/mpi/coll/bcast/bcast_intra_scatter_recursive_doubling_allgather.c b/src/mpi/coll/bcast/bcast_intra_scatter_recursive_doubling_allgather.c index 7f184035a7e..c652c327297 100644 --- a/src/mpi/coll/bcast/bcast_intra_scatter_recursive_doubling_allgather.c +++ b/src/mpi/coll/bcast/bcast_intra_scatter_recursive_doubling_allgather.c @@ -26,7 +26,7 @@ * Total Cost = 2.lgp.alpha + 2.n.((p-1)/p).beta */ int MPIR_Bcast_intra_scatter_recursive_doubling_allgather(void *buffer, - int count, + MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, diff --git a/src/mpi/coll/bcast/bcast_intra_scatter_ring_allgather.c b/src/mpi/coll/bcast/bcast_intra_scatter_ring_allgather.c index 8827c94d4f9..291c473b2d4 100644 --- a/src/mpi/coll/bcast/bcast_intra_scatter_ring_allgather.c +++ b/src/mpi/coll/bcast/bcast_intra_scatter_ring_allgather.c @@ -22,7 +22,7 @@ * Total Cost = (lgp+p-1).alpha + 2.n.((p-1)/p).beta */ int MPIR_Bcast_intra_scatter_ring_allgather(void *buffer, - int count, + MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) diff --git a/src/mpi/coll/bcast/bcast_intra_smp.c b/src/mpi/coll/bcast/bcast_intra_smp.c index be1bcc14ba7..60865ac721d 100644 --- a/src/mpi/coll/bcast/bcast_intra_smp.c +++ b/src/mpi/coll/bcast/bcast_intra_smp.c @@ -10,7 +10,7 @@ * the cutoff points for these algorithms. If I've done this right, you should * be able to make changes along these lines almost exclusively in this function * and some new functions. [goodell@ 2008/01/07] */ -int MPIR_Bcast_intra_smp(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Bcast_intra_smp(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/exscan/exscan.c b/src/mpi/coll/exscan/exscan.c index dc5e236f616..387df7b42f9 100644 --- a/src/mpi/coll/exscan/exscan.c +++ b/src/mpi/coll/exscan/exscan.c @@ -41,8 +41,9 @@ */ -int MPIR_Exscan_allcomm_auto(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) +int MPIR_Exscan_allcomm_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, + MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; @@ -79,7 +80,7 @@ int MPIR_Exscan_allcomm_auto(const void *sendbuf, void *recvbuf, int count, MPI_ return mpi_errno; } -int MPIR_Exscan_impl(const void *sendbuf, void *recvbuf, int count, +int MPIR_Exscan_impl(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { @@ -112,7 +113,7 @@ int MPIR_Exscan_impl(const void *sendbuf, void *recvbuf, int count, goto fn_exit; } -int MPIR_Exscan(const void *sendbuf, void *recvbuf, int count, +int MPIR_Exscan(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/exscan/exscan_allcomm_nb.c b/src/mpi/coll/exscan/exscan_allcomm_nb.c index 3dca8feaa5e..431377d03bd 100644 --- a/src/mpi/coll/exscan/exscan_allcomm_nb.c +++ b/src/mpi/coll/exscan/exscan_allcomm_nb.c @@ -5,8 +5,9 @@ #include "mpiimpl.h" -int MPIR_Exscan_allcomm_nb(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) +int MPIR_Exscan_allcomm_nb(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, + MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; MPI_Request req = MPI_REQUEST_NULL; diff --git a/src/mpi/coll/exscan/exscan_intra_recursive_doubling.c b/src/mpi/coll/exscan/exscan_intra_recursive_doubling.c index 41af589409a..fa199b62319 100644 --- a/src/mpi/coll/exscan/exscan_intra_recursive_doubling.c +++ b/src/mpi/coll/exscan/exscan_intra_recursive_doubling.c @@ -46,7 +46,7 @@ */ int MPIR_Exscan_intra_recursive_doubling(const void *sendbuf, void *recvbuf, - int count, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { diff --git a/src/mpi/coll/gather/gather.c b/src/mpi/coll/gather/gather.c index 5a042acfe39..8c17ea120d5 100644 --- a/src/mpi/coll/gather/gather.c +++ b/src/mpi/coll/gather/gather.c @@ -66,8 +66,8 @@ === END_MPI_T_CVAR_INFO_BLOCK === */ -int MPIR_Gather_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, +int MPIR_Gather_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; @@ -121,8 +121,8 @@ int MPIR_Gather_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype se return mpi_errno; } -int MPIR_Gather_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Gather_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; @@ -183,8 +183,8 @@ int MPIR_Gather_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, goto fn_exit; } -int MPIR_Gather(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Gather(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/gather/gather_allcomm_nb.c b/src/mpi/coll/gather/gather_allcomm_nb.c index 9ec218e3166..5e98af38e94 100644 --- a/src/mpi/coll/gather/gather_allcomm_nb.c +++ b/src/mpi/coll/gather/gather_allcomm_nb.c @@ -5,9 +5,9 @@ #include "mpiimpl.h" -int MPIR_Gather_allcomm_nb(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, - MPIR_Errflag_t * errflag) +int MPIR_Gather_allcomm_nb(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, int root, + MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; MPI_Request req = MPI_REQUEST_NULL; diff --git a/src/mpi/coll/gather/gather_inter_linear.c b/src/mpi/coll/gather/gather_inter_linear.c index 92ce2dafcb4..aec55617307 100644 --- a/src/mpi/coll/gather/gather_inter_linear.c +++ b/src/mpi/coll/gather/gather_inter_linear.c @@ -13,8 +13,8 @@ * Cost: p.alpha + n.beta */ -int MPIR_Gather_inter_linear(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, +int MPIR_Gather_inter_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int remote_size, mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/gather/gather_inter_local_gather_remote_send.c b/src/mpi/coll/gather/gather_inter_local_gather_remote_send.c index db1410fd22d..d4d76e9b52f 100644 --- a/src/mpi/coll/gather/gather_inter_local_gather_remote_send.c +++ b/src/mpi/coll/gather/gather_inter_local_gather_remote_send.c @@ -13,9 +13,9 @@ * Cost: (lgp+1).alpha + n.((p-1)/p).beta + n.beta */ -int MPIR_Gather_inter_local_gather_remote_send(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, - MPI_Datatype recvtype, int root, +int MPIR_Gather_inter_local_gather_remote_send(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int rank, local_size, remote_size, mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/gather/gather_intra_binomial.c b/src/mpi/coll/gather/gather_intra_binomial.c index f6a8fbada2b..aa42a0f499b 100644 --- a/src/mpi/coll/gather/gather_intra_binomial.c +++ b/src/mpi/coll/gather/gather_intra_binomial.c @@ -37,8 +37,8 @@ * Cost = lgp.alpha + n.((p-1)/p).beta where n is the total size of the data * gathered at the root. */ -int MPIR_Gather_intra_binomial(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, +int MPIR_Gather_intra_binomial(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int comm_size, rank; diff --git a/src/mpi/coll/gatherv/gatherv.c b/src/mpi/coll/gatherv/gatherv.c index 8c2fe2e81d8..7f9be59c310 100644 --- a/src/mpi/coll/gatherv/gatherv.c +++ b/src/mpi/coll/gatherv/gatherv.c @@ -53,7 +53,7 @@ === END_MPI_T_CVAR_INFO_BLOCK === */ -int MPIR_Gatherv_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Gatherv_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) @@ -97,7 +97,7 @@ int MPIR_Gatherv_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype s return mpi_errno; } -int MPIR_Gatherv_impl(const void *sendbuf, int sendcount, +int MPIR_Gatherv_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, @@ -157,7 +157,7 @@ int MPIR_Gatherv_impl(const void *sendbuf, int sendcount, goto fn_exit; } -int MPIR_Gatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Gatherv(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { diff --git a/src/mpi/coll/gatherv/gatherv_allcomm_linear.c b/src/mpi/coll/gatherv/gatherv_allcomm_linear.c index 5510c984e5e..1696526657b 100644 --- a/src/mpi/coll/gatherv/gatherv_allcomm_linear.c +++ b/src/mpi/coll/gatherv/gatherv_allcomm_linear.c @@ -36,7 +36,7 @@ * Cost = (p-1).alpha + n.((p-1)/p).beta */ int MPIR_Gatherv_allcomm_linear(const void *sendbuf, - int sendcount, + MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, diff --git a/src/mpi/coll/gatherv/gatherv_allcomm_nb.c b/src/mpi/coll/gatherv/gatherv_allcomm_nb.c index 6ca92cb3348..464817cd59c 100644 --- a/src/mpi/coll/gatherv/gatherv_allcomm_nb.c +++ b/src/mpi/coll/gatherv/gatherv_allcomm_nb.c @@ -5,7 +5,7 @@ #include "mpiimpl.h" -int MPIR_Gatherv_allcomm_nb(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Gatherv_allcomm_nb(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) diff --git a/src/mpi/coll/iallgather/iallgather.c b/src/mpi/coll/iallgather/iallgather.c index f63fcb682ce..e58b41bce40 100644 --- a/src/mpi/coll/iallgather/iallgather.c +++ b/src/mpi/coll/iallgather/iallgather.c @@ -124,8 +124,8 @@ End Algorithm: MPI_Allgather */ -int MPIR_Iallgather_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Iallgather_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; @@ -219,8 +219,8 @@ int MPIR_Iallgather_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatyp goto fn_exit; } -int MPIR_Iallgather_intra_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Iallgather_intra_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; @@ -256,8 +256,8 @@ int MPIR_Iallgather_intra_sched_auto(const void *sendbuf, int sendcount, MPI_Dat goto fn_exit; } -int MPIR_Iallgather_inter_sched_auto(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, +int MPIR_Iallgather_inter_sched_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; @@ -269,9 +269,9 @@ int MPIR_Iallgather_inter_sched_auto(const void *sendbuf, int sendcount, return mpi_errno; } -int MPIR_Iallgather_sched_auto(const void *sendbuf, int sendcount, +int MPIR_Iallgather_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; @@ -287,8 +287,8 @@ int MPIR_Iallgather_sched_auto(const void *sendbuf, int sendcount, return mpi_errno; } -int MPIR_Iallgather_impl(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, +int MPIR_Iallgather_impl(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; @@ -397,8 +397,8 @@ int MPIR_Iallgather_impl(const void *sendbuf, int sendcount, goto fn_exit; } -int MPIR_Iallgather(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Iallgather(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/iallgather/iallgather_inter_sched_local_gather_remote_bcast.c b/src/mpi/coll/iallgather/iallgather_inter_sched_local_gather_remote_bcast.c index 1a2f57b7e88..d62c43d399a 100644 --- a/src/mpi/coll/iallgather/iallgather_inter_sched_local_gather_remote_bcast.c +++ b/src/mpi/coll/iallgather/iallgather_inter_sched_local_gather_remote_bcast.c @@ -11,9 +11,9 @@ * intracommunicator, and then does an intercommunicator broadcast. */ -int MPIR_Iallgather_inter_sched_local_gather_remote_bcast(const void *sendbuf, int sendcount, +int MPIR_Iallgather_inter_sched_local_gather_remote_bcast(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/iallgather/iallgather_intra_gentran_brucks.c b/src/mpi/coll/iallgather/iallgather_intra_gentran_brucks.c index f2aa54e9813..e865b0a7109 100644 --- a/src/mpi/coll/iallgather/iallgather_intra_gentran_brucks.c +++ b/src/mpi/coll/iallgather/iallgather_intra_gentran_brucks.c @@ -10,9 +10,10 @@ #include "iallgather_tsp_brucks_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Iallgather_intra_gentran_brucks(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, int k, MPIR_Request ** request) +int MPIR_Iallgather_intra_gentran_brucks(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, int k, + MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/iallgather/iallgather_intra_gentran_recexch_doubling.c b/src/mpi/coll/iallgather/iallgather_intra_gentran_recexch_doubling.c index eb6ba36e72a..8282b112445 100644 --- a/src/mpi/coll/iallgather/iallgather_intra_gentran_recexch_doubling.c +++ b/src/mpi/coll/iallgather/iallgather_intra_gentran_recexch_doubling.c @@ -10,9 +10,9 @@ #include "iallgather_tsp_recexch_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Iallgather_intra_gentran_recexch_doubling(const void *sendbuf, int sendcount, +int MPIR_Iallgather_intra_gentran_recexch_doubling(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm, int k, MPIR_Request ** req) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/iallgather/iallgather_intra_gentran_recexch_halving.c b/src/mpi/coll/iallgather/iallgather_intra_gentran_recexch_halving.c index 9293485e53b..2f68578a5ff 100644 --- a/src/mpi/coll/iallgather/iallgather_intra_gentran_recexch_halving.c +++ b/src/mpi/coll/iallgather/iallgather_intra_gentran_recexch_halving.c @@ -10,9 +10,9 @@ #include "iallgather_tsp_recexch_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Iallgather_intra_gentran_recexch_halving(const void *sendbuf, int sendcount, +int MPIR_Iallgather_intra_gentran_recexch_halving(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm, int k, MPIR_Request ** req) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/iallgather/iallgather_intra_gentran_ring.c b/src/mpi/coll/iallgather/iallgather_intra_gentran_ring.c index 02c8cf22ef1..df47cd73b44 100644 --- a/src/mpi/coll/iallgather/iallgather_intra_gentran_ring.c +++ b/src/mpi/coll/iallgather/iallgather_intra_gentran_ring.c @@ -10,9 +10,9 @@ #include "iallgather_tsp_ring_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Iallgather_intra_gentran_ring(const void *sendbuf, int sendcount, +int MPIR_Iallgather_intra_gentran_ring(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm, MPIR_Request ** req) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/iallgather/iallgather_intra_sched_brucks.c b/src/mpi/coll/iallgather/iallgather_intra_sched_brucks.c index 0b7d907f175..dc354eb6b45 100644 --- a/src/mpi/coll/iallgather/iallgather_intra_sched_brucks.c +++ b/src/mpi/coll/iallgather/iallgather_intra_sched_brucks.c @@ -14,9 +14,9 @@ * Cost = lgp.alpha + n.((p-1)/p).beta * where n is total size of data gathered on each process. */ -int MPIR_Iallgather_intra_sched_brucks(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Iallgather_intra_sched_brucks(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; int pof2, curr_cnt, rem, src, dst; diff --git a/src/mpi/coll/iallgather/iallgather_intra_sched_recursive_doubling.c b/src/mpi/coll/iallgather/iallgather_intra_sched_recursive_doubling.c index 17604bf93a5..ab38c5e077c 100644 --- a/src/mpi/coll/iallgather/iallgather_intra_sched_recursive_doubling.c +++ b/src/mpi/coll/iallgather/iallgather_intra_sched_recursive_doubling.c @@ -41,9 +41,9 @@ static int dtp_release_ref(MPIR_Comm * comm, int tag, void *state) * property of recursive doubling (see Benson et al paper in Euro * PVM/MPI 2003). */ -int MPIR_Iallgather_intra_sched_recursive_doubling(const void *sendbuf, int sendcount, +int MPIR_Iallgather_intra_sched_recursive_doubling(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/iallgather/iallgather_intra_sched_ring.c b/src/mpi/coll/iallgather/iallgather_intra_sched_ring.c index 08e5d2b4f25..78bbbacce62 100644 --- a/src/mpi/coll/iallgather/iallgather_intra_sched_ring.c +++ b/src/mpi/coll/iallgather/iallgather_intra_sched_ring.c @@ -20,9 +20,9 @@ * performs twice as fast as recursive doubling for long messages (on * Myrinet and IBM SP). */ -int MPIR_Iallgather_intra_sched_ring(const void *sendbuf, int sendcount, MPI_Datatype - sendtype, void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Iallgather_intra_sched_ring(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype + sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; int rank, comm_size; diff --git a/src/mpi/coll/iallgather/iallgather_tsp_brucks_algos.h b/src/mpi/coll/iallgather/iallgather_tsp_brucks_algos.h index dc79f254693..8f417b75dd0 100644 --- a/src/mpi/coll/iallgather/iallgather_tsp_brucks_algos.h +++ b/src/mpi/coll/iallgather/iallgather_tsp_brucks_algos.h @@ -173,8 +173,8 @@ MPIR_TSP_Iallgather_sched_intra_brucks(const void *sendbuf, int sendcount, /* Non-blocking brucks based Allgather */ -int MPIR_TSP_Iallgather_intra_brucks(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_TSP_Iallgather_intra_brucks(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** req, int k) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/iallgather/iallgather_tsp_brucks_algos_prototypes.h b/src/mpi/coll/iallgather/iallgather_tsp_brucks_algos_prototypes.h index cbc89524312..1ef7c084711 100644 --- a/src/mpi/coll/iallgather/iallgather_tsp_brucks_algos_prototypes.h +++ b/src/mpi/coll/iallgather/iallgather_tsp_brucks_algos_prototypes.h @@ -14,10 +14,10 @@ #undef MPIR_TSP_Iallgather_sched_intra_brucks #define MPIR_TSP_Iallgather_sched_intra_brucks MPIR_TSP_NAMESPACE(Iallgather_sched_intra_brucks) -int MPIR_TSP_Iallgather_sched_intra_brucks(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, +int MPIR_TSP_Iallgather_sched_intra_brucks(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm, MPIR_TSP_sched_t * s, int k); -int MPIR_TSP_Iallgather_intra_brucks(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_TSP_Iallgather_intra_brucks(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request, int k); diff --git a/src/mpi/coll/iallgather/iallgather_tsp_recexch_algos.h b/src/mpi/coll/iallgather/iallgather_tsp_recexch_algos.h index aad13e80665..9a2559dac76 100644 --- a/src/mpi/coll/iallgather/iallgather_tsp_recexch_algos.h +++ b/src/mpi/coll/iallgather/iallgather_tsp_recexch_algos.h @@ -13,7 +13,8 @@ int MPIR_TSP_Iallgather_sched_intra_recexch_data_exchange(int rank, int nranks, int k, int p_of_k, int log_pofk, int T, void *recvbuf, MPI_Datatype recvtype, size_t recv_extent, - int recvcount, int tag, MPIR_Comm * comm, + MPI_Aint recvcount, int tag, + MPIR_Comm * comm, MPIR_TSP_sched_t * sched) { int mpi_errno = MPI_SUCCESS; @@ -55,7 +56,7 @@ int MPIR_TSP_Iallgather_sched_intra_recexch_data_exchange(int rank, int nranks, int MPIR_TSP_Iallgather_sched_intra_recexch_step1(int step1_sendto, int *step1_recvfrom, int step1_nrecvs, int is_inplace, int rank, int tag, const void *sendbuf, void *recvbuf, - size_t recv_extent, int recvcount, + size_t recv_extent, MPI_Aint recvcount, MPI_Datatype recvtype, int n_invtcs, int *invtx, MPIR_Comm * comm, MPIR_TSP_sched_t * sched) { @@ -93,7 +94,7 @@ int MPIR_TSP_Iallgather_sched_intra_recexch_step2(int step1_sendto, int step2_np int **step2_nbrs, int rank, int nranks, int k, int p_of_k, int log_pofk, int T, int *nrecvs_, int **recv_id_, int tag, void *recvbuf, - size_t recv_extent, int recvcount, + size_t recv_extent, MPI_Aint recvcount, MPI_Datatype recvtype, int is_dist_halving, MPIR_Comm * comm, MPIR_TSP_sched_t * sched) { @@ -163,8 +164,8 @@ int MPIR_TSP_Iallgather_sched_intra_recexch_step2(int step1_sendto, int step2_np int MPIR_TSP_Iallgather_sched_intra_recexch_step3(int step1_sendto, int *step1_recvfrom, int step1_nrecvs, int step2_nphases, - void *recvbuf, int recvcount, int nranks, int k, - int nrecvs, int *recv_id, int tag, + void *recvbuf, MPI_Aint recvcount, int nranks, + int k, int nrecvs, int *recv_id, int tag, MPI_Datatype recvtype, MPIR_Comm * comm, MPIR_TSP_sched_t * sched) { @@ -198,10 +199,11 @@ int MPIR_TSP_Iallgather_sched_intra_recexch_step3(int step1_sendto, int *step1_r * paper, Sack et al, "Faster topology-aware collective algorithms through * non-minimal communication", 2012. * */ -int MPIR_TSP_Iallgather_sched_intra_recexch(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, - MPI_Datatype recvtype, MPIR_Comm * comm, - int is_dist_halving, int k, MPIR_TSP_sched_t * sched) +int MPIR_TSP_Iallgather_sched_intra_recexch(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype recvtype, + MPIR_Comm * comm, int is_dist_halving, int k, + MPIR_TSP_sched_t * sched) { int mpi_errno = MPI_SUCCESS; int is_inplace, i; @@ -302,10 +304,10 @@ int MPIR_TSP_Iallgather_sched_intra_recexch(const void *sendbuf, int sendcount, /* Non-blocking recexch based Allgather */ -int MPIR_TSP_Iallgather_intra_recexch(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm, MPIR_Request ** req, int allgather_type, - int k) +int MPIR_TSP_Iallgather_intra_recexch(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm, MPIR_Request ** req, + int allgather_type, int k) { int mpi_errno = MPI_SUCCESS; MPIR_TSP_sched_t *sched; diff --git a/src/mpi/coll/iallgather/iallgather_tsp_recexch_algos_prototypes.h b/src/mpi/coll/iallgather/iallgather_tsp_recexch_algos_prototypes.h index 3271c486ea0..9026d13db30 100644 --- a/src/mpi/coll/iallgather/iallgather_tsp_recexch_algos_prototypes.h +++ b/src/mpi/coll/iallgather/iallgather_tsp_recexch_algos_prototypes.h @@ -25,14 +25,14 @@ int MPIR_TSP_Iallgather_sched_intra_recexch_data_exchange(int rank, int nranks, int k, int p_of_k, int log_pofk, int T, void *recvbuf, MPI_Datatype recvtype, size_t recv_extent, - int recvcount, int tag, + MPI_Aint recvcount, int tag, MPIR_Comm * comm, MPIR_TSP_sched_t * sched); int MPIR_TSP_Iallgather_sched_intra_recexch_step1(int step1_sendto, int *step1_recvfrom, int step1_nrecvs, int is_inplace, int rank, int tag, const void *sendbuf, void *recvbuf, - size_t recv_extent, int recvcount, + size_t recv_extent, MPI_Aint recvcount, MPI_Datatype recvtype, int n_invtcs, int *invtx, MPIR_Comm * comm, MPIR_TSP_sched_t * sched); @@ -40,23 +40,24 @@ int MPIR_TSP_Iallgather_sched_intra_recexch_step2(int step1_sendto, int step2_np int **step2_nbrs, int rank, int nranks, int k, int p_of_k, int log_pofk, int T, int *nrecvs_, int **recv_id_, int tag, void *recvbuf, - size_t recv_extent, int recvcount, + size_t recv_extent, MPI_Aint recvcount, MPI_Datatype recvtype, int is_dist_halving, MPIR_Comm * comm, MPIR_TSP_sched_t * sched); int MPIR_TSP_Iallgather_sched_intra_recexch_step3(int step1_sendto, int *step1_recvfrom, int step1_nrecvs, int step2_nphases, - void *recvbuf, int recvcount, int nranks, int k, - int nrecvs, int *recv_id, int tag, + void *recvbuf, MPI_Aint recvcount, int nranks, + int k, int nrecvs, int *recv_id, int tag, MPI_Datatype recvtype, MPIR_Comm * comm, MPIR_TSP_sched_t * sched); -int MPIR_TSP_Iallgather_sched_intra_recexch(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, - MPI_Datatype recvtype, MPIR_Comm * comm, - int is_dist_halving, int k, MPIR_TSP_sched_t * sched); +int MPIR_TSP_Iallgather_sched_intra_recexch(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype recvtype, + MPIR_Comm * comm, int is_dist_halving, int k, + MPIR_TSP_sched_t * sched); -int MPIR_TSP_Iallgather_intra_recexch(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm, MPIR_Request ** req, int allgather_type, - int k); +int MPIR_TSP_Iallgather_intra_recexch(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm, MPIR_Request ** req, + int allgather_type, int k); diff --git a/src/mpi/coll/iallgather/iallgather_tsp_ring_algos.h b/src/mpi/coll/iallgather/iallgather_tsp_ring_algos.h index 1a4fde792aa..59d15421a61 100644 --- a/src/mpi/coll/iallgather/iallgather_tsp_ring_algos.h +++ b/src/mpi/coll/iallgather/iallgather_tsp_ring_algos.h @@ -10,9 +10,9 @@ #include "tsp_namespace_def.h" /* Routine to schedule a ring based allgather */ -int MPIR_TSP_Iallgather_sched_intra_ring(const void *sendbuf, int sendcount, +int MPIR_TSP_Iallgather_sched_intra_ring(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm, MPIR_TSP_sched_t * sched) { int mpi_errno = MPI_SUCCESS; @@ -148,8 +148,8 @@ int MPIR_TSP_Iallgather_sched_intra_ring(const void *sendbuf, int sendcount, } /* Non-blocking ring based Allgather */ -int MPIR_TSP_Iallgather_intra_ring(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_TSP_Iallgather_intra_ring(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm, MPIR_Request ** req) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/iallgather/iallgather_tsp_ring_algos_prototypes.h b/src/mpi/coll/iallgather/iallgather_tsp_ring_algos_prototypes.h index 564b4b2e027..5e5dc058a6d 100644 --- a/src/mpi/coll/iallgather/iallgather_tsp_ring_algos_prototypes.h +++ b/src/mpi/coll/iallgather/iallgather_tsp_ring_algos_prototypes.h @@ -14,11 +14,11 @@ #undef MPIR_TSP_Iallgather_sched_intra_ring #define MPIR_TSP_Iallgather_sched_intra_ring MPIR_TSP_NAMESPACE(Iallgather_sched_intra_ring) -int MPIR_TSP_Iallgather_sched_intra_ring(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, +int MPIR_TSP_Iallgather_sched_intra_ring(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm, MPIR_TSP_sched_t * sched); -int MPIR_TSP_Iallgather_intra_ring(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_TSP_Iallgather_intra_ring(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm, MPIR_Request ** req); diff --git a/src/mpi/coll/iallgatherv/iallgatherv.c b/src/mpi/coll/iallgatherv/iallgatherv.c index 51af9f5da2b..002c9b58017 100644 --- a/src/mpi/coll/iallgatherv/iallgatherv.c +++ b/src/mpi/coll/iallgatherv/iallgatherv.c @@ -117,7 +117,7 @@ End Algorithm: MPI_Allgatherv */ -int MPIR_Iallgatherv_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Iallgatherv_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request) @@ -217,9 +217,10 @@ int MPIR_Iallgatherv_allcomm_auto(const void *sendbuf, int sendcount, MPI_Dataty goto fn_exit; } -int MPIR_Iallgatherv_intra_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int recvcounts[], const int displs[], - MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Iallgatherv_intra_sched_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], + const int displs[], MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; int i, comm_size, total_count, recvtype_size; @@ -265,9 +266,10 @@ int MPIR_Iallgatherv_intra_sched_auto(const void *sendbuf, int sendcount, MPI_Da goto fn_exit; } -int MPIR_Iallgatherv_inter_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int recvcounts[], const int displs[], - MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Iallgatherv_inter_sched_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], + const int displs[], MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; @@ -279,7 +281,7 @@ int MPIR_Iallgatherv_inter_sched_auto(const void *sendbuf, int sendcount, MPI_Da return mpi_errno; } -int MPIR_Iallgatherv_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Iallgatherv_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { @@ -298,7 +300,7 @@ int MPIR_Iallgatherv_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype return mpi_errno; } -int MPIR_Iallgatherv_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Iallgatherv_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request) { @@ -430,7 +432,7 @@ int MPIR_Iallgatherv_impl(const void *sendbuf, int sendcount, MPI_Datatype sendt goto fn_exit; } -int MPIR_Iallgatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Iallgatherv(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request) { diff --git a/src/mpi/coll/iallgatherv/iallgatherv_inter_sched_remote_gather_local_bcast.c b/src/mpi/coll/iallgatherv/iallgatherv_inter_sched_remote_gather_local_bcast.c index 4259a722186..76315e99f59 100644 --- a/src/mpi/coll/iallgatherv/iallgatherv_inter_sched_remote_gather_local_bcast.c +++ b/src/mpi/coll/iallgatherv/iallgatherv_inter_sched_remote_gather_local_bcast.c @@ -16,7 +16,7 @@ * intracommunicator broadcast. */ -int MPIR_Iallgatherv_inter_sched_remote_gather_local_bcast(const void *sendbuf, int sendcount, +int MPIR_Iallgatherv_inter_sched_remote_gather_local_bcast(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], diff --git a/src/mpi/coll/iallgatherv/iallgatherv_intra_gentran_brucks.c b/src/mpi/coll/iallgatherv/iallgatherv_intra_gentran_brucks.c index 8631aef86ab..ea41fca1a1f 100644 --- a/src/mpi/coll/iallgatherv/iallgatherv_intra_gentran_brucks.c +++ b/src/mpi/coll/iallgatherv/iallgatherv_intra_gentran_brucks.c @@ -10,8 +10,9 @@ #include "iallgatherv_tsp_brucks_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Iallgatherv_intra_gentran_brucks(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int recvcounts[], const int displs[], +int MPIR_Iallgatherv_intra_gentran_brucks(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, int k, MPIR_Request ** request) { diff --git a/src/mpi/coll/iallgatherv/iallgatherv_intra_gentran_recexch_doubling.c b/src/mpi/coll/iallgatherv/iallgatherv_intra_gentran_recexch_doubling.c index 812cc4befd5..d185c8dd67d 100644 --- a/src/mpi/coll/iallgatherv/iallgatherv_intra_gentran_recexch_doubling.c +++ b/src/mpi/coll/iallgatherv/iallgatherv_intra_gentran_recexch_doubling.c @@ -10,7 +10,7 @@ #include "iallgatherv_tsp_recexch_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Iallgatherv_intra_gentran_recexch_doubling(const void *sendbuf, int sendcount, +int MPIR_Iallgatherv_intra_gentran_recexch_doubling(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm, int k, diff --git a/src/mpi/coll/iallgatherv/iallgatherv_intra_gentran_recexch_halving.c b/src/mpi/coll/iallgatherv/iallgatherv_intra_gentran_recexch_halving.c index 3750aaa8e10..1cbb5fdaeaa 100644 --- a/src/mpi/coll/iallgatherv/iallgatherv_intra_gentran_recexch_halving.c +++ b/src/mpi/coll/iallgatherv/iallgatherv_intra_gentran_recexch_halving.c @@ -10,7 +10,7 @@ #include "iallgatherv_tsp_recexch_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Iallgatherv_intra_gentran_recexch_halving(const void *sendbuf, int sendcount, +int MPIR_Iallgatherv_intra_gentran_recexch_halving(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm, int k, diff --git a/src/mpi/coll/iallgatherv/iallgatherv_intra_gentran_ring.c b/src/mpi/coll/iallgatherv/iallgatherv_intra_gentran_ring.c index 04530521e0b..a759af5206d 100644 --- a/src/mpi/coll/iallgatherv/iallgatherv_intra_gentran_ring.c +++ b/src/mpi/coll/iallgatherv/iallgatherv_intra_gentran_ring.c @@ -10,7 +10,7 @@ #include "iallgatherv_tsp_ring_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Iallgatherv_intra_gentran_ring(const void *sendbuf, int sendcount, +int MPIR_Iallgatherv_intra_gentran_ring(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm, diff --git a/src/mpi/coll/iallgatherv/iallgatherv_intra_sched_brucks.c b/src/mpi/coll/iallgatherv/iallgatherv_intra_sched_brucks.c index 2aa4bfbf63e..7e1061fa1d7 100644 --- a/src/mpi/coll/iallgatherv/iallgatherv_intra_sched_brucks.c +++ b/src/mpi/coll/iallgatherv/iallgatherv_intra_sched_brucks.c @@ -5,8 +5,9 @@ #include "mpiimpl.h" -int MPIR_Iallgatherv_intra_sched_brucks(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int recvcounts[], const int displs[], +int MPIR_Iallgatherv_intra_sched_brucks(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/iallgatherv/iallgatherv_intra_sched_recursive_doubling.c b/src/mpi/coll/iallgatherv/iallgatherv_intra_sched_recursive_doubling.c index 3cf106ccd9d..f8d42ab1df4 100644 --- a/src/mpi/coll/iallgatherv/iallgatherv_intra_sched_recursive_doubling.c +++ b/src/mpi/coll/iallgatherv/iallgatherv_intra_sched_recursive_doubling.c @@ -5,7 +5,7 @@ #include "mpiimpl.h" -int MPIR_Iallgatherv_intra_sched_recursive_doubling(const void *sendbuf, int sendcount, +int MPIR_Iallgatherv_intra_sched_recursive_doubling(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, diff --git a/src/mpi/coll/iallgatherv/iallgatherv_intra_sched_ring.c b/src/mpi/coll/iallgatherv/iallgatherv_intra_sched_ring.c index 00740e2afa2..488b3623efa 100644 --- a/src/mpi/coll/iallgatherv/iallgatherv_intra_sched_ring.c +++ b/src/mpi/coll/iallgatherv/iallgatherv_intra_sched_ring.c @@ -5,9 +5,10 @@ #include "mpiimpl.h" -int MPIR_Iallgatherv_intra_sched_ring(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int recvcounts[], const int displs[], - MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Iallgatherv_intra_sched_ring(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], + const int displs[], MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; int i, total_count; diff --git a/src/mpi/coll/iallgatherv/iallgatherv_tsp_brucks_algos.h b/src/mpi/coll/iallgatherv/iallgatherv_tsp_brucks_algos.h index e814e1bd7f2..525f2e5c03e 100644 --- a/src/mpi/coll/iallgatherv/iallgatherv_tsp_brucks_algos.h +++ b/src/mpi/coll/iallgatherv/iallgatherv_tsp_brucks_algos.h @@ -315,10 +315,10 @@ MPIR_TSP_Iallgatherv_sched_intra_brucks(const void *sendbuf, int sendcount, MPI_ } /* Non-blocking brucks based Allgatherv */ -int MPIR_TSP_Iallgatherv_intra_brucks(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int recvcounts[], const int displs[], - MPI_Datatype recvtype, MPIR_Comm * comm_ptr, - MPIR_Request ** req, int k) +int MPIR_TSP_Iallgatherv_intra_brucks(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], + const int displs[], MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Request ** req, int k) { MPIR_FUNC_VERBOSE_STATE_DECL(MPID_STATE_MPIR_TSP_IALLGATHERV_INTRA_BRUCKS); MPIR_FUNC_VERBOSE_ENTER(MPID_STATE_MPIR_TSP_IALLGATHERV_INTRA_BRUCKS); diff --git a/src/mpi/coll/iallgatherv/iallgatherv_tsp_brucks_algos_prototypes.h b/src/mpi/coll/iallgatherv/iallgatherv_tsp_brucks_algos_prototypes.h index f51579a5928..f8192ca002d 100644 --- a/src/mpi/coll/iallgatherv/iallgatherv_tsp_brucks_algos_prototypes.h +++ b/src/mpi/coll/iallgatherv/iallgatherv_tsp_brucks_algos_prototypes.h @@ -14,12 +14,12 @@ #undef MPIR_TSP_Iallgatherv_sched_intra_brucks #define MPIR_TSP_Iallgatherv_sched_intra_brucks MPIR_TSP_NAMESPACE(Iallgatherv_sched_intra_brucks) -int MPIR_TSP_Iallgatherv_sched_intra_brucks(const void *sendbuf, int sendcount, +int MPIR_TSP_Iallgatherv_sched_intra_brucks(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm, MPIR_TSP_sched_t * s, int k); -int MPIR_TSP_Iallgatherv_intra_brucks(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int recvcounts[], const int displs[], - MPI_Datatype recvtype, MPIR_Comm * comm_ptr, - MPIR_Request ** request, int k); +int MPIR_TSP_Iallgatherv_intra_brucks(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], + const int displs[], MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Request ** request, int k); diff --git a/src/mpi/coll/iallgatherv/iallgatherv_tsp_recexch_algos.h b/src/mpi/coll/iallgatherv/iallgatherv_tsp_recexch_algos.h index 0d1e56bbc92..5658a748835 100644 --- a/src/mpi/coll/iallgatherv/iallgatherv_tsp_recexch_algos.h +++ b/src/mpi/coll/iallgatherv/iallgatherv_tsp_recexch_algos.h @@ -214,7 +214,7 @@ int MPIR_TSP_Iallgatherv_sched_intra_recexch_step3(int step1_sendto, int *step1_ } /* Routine to schedule a recursive exchange based allgather */ -int MPIR_TSP_Iallgatherv_sched_intra_recexch(const void *sendbuf, int sendcount, +int MPIR_TSP_Iallgatherv_sched_intra_recexch(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm, @@ -326,10 +326,10 @@ int MPIR_TSP_Iallgatherv_sched_intra_recexch(const void *sendbuf, int sendcount, /* Non-blocking recexch based Allgather */ -int MPIR_TSP_Iallgatherv_intra_recexch(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int *recvcounts, const int *displs, - MPI_Datatype recvtype, MPIR_Comm * comm, MPIR_Request ** req, - int algo_type, int k) +int MPIR_TSP_Iallgatherv_intra_recexch(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, + const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm, + MPIR_Request ** req, int algo_type, int k) { int mpi_errno = MPI_SUCCESS; MPIR_TSP_sched_t *sched; diff --git a/src/mpi/coll/iallgatherv/iallgatherv_tsp_recexch_algos_prototypes.h b/src/mpi/coll/iallgatherv/iallgatherv_tsp_recexch_algos_prototypes.h index f7e2f3a4fac..1f55a7130f5 100644 --- a/src/mpi/coll/iallgatherv/iallgatherv_tsp_recexch_algos_prototypes.h +++ b/src/mpi/coll/iallgatherv/iallgatherv_tsp_recexch_algos_prototypes.h @@ -54,13 +54,13 @@ int MPIR_TSP_Iallgatherv_sched_intra_recexch_step3(int step1_sendto, int *step1_ MPI_Datatype recvtype, MPIR_Comm * comm, MPIR_TSP_sched_t * sched); -int MPIR_TSP_Iallgatherv_sched_intra_recexch(const void *sendbuf, int sendcount, +int MPIR_TSP_Iallgatherv_sched_intra_recexch(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm, int is_dist_halving, int k, MPIR_TSP_sched_t * sched); -int MPIR_TSP_Iallgatherv_intra_recexch(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int *recvcounts, const int *displs, - MPI_Datatype recvtype, MPIR_Comm * comm, MPIR_Request ** req, - int allgatherv_type, int k); +int MPIR_TSP_Iallgatherv_intra_recexch(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, + const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm, + MPIR_Request ** req, int allgatherv_type, int k); diff --git a/src/mpi/coll/iallgatherv/iallgatherv_tsp_ring_algos.h b/src/mpi/coll/iallgatherv/iallgatherv_tsp_ring_algos.h index 97d340fb0fc..f8a4906071b 100644 --- a/src/mpi/coll/iallgatherv/iallgatherv_tsp_ring_algos.h +++ b/src/mpi/coll/iallgatherv/iallgatherv_tsp_ring_algos.h @@ -11,7 +11,7 @@ #include "tsp_namespace_def.h" /* Routine to schedule a recursive exchange based allgatherv */ -int MPIR_TSP_Iallgatherv_sched_intra_ring(const void *sendbuf, int sendcount, +int MPIR_TSP_Iallgatherv_sched_intra_ring(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm, @@ -147,7 +147,7 @@ int MPIR_TSP_Iallgatherv_sched_intra_ring(const void *sendbuf, int sendcount, /* Non-blocking ring based Allgatherv */ -int MPIR_TSP_Iallgatherv_intra_ring(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_TSP_Iallgatherv_intra_ring(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm, MPIR_Request ** req) { diff --git a/src/mpi/coll/iallgatherv/iallgatherv_tsp_ring_algos_prototypes.h b/src/mpi/coll/iallgatherv/iallgatherv_tsp_ring_algos_prototypes.h index 880f56ac1d1..b55ca2cb9d5 100644 --- a/src/mpi/coll/iallgatherv/iallgatherv_tsp_ring_algos_prototypes.h +++ b/src/mpi/coll/iallgatherv/iallgatherv_tsp_ring_algos_prototypes.h @@ -14,12 +14,12 @@ #undef MPIR_TSP_Iallgatherv_sched_intra_ring #define MPIR_TSP_Iallgatherv_sched_intra_ring MPIR_TSP_NAMESPACE(Iallgatherv_sched_intra_ring) -int MPIR_TSP_Iallgatherv_sched_intra_ring(const void *sendbuf, int sendcount, +int MPIR_TSP_Iallgatherv_sched_intra_ring(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm, MPIR_TSP_sched_t * sched); -int MPIR_TSP_Iallgatherv_intra_ring(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_TSP_Iallgatherv_intra_ring(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, MPIR_Comm * comm, MPIR_Request ** req); diff --git a/src/mpi/coll/iallreduce/iallreduce.c b/src/mpi/coll/iallreduce/iallreduce.c index df2ff515b8f..69cc87cfca0 100644 --- a/src/mpi/coll/iallreduce/iallreduce.c +++ b/src/mpi/coll/iallreduce/iallreduce.c @@ -121,7 +121,7 @@ */ -int MPIR_Iallreduce_allcomm_auto(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iallreduce_allcomm_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request) { @@ -234,7 +234,7 @@ int MPIR_Iallreduce_allcomm_auto(const void *sendbuf, void *recvbuf, int count, goto fn_exit; } -int MPIR_Iallreduce_intra_sched_auto(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iallreduce_intra_sched_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { @@ -287,7 +287,7 @@ int MPIR_Iallreduce_intra_sched_auto(const void *sendbuf, void *recvbuf, int cou goto fn_exit; } -int MPIR_Iallreduce_inter_sched_auto(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iallreduce_inter_sched_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { @@ -300,8 +300,9 @@ int MPIR_Iallreduce_inter_sched_auto(const void *sendbuf, void *recvbuf, int cou } -int MPIR_Iallreduce_sched_auto(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Iallreduce_sched_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, + MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; @@ -316,7 +317,7 @@ int MPIR_Iallreduce_sched_auto(const void *sendbuf, void *recvbuf, int count, MP return mpi_errno; } -int MPIR_Iallreduce_impl(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iallreduce_impl(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request) { @@ -457,7 +458,7 @@ int MPIR_Iallreduce_impl(const void *sendbuf, void *recvbuf, int count, goto fn_exit; } -int MPIR_Iallreduce(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iallreduce(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/iallreduce/iallreduce_inter_sched_remote_reduce_local_bcast.c b/src/mpi/coll/iallreduce/iallreduce_inter_sched_remote_reduce_local_bcast.c index 5a4dd654719..9323a361e6a 100644 --- a/src/mpi/coll/iallreduce/iallreduce_inter_sched_remote_reduce_local_bcast.c +++ b/src/mpi/coll/iallreduce/iallreduce_inter_sched_remote_reduce_local_bcast.c @@ -17,7 +17,7 @@ */ int MPIR_Iallreduce_inter_sched_remote_reduce_local_bcast(const void *sendbuf, void *recvbuf, - int count, MPI_Datatype datatype, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { diff --git a/src/mpi/coll/iallreduce/iallreduce_intra_gentran_recexch_multiple_buffer.c b/src/mpi/coll/iallreduce/iallreduce_intra_gentran_recexch_multiple_buffer.c index 1f23f199151..cab394b8e35 100644 --- a/src/mpi/coll/iallreduce/iallreduce_intra_gentran_recexch_multiple_buffer.c +++ b/src/mpi/coll/iallreduce/iallreduce_intra_gentran_recexch_multiple_buffer.c @@ -11,7 +11,7 @@ #include "tsp_undef.h" int MPIR_Iallreduce_intra_gentran_recexch_multiple_buffer(const void *sendbuf, void *recvbuf, - int count, MPI_Datatype datatype, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, int k, MPIR_Request ** req) { diff --git a/src/mpi/coll/iallreduce/iallreduce_intra_gentran_recexch_reduce_scatter_recexch_allgatherv.c b/src/mpi/coll/iallreduce/iallreduce_intra_gentran_recexch_reduce_scatter_recexch_allgatherv.c index 1d76569248f..d9c3aaff545 100644 --- a/src/mpi/coll/iallreduce/iallreduce_intra_gentran_recexch_reduce_scatter_recexch_allgatherv.c +++ b/src/mpi/coll/iallreduce/iallreduce_intra_gentran_recexch_reduce_scatter_recexch_allgatherv.c @@ -12,7 +12,7 @@ int MPIR_Iallreduce_intra_gentran_recexch_reduce_scatter_recexch_allgatherv(const void *sendbuf, void *recvbuf, - int count, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, int k, diff --git a/src/mpi/coll/iallreduce/iallreduce_intra_gentran_recexch_single_buffer.c b/src/mpi/coll/iallreduce/iallreduce_intra_gentran_recexch_single_buffer.c index 441ae78eb0a..aa6cf24760e 100644 --- a/src/mpi/coll/iallreduce/iallreduce_intra_gentran_recexch_single_buffer.c +++ b/src/mpi/coll/iallreduce/iallreduce_intra_gentran_recexch_single_buffer.c @@ -11,8 +11,8 @@ #include "tsp_undef.h" int MPIR_Iallreduce_intra_gentran_recexch_single_buffer(const void *sendbuf, void *recvbuf, - int count, MPI_Datatype datatype, MPI_Op op, - MPIR_Comm * comm, int k, + MPI_Aint count, MPI_Datatype datatype, + MPI_Op op, MPIR_Comm * comm, int k, MPIR_Request ** req) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/iallreduce/iallreduce_intra_gentran_ring.c b/src/mpi/coll/iallreduce/iallreduce_intra_gentran_ring.c index 17372ffbaec..20256f33076 100644 --- a/src/mpi/coll/iallreduce/iallreduce_intra_gentran_ring.c +++ b/src/mpi/coll/iallreduce/iallreduce_intra_gentran_ring.c @@ -10,7 +10,7 @@ #include "iallreduce_tsp_ring_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Iallreduce_intra_gentran_ring(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iallreduce_intra_gentran_ring(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, MPIR_Request ** req) { diff --git a/src/mpi/coll/iallreduce/iallreduce_intra_gentran_tree.c b/src/mpi/coll/iallreduce/iallreduce_intra_gentran_tree.c index c0d1204fe9a..fbd3b7cb512 100644 --- a/src/mpi/coll/iallreduce/iallreduce_intra_gentran_tree.c +++ b/src/mpi/coll/iallreduce/iallreduce_intra_gentran_tree.c @@ -10,7 +10,7 @@ #include "iallreduce_tsp_tree_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Iallreduce_intra_gentran_tree(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iallreduce_intra_gentran_tree(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, int tree_type, int k, int chunk_size, int buffer_per_child, MPIR_Request ** request) diff --git a/src/mpi/coll/iallreduce/iallreduce_intra_sched_naive.c b/src/mpi/coll/iallreduce/iallreduce_intra_sched_naive.c index 20f086a30e1..36a26b6e42c 100644 --- a/src/mpi/coll/iallreduce/iallreduce_intra_sched_naive.c +++ b/src/mpi/coll/iallreduce/iallreduce_intra_sched_naive.c @@ -6,7 +6,7 @@ #include "mpiimpl.h" /* implements the naive intracomm allreduce, that is, reduce followed by bcast */ -int MPIR_Iallreduce_intra_sched_naive(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iallreduce_intra_sched_naive(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { diff --git a/src/mpi/coll/iallreduce/iallreduce_intra_sched_recursive_doubling.c b/src/mpi/coll/iallreduce/iallreduce_intra_sched_recursive_doubling.c index 053807c4dd2..ba2d3023c4c 100644 --- a/src/mpi/coll/iallreduce/iallreduce_intra_sched_recursive_doubling.c +++ b/src/mpi/coll/iallreduce/iallreduce_intra_sched_recursive_doubling.c @@ -5,8 +5,8 @@ #include "mpiimpl.h" -int MPIR_Iallreduce_intra_sched_recursive_doubling(const void *sendbuf, void *recvbuf, int count, - MPI_Datatype datatype, MPI_Op op, +int MPIR_Iallreduce_intra_sched_recursive_doubling(const void *sendbuf, void *recvbuf, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/iallreduce/iallreduce_intra_sched_reduce_scatter_allgather.c b/src/mpi/coll/iallreduce/iallreduce_intra_sched_reduce_scatter_allgather.c index 940671868e2..3c1162a43c2 100644 --- a/src/mpi/coll/iallreduce/iallreduce_intra_sched_reduce_scatter_allgather.c +++ b/src/mpi/coll/iallreduce/iallreduce_intra_sched_reduce_scatter_allgather.c @@ -7,7 +7,7 @@ /* also known as "Rabenseifner's algorithm" */ int MPIR_Iallreduce_intra_sched_reduce_scatter_allgather(const void *sendbuf, void *recvbuf, - int count, MPI_Datatype datatype, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { diff --git a/src/mpi/coll/iallreduce/iallreduce_intra_sched_smp.c b/src/mpi/coll/iallreduce/iallreduce_intra_sched_smp.c index 6cd371303a1..503da5688a2 100644 --- a/src/mpi/coll/iallreduce/iallreduce_intra_sched_smp.c +++ b/src/mpi/coll/iallreduce/iallreduce_intra_sched_smp.c @@ -6,7 +6,7 @@ #include "mpiimpl.h" -int MPIR_Iallreduce_intra_sched_smp(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iallreduce_intra_sched_smp(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { diff --git a/src/mpi/coll/iallreduce/iallreduce_tsp_recexch_algos.h b/src/mpi/coll/iallreduce/iallreduce_tsp_recexch_algos.h index 994c7380840..4a461b0d8a4 100644 --- a/src/mpi/coll/iallreduce/iallreduce_tsp_recexch_algos.h +++ b/src/mpi/coll/iallreduce/iallreduce_tsp_recexch_algos.h @@ -13,7 +13,7 @@ #include "iallreduce_tsp_recursive_exchange_common_prototypes.h" /* Routine to schedule a recursive exchange based allreduce */ -int MPIR_TSP_Iallreduce_sched_intra_recexch(const void *sendbuf, void *recvbuf, int count, +int MPIR_TSP_Iallreduce_sched_intra_recexch(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, int per_nbr_buffer, int k, MPIR_TSP_sched_t * sched) @@ -310,7 +310,7 @@ int MPIR_TSP_Iallreduce_sched_intra_recexch(const void *sendbuf, void *recvbuf, /* Non-blocking recexch based ALLREDUCE */ -int MPIR_TSP_Iallreduce_intra_recexch(const void *sendbuf, void *recvbuf, int count, +int MPIR_TSP_Iallreduce_intra_recexch(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, MPIR_Request ** req, int recexch_type, int k) { diff --git a/src/mpi/coll/iallreduce/iallreduce_tsp_recexch_algos_prototypes.h b/src/mpi/coll/iallreduce/iallreduce_tsp_recexch_algos_prototypes.h index 1b8dcb88bcb..1ce4a2f4090 100644 --- a/src/mpi/coll/iallreduce/iallreduce_tsp_recexch_algos_prototypes.h +++ b/src/mpi/coll/iallreduce/iallreduce_tsp_recexch_algos_prototypes.h @@ -14,12 +14,12 @@ #undef MPIR_TSP_Iallreduce_sched_intra_recexch #define MPIR_TSP_Iallreduce_sched_intra_recexch MPIR_TSP_NAMESPACE(Iallreduce_sched_intra_recexch) -int MPIR_TSP_Iallreduce_sched_intra_recexch(const void *sendbuf, void *recvbuf, int count, +int MPIR_TSP_Iallreduce_sched_intra_recexch(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, int recexch_type, int k, MPIR_TSP_sched_t * sched); -int MPIR_TSP_Iallreduce_intra_recexch(const void *sendbuf, void *recvbuf, int count, +int MPIR_TSP_Iallreduce_intra_recexch(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, MPIR_Request ** req, int recexch_type, int k); diff --git a/src/mpi/coll/iallreduce/iallreduce_tsp_recexch_reduce_scatter_recexch_allgatherv_algos.h b/src/mpi/coll/iallreduce/iallreduce_tsp_recexch_reduce_scatter_recexch_allgatherv_algos.h index 0168210f659..89dd2cec84e 100644 --- a/src/mpi/coll/iallreduce/iallreduce_tsp_recexch_reduce_scatter_recexch_allgatherv_algos.h +++ b/src/mpi/coll/iallreduce/iallreduce_tsp_recexch_reduce_scatter_recexch_allgatherv_algos.h @@ -16,7 +16,7 @@ /* Routine to schedule a recursive exchange based allreduce */ int MPIR_TSP_Iallreduce_sched_intra_recexch_reduce_scatter_recexch_allgatherv(const void *sendbuf, void *recvbuf, - int count, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, @@ -182,7 +182,8 @@ int MPIR_TSP_Iallreduce_sched_intra_recexch_reduce_scatter_recexch_allgatherv(co /* Non-blocking recexch_reduce_scatter_recexch_allgatherv based ALLREDUCE */ int MPIR_TSP_Iallreduce_intra_recexch_reduce_scatter_recexch_allgatherv(const void *sendbuf, - void *recvbuf, int count, + void *recvbuf, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, MPIR_Request ** req, int k) diff --git a/src/mpi/coll/iallreduce/iallreduce_tsp_recexch_reduce_scatter_recexch_allgatherv_algos_prototypes.h b/src/mpi/coll/iallreduce/iallreduce_tsp_recexch_reduce_scatter_recexch_allgatherv_algos_prototypes.h index 90adf528a42..38424859ec0 100644 --- a/src/mpi/coll/iallreduce/iallreduce_tsp_recexch_reduce_scatter_recexch_allgatherv_algos_prototypes.h +++ b/src/mpi/coll/iallreduce/iallreduce_tsp_recexch_reduce_scatter_recexch_allgatherv_algos_prototypes.h @@ -16,7 +16,7 @@ int MPIR_TSP_Iallreduce_sched_intra_recexch_reduce_scatter_recexch_allgatherv(const void *sendbuf, void *recvbuf, - int count, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, @@ -25,7 +25,8 @@ int MPIR_TSP_Iallreduce_sched_intra_recexch_reduce_scatter_recexch_allgatherv(co sched); int MPIR_TSP_Iallreduce_intra_recexch_reduce_scatter_recexch_allgatherv(const void *sendbuf, - void *recvbuf, int count, + void *recvbuf, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, MPIR_Request ** req, int k); diff --git a/src/mpi/coll/iallreduce/iallreduce_tsp_recursive_exchange_common.h b/src/mpi/coll/iallreduce/iallreduce_tsp_recursive_exchange_common.h index 4670fc88984..9a434a3a143 100644 --- a/src/mpi/coll/iallreduce/iallreduce_tsp_recursive_exchange_common.h +++ b/src/mpi/coll/iallreduce/iallreduce_tsp_recursive_exchange_common.h @@ -42,7 +42,7 @@ Input Parameters: int MPIR_TSP_Iallreduce_sched_intra_recexch_step1(const void *sendbuf, void *recvbuf, - int count, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int is_commutative, int tag, int extent, int dtcopy_id, int *recv_id, diff --git a/src/mpi/coll/iallreduce/iallreduce_tsp_recursive_exchange_common_prototypes.h b/src/mpi/coll/iallreduce/iallreduce_tsp_recursive_exchange_common_prototypes.h index 81bda5e6862..c84f9fabaa6 100644 --- a/src/mpi/coll/iallreduce/iallreduce_tsp_recursive_exchange_common_prototypes.h +++ b/src/mpi/coll/iallreduce/iallreduce_tsp_recursive_exchange_common_prototypes.h @@ -14,7 +14,7 @@ int MPIR_TSP_Iallreduce_sched_intra_recexch_step1(const void *sendbuf, void *recvbuf, - int count, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int is_commutative, int tag, int extent, int dtcopy_id, int *recv_id, diff --git a/src/mpi/coll/iallreduce/iallreduce_tsp_ring_algos.h b/src/mpi/coll/iallreduce/iallreduce_tsp_ring_algos.h index 8f712ba90e2..fe6ea235b14 100644 --- a/src/mpi/coll/iallreduce/iallreduce_tsp_ring_algos.h +++ b/src/mpi/coll/iallreduce/iallreduce_tsp_ring_algos.h @@ -15,7 +15,7 @@ * The implementation is based on Baidu's ring algorithm * for Machine Learning/Deep Learning. The algorithm is * explained here: http://andrew.gibiansky.com/ */ -int MPIR_TSP_Iallreduce_sched_intra_ring(const void *sendbuf, void *recvbuf, int count, +int MPIR_TSP_Iallreduce_sched_intra_ring(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, MPIR_TSP_sched_t * sched) { @@ -122,7 +122,7 @@ int MPIR_TSP_Iallreduce_sched_intra_ring(const void *sendbuf, void *recvbuf, int } /* Non-blocking ring based Allreduce */ -int MPIR_TSP_Iallreduce_intra_ring(const void *sendbuf, void *recvbuf, int count, +int MPIR_TSP_Iallreduce_intra_ring(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, MPIR_Request ** req) { diff --git a/src/mpi/coll/iallreduce/iallreduce_tsp_ring_algos_prototypes.h b/src/mpi/coll/iallreduce/iallreduce_tsp_ring_algos_prototypes.h index 1c9eee96775..82c48e39c3d 100644 --- a/src/mpi/coll/iallreduce/iallreduce_tsp_ring_algos_prototypes.h +++ b/src/mpi/coll/iallreduce/iallreduce_tsp_ring_algos_prototypes.h @@ -14,10 +14,10 @@ #undef MPIR_TSP_Iallreduce_sched_intra_ring #define MPIR_TSP_Iallreduce_sched_intra_ring MPIR_TSP_NAMESPACE(Iallreduce_sched_intra_ring) -int MPIR_TSP_Iallreduce_sched_intra_ring(const void *sendbuf, void *recvbuf, int count, +int MPIR_TSP_Iallreduce_sched_intra_ring(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, MPIR_TSP_sched_t * sched); -int MPIR_TSP_Iallreduce_intra_ring(const void *sendbuf, void *recvbuf, int count, +int MPIR_TSP_Iallreduce_intra_ring(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, MPIR_Request ** req); diff --git a/src/mpi/coll/iallreduce/iallreduce_tsp_tree_algos.h b/src/mpi/coll/iallreduce/iallreduce_tsp_tree_algos.h index b652b9829fd..df2c68132a1 100644 --- a/src/mpi/coll/iallreduce/iallreduce_tsp_tree_algos.h +++ b/src/mpi/coll/iallreduce/iallreduce_tsp_tree_algos.h @@ -12,7 +12,7 @@ #include "tsp_namespace_def.h" /* Routine to schedule a pipelined tree based allreduce */ -int MPIR_TSP_Iallreduce_sched_intra_tree(const void *sendbuf, void *recvbuf, int count, +int MPIR_TSP_Iallreduce_sched_intra_tree(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, int tree_type, int k, int chunk_size, int buffer_per_child, MPIR_TSP_sched_t * sched) @@ -223,7 +223,7 @@ int MPIR_TSP_Iallreduce_sched_intra_tree(const void *sendbuf, void *recvbuf, int /* Non-blocking tree based allreduce */ -int MPIR_TSP_Iallreduce_intra_tree(const void *sendbuf, void *recvbuf, int count, +int MPIR_TSP_Iallreduce_intra_tree(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, MPIR_Request ** req, int tree_type, int k, int chunk_size, int buffer_per_child) diff --git a/src/mpi/coll/iallreduce/iallreduce_tsp_tree_algos_prototypes.h b/src/mpi/coll/iallreduce/iallreduce_tsp_tree_algos_prototypes.h index 36677baf601..2033386ef8f 100644 --- a/src/mpi/coll/iallreduce/iallreduce_tsp_tree_algos_prototypes.h +++ b/src/mpi/coll/iallreduce/iallreduce_tsp_tree_algos_prototypes.h @@ -14,11 +14,11 @@ #undef MPIR_TSP_Iallreduce_sched_intra_tree #define MPIR_TSP_Iallreduce_sched_intra_tree MPIR_TSP_NAMESPACE(Iallreduce_sched_intra_tree) -int MPIR_TSP_Iallreduce_sched_intra_tree(const void *sendbuf, void *recvbuf, int count, +int MPIR_TSP_Iallreduce_sched_intra_tree(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, int tree_type, int k, int segsize, int buffer_per_child, MPIR_TSP_sched_t * sched); -int MPIR_TSP_Iallreduce_intra_tree(const void *sendbuf, void *recvbuf, int count, +int MPIR_TSP_Iallreduce_intra_tree(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, MPIR_Request ** req, int tree_type, int k, int segsize, int buffer_per_child); diff --git a/src/mpi/coll/ialltoall/ialltoall.c b/src/mpi/coll/ialltoall/ialltoall.c index 266268f4750..2f7435e0351 100644 --- a/src/mpi/coll/ialltoall/ialltoall.c +++ b/src/mpi/coll/ialltoall/ialltoall.c @@ -105,8 +105,8 @@ End Algorithm: MPI_Alltoall */ -int MPIR_Ialltoall_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Ialltoall_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; @@ -197,8 +197,8 @@ int MPIR_Ialltoall_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype goto fn_exit; } -int MPIR_Ialltoall_intra_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Ialltoall_intra_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; @@ -235,9 +235,9 @@ int MPIR_Ialltoall_intra_sched_auto(const void *sendbuf, int sendcount, MPI_Data } -int MPIR_Ialltoall_inter_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype - sendtype, void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Ialltoall_inter_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype + sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; @@ -248,8 +248,8 @@ int MPIR_Ialltoall_inter_sched_auto(const void *sendbuf, int sendcount, MPI_Data return mpi_errno; } -int MPIR_Ialltoall_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Ialltoall_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; @@ -265,8 +265,8 @@ int MPIR_Ialltoall_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype s return mpi_errno; } -int MPIR_Ialltoall_impl(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, +int MPIR_Ialltoall_impl(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; @@ -371,8 +371,8 @@ int MPIR_Ialltoall_impl(const void *sendbuf, int sendcount, goto fn_exit; } -int MPIR_Ialltoall(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Ialltoall(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/ialltoall/ialltoall_inter_sched_pairwise_exchange.c b/src/mpi/coll/ialltoall/ialltoall_inter_sched_pairwise_exchange.c index 30f8e56b95b..b6c46c5b54a 100644 --- a/src/mpi/coll/ialltoall/ialltoall_inter_sched_pairwise_exchange.c +++ b/src/mpi/coll/ialltoall/ialltoall_inter_sched_pairwise_exchange.c @@ -16,9 +16,9 @@ * max_size if dst < remote_size. */ -int MPIR_Ialltoall_inter_sched_pairwise_exchange(const void *sendbuf, int sendcount, +int MPIR_Ialltoall_inter_sched_pairwise_exchange(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/ialltoall/ialltoall_intra_gentran_brucks.c b/src/mpi/coll/ialltoall/ialltoall_intra_gentran_brucks.c index 821697d972f..c9f9637d307 100644 --- a/src/mpi/coll/ialltoall/ialltoall_intra_gentran_brucks.c +++ b/src/mpi/coll/ialltoall/ialltoall_intra_gentran_brucks.c @@ -10,10 +10,10 @@ #include "ialltoall_tsp_brucks_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Ialltoall_intra_gentran_brucks(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, int k, int buffer_per_phase, - MPIR_Request ** request) +int MPIR_Ialltoall_intra_gentran_brucks(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, int k, + int buffer_per_phase, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/ialltoall/ialltoall_intra_gentran_ring.c b/src/mpi/coll/ialltoall/ialltoall_intra_gentran_ring.c index a534a2dc393..c28fdc0a028 100644 --- a/src/mpi/coll/ialltoall/ialltoall_intra_gentran_ring.c +++ b/src/mpi/coll/ialltoall/ialltoall_intra_gentran_ring.c @@ -10,9 +10,9 @@ #include "ialltoall_tsp_ring_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Ialltoall_intra_gentran_ring(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm, MPIR_Request ** req) +int MPIR_Ialltoall_intra_gentran_ring(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm, MPIR_Request ** req) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/ialltoall/ialltoall_intra_gentran_scattered.c b/src/mpi/coll/ialltoall/ialltoall_intra_gentran_scattered.c index f2dd796a2be..3e83f512903 100644 --- a/src/mpi/coll/ialltoall/ialltoall_intra_gentran_scattered.c +++ b/src/mpi/coll/ialltoall/ialltoall_intra_gentran_scattered.c @@ -10,9 +10,9 @@ #include "ialltoall_tsp_scattered_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Ialltoall_intra_gentran_scattered(const void *sendbuf, int sendcount, +int MPIR_Ialltoall_intra_gentran_scattered(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm, int batch_size, int bblock, MPIR_Request ** req) { diff --git a/src/mpi/coll/ialltoall/ialltoall_intra_sched_brucks.c b/src/mpi/coll/ialltoall/ialltoall_intra_sched_brucks.c index 7eec6c0563f..b45c75f010a 100644 --- a/src/mpi/coll/ialltoall/ialltoall_intra_sched_brucks.c +++ b/src/mpi/coll/ialltoall/ialltoall_intra_sched_brucks.c @@ -18,9 +18,9 @@ * where n is the total amount of data a process needs to send to all * other processes. */ -int MPIR_Ialltoall_intra_sched_brucks(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Ialltoall_intra_sched_brucks(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; int i; diff --git a/src/mpi/coll/ialltoall/ialltoall_intra_sched_inplace.c b/src/mpi/coll/ialltoall/ialltoall_intra_sched_inplace.c index 6957e315dee..b171fdafd2e 100644 --- a/src/mpi/coll/ialltoall/ialltoall_intra_sched_inplace.c +++ b/src/mpi/coll/ialltoall/ialltoall_intra_sched_inplace.c @@ -17,9 +17,9 @@ * Note that this is not an especially efficient algorithm in terms of time. * Something like MADRE is probably the best solution for the MPI_IN_PLACE * scenario. */ -int MPIR_Ialltoall_intra_sched_inplace(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Ialltoall_intra_sched_inplace(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; void *tmp_buf = NULL; diff --git a/src/mpi/coll/ialltoall/ialltoall_intra_sched_pairwise.c b/src/mpi/coll/ialltoall/ialltoall_intra_sched_pairwise.c index 67be827e558..e7f61d64bc3 100644 --- a/src/mpi/coll/ialltoall/ialltoall_intra_sched_pairwise.c +++ b/src/mpi/coll/ialltoall/ialltoall_intra_sched_pairwise.c @@ -22,9 +22,9 @@ * where n is the total amount of data a process needs to send to all * other processes. */ -int MPIR_Ialltoall_intra_sched_pairwise(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Ialltoall_intra_sched_pairwise(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; int i; diff --git a/src/mpi/coll/ialltoall/ialltoall_intra_sched_permuted_sendrecv.c b/src/mpi/coll/ialltoall/ialltoall_intra_sched_permuted_sendrecv.c index 490523d8ab8..f8e03a093bd 100644 --- a/src/mpi/coll/ialltoall/ialltoall_intra_sched_permuted_sendrecv.c +++ b/src/mpi/coll/ialltoall/ialltoall_intra_sched_permuted_sendrecv.c @@ -13,9 +13,9 @@ * * We use this as our medium-sized-message algorithm. */ -int MPIR_Ialltoall_intra_sched_permuted_sendrecv(const void *sendbuf, int sendcount, +int MPIR_Ialltoall_intra_sched_permuted_sendrecv(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/ialltoall/ialltoall_tsp_brucks_algos.h b/src/mpi/coll/ialltoall/ialltoall_tsp_brucks_algos.h index 01e2fa0f6d1..ad1d30b72b7 100644 --- a/src/mpi/coll/ialltoall/ialltoall_tsp_brucks_algos.h +++ b/src/mpi/coll/ialltoall/ialltoall_tsp_brucks_algos.h @@ -378,8 +378,8 @@ MPIR_TSP_Ialltoall_sched_intra_brucks(const void *sendbuf, int sendcount, MPI_Da } /* Non-blocking brucks based Alltoall */ -int MPIR_TSP_Ialltoall_intra_brucks(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_TSP_Ialltoall_intra_brucks(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** req, int k, int buffer_per_phase) { diff --git a/src/mpi/coll/ialltoall/ialltoall_tsp_brucks_algos_prototypes.h b/src/mpi/coll/ialltoall/ialltoall_tsp_brucks_algos_prototypes.h index fd49c365788..1da694cccea 100644 --- a/src/mpi/coll/ialltoall/ialltoall_tsp_brucks_algos_prototypes.h +++ b/src/mpi/coll/ialltoall/ialltoall_tsp_brucks_algos_prototypes.h @@ -14,11 +14,11 @@ #undef MPIR_TSP_Ialltoall_sched_intra_brucks #define MPIR_TSP_Ialltoall_sched_intra_brucks MPIR_TSP_NAMESPACE(Ialltoall_sched_intra_brucks) -int MPIR_TSP_Ialltoall_sched_intra_brucks(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm, MPIR_TSP_sched_t * s, int k, - int buffer_per_phase); -int MPIR_TSP_Ialltoall_intra_brucks(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_TSP_Ialltoall_sched_intra_brucks(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm, + MPIR_TSP_sched_t * s, int k, int buffer_per_phase); +int MPIR_TSP_Ialltoall_intra_brucks(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request, int k, int buffer_per_phase); diff --git a/src/mpi/coll/ialltoall/ialltoall_tsp_ring_algos.h b/src/mpi/coll/ialltoall/ialltoall_tsp_ring_algos.h index e7050e5288f..a242fe5b7bd 100644 --- a/src/mpi/coll/ialltoall/ialltoall_tsp_ring_algos.h +++ b/src/mpi/coll/ialltoall/ialltoall_tsp_ring_algos.h @@ -37,9 +37,10 @@ copy (buf1)<--recv (buf1) send (buf2) / */ /* Routine to schedule a ring based allgather */ -int MPIR_TSP_Ialltoall_sched_intra_ring(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm, MPIR_TSP_sched_t * sched) +int MPIR_TSP_Ialltoall_sched_intra_ring(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm, + MPIR_TSP_sched_t * sched) { int mpi_errno = MPI_SUCCESS; int i, src, dst, copy_dst; @@ -180,8 +181,8 @@ int MPIR_TSP_Ialltoall_sched_intra_ring(const void *sendbuf, int sendcount, MPI_ } /* Non-blocking ring based Alltoall */ -int MPIR_TSP_Ialltoall_intra_ring(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_TSP_Ialltoall_intra_ring(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm, MPIR_Request ** req) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/ialltoall/ialltoall_tsp_ring_algos_prototypes.h b/src/mpi/coll/ialltoall/ialltoall_tsp_ring_algos_prototypes.h index c9416dcb1c9..d01e50d2b09 100644 --- a/src/mpi/coll/ialltoall/ialltoall_tsp_ring_algos_prototypes.h +++ b/src/mpi/coll/ialltoall/ialltoall_tsp_ring_algos_prototypes.h @@ -14,10 +14,11 @@ #undef MPIR_TSP_Ialltoall_sched_intra_ring #define MPIR_TSP_Ialltoall_sched_intra_ring MPIR_TSP_NAMESPACE(Ialltoall_sched_intra_ring) -int MPIR_TSP_Ialltoall_sched_intra_ring(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm, MPIR_TSP_sched_t * sched); +int MPIR_TSP_Ialltoall_sched_intra_ring(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm, + MPIR_TSP_sched_t * sched); -int MPIR_TSP_Ialltoall_intra_ring(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_TSP_Ialltoall_intra_ring(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm, MPIR_Request ** req); diff --git a/src/mpi/coll/ialltoall/ialltoall_tsp_scattered_algos.h b/src/mpi/coll/ialltoall/ialltoall_tsp_scattered_algos.h index a9b052462fb..140033b5cf6 100644 --- a/src/mpi/coll/ialltoall/ialltoall_tsp_scattered_algos.h +++ b/src/mpi/coll/ialltoall/ialltoall_tsp_scattered_algos.h @@ -38,9 +38,9 @@ #include "tsp_namespace_def.h" /* Routine to schedule a scattered based alltoall */ -int MPIR_TSP_Ialltoall_sched_intra_scattered(const void *sendbuf, int sendcount, +int MPIR_TSP_Ialltoall_sched_intra_scattered(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm, int batch_size, int bblock, MPIR_TSP_sched_t * sched) { @@ -154,9 +154,9 @@ int MPIR_TSP_Ialltoall_sched_intra_scattered(const void *sendbuf, int sendcount, } /* Scattered sliding window based Alltoall */ -int MPIR_TSP_Ialltoall_intra_scattered(const void *sendbuf, int sendcount, +int MPIR_TSP_Ialltoall_intra_scattered(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm, int batch_size, int bblock, MPIR_Request ** req) { diff --git a/src/mpi/coll/ialltoall/ialltoall_tsp_scattered_algos_prototypes.h b/src/mpi/coll/ialltoall/ialltoall_tsp_scattered_algos_prototypes.h index 37efe87df7f..7769a6ed910 100644 --- a/src/mpi/coll/ialltoall/ialltoall_tsp_scattered_algos_prototypes.h +++ b/src/mpi/coll/ialltoall/ialltoall_tsp_scattered_algos_prototypes.h @@ -14,14 +14,14 @@ #undef MPIR_TSP_Ialltoall_sched_intra_scattered #define MPIR_TSP_Ialltoall_sched_intra_scattered MPIR_TSP_NAMESPACE(Ialltoall_sched_intra_scattered) -int MPIR_TSP_Ialltoall_sched_intra_scattered(const void *sendbuf, int sendcount, +int MPIR_TSP_Ialltoall_sched_intra_scattered(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm, int batch_size, int bblock, MPIR_TSP_sched_t * sched); -int MPIR_TSP_Ialltoall_intra_scattered(const void *sendbuf, int sendcount, +int MPIR_TSP_Ialltoall_intra_scattered(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm, int batch_size, int bblock, MPIR_Request ** req); diff --git a/src/mpi/coll/ibcast/ibcast.c b/src/mpi/coll/ibcast/ibcast.c index b305d73e851..b7a2a61f29d 100644 --- a/src/mpi/coll/ibcast/ibcast.c +++ b/src/mpi/coll/ibcast/ibcast.c @@ -131,7 +131,7 @@ * hierarchy. It will choose between several different algorithms * based on the given parameters. */ -int MPIR_Ibcast_allcomm_auto(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Ibcast_allcomm_auto(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; @@ -222,7 +222,7 @@ int MPIR_Ibcast_allcomm_auto(void *buffer, int count, MPI_Datatype datatype, int goto fn_exit; } -int MPIR_Ibcast_intra_sched_auto(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Ibcast_intra_sched_auto(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; @@ -272,7 +272,7 @@ int MPIR_Ibcast_intra_sched_auto(void *buffer, int count, MPI_Datatype datatype, /* Provides a "flat" broadcast for intercommunicators that doesn't * know anything about hierarchy. It will choose between several * different algorithms based on the given parameters. */ -int MPIR_Ibcast_inter_sched_auto(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Ibcast_inter_sched_auto(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; @@ -282,7 +282,7 @@ int MPIR_Ibcast_inter_sched_auto(void *buffer, int count, MPI_Datatype datatype, return mpi_errno; } -int MPIR_Ibcast_sched_auto(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Ibcast_sched_auto(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; @@ -296,7 +296,7 @@ int MPIR_Ibcast_sched_auto(void *buffer, int count, MPI_Datatype datatype, int r return mpi_errno; } -int MPIR_Ibcast_impl(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Ibcast_impl(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; @@ -396,7 +396,7 @@ int MPIR_Ibcast_impl(void *buffer, int count, MPI_Datatype datatype, int root, goto fn_exit; } -int MPIR_Ibcast(void *buffer, int count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, +int MPIR_Ibcast(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/ibcast/ibcast_inter_sched_flat.c b/src/mpi/coll/ibcast/ibcast_inter_sched_flat.c index 38fd11fccac..5e07f6ee21a 100644 --- a/src/mpi/coll/ibcast/ibcast_inter_sched_flat.c +++ b/src/mpi/coll/ibcast/ibcast_inter_sched_flat.c @@ -6,7 +6,7 @@ #include "mpiimpl.h" #include "ibcast.h" -int MPIR_Ibcast_inter_sched_flat(void *buffer, int count, MPI_Datatype datatype, +int MPIR_Ibcast_inter_sched_flat(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/ibcast/ibcast_intra_gentran_ring.c b/src/mpi/coll/ibcast/ibcast_intra_gentran_ring.c index cbfc95b8c54..bbf5769a87b 100644 --- a/src/mpi/coll/ibcast/ibcast_intra_gentran_ring.c +++ b/src/mpi/coll/ibcast/ibcast_intra_gentran_ring.c @@ -11,7 +11,7 @@ #include "ibcast_tsp_tree_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Ibcast_intra_gentran_ring(void *buffer, int count, +int MPIR_Ibcast_intra_gentran_ring(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, int chunk_size, MPIR_Request ** request) { diff --git a/src/mpi/coll/ibcast/ibcast_intra_gentran_scatter_recexch_allgather.c b/src/mpi/coll/ibcast/ibcast_intra_gentran_scatter_recexch_allgather.c index c00750e99a9..b7b3c49c5b8 100644 --- a/src/mpi/coll/ibcast/ibcast_intra_gentran_scatter_recexch_allgather.c +++ b/src/mpi/coll/ibcast/ibcast_intra_gentran_scatter_recexch_allgather.c @@ -11,7 +11,7 @@ #include "ibcast_tsp_scatter_recexch_allgather_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Ibcast_intra_gentran_scatter_recexch_allgather(void *buffer, int count, +int MPIR_Ibcast_intra_gentran_scatter_recexch_allgather(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request) diff --git a/src/mpi/coll/ibcast/ibcast_intra_gentran_scatterv_recexch_allgatherv.c b/src/mpi/coll/ibcast/ibcast_intra_gentran_scatterv_recexch_allgatherv.c index d4e5831014a..fdbc07dd3f8 100644 --- a/src/mpi/coll/ibcast/ibcast_intra_gentran_scatterv_recexch_allgatherv.c +++ b/src/mpi/coll/ibcast/ibcast_intra_gentran_scatterv_recexch_allgatherv.c @@ -11,7 +11,7 @@ #include "ibcast_tsp_scatterv_allgatherv_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Ibcast_intra_gentran_scatterv_recexch_allgatherv(void *buffer, int count, +int MPIR_Ibcast_intra_gentran_scatterv_recexch_allgatherv(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, int scatterv_k, int allgatherv_k, MPIR_Request ** request) diff --git a/src/mpi/coll/ibcast/ibcast_intra_gentran_tree.c b/src/mpi/coll/ibcast/ibcast_intra_gentran_tree.c index 6d400655ed5..164c5ac50fd 100644 --- a/src/mpi/coll/ibcast/ibcast_intra_gentran_tree.c +++ b/src/mpi/coll/ibcast/ibcast_intra_gentran_tree.c @@ -11,7 +11,7 @@ #include "ibcast_tsp_tree_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Ibcast_intra_gentran_tree(void *buffer, int count, +int MPIR_Ibcast_intra_gentran_tree(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, int tree_type, int k, int chunk_size, MPIR_Request ** request) { diff --git a/src/mpi/coll/ibcast/ibcast_intra_sched_binomial.c b/src/mpi/coll/ibcast/ibcast_intra_sched_binomial.c index e6596e01dc6..7abea261951 100644 --- a/src/mpi/coll/ibcast/ibcast_intra_sched_binomial.c +++ b/src/mpi/coll/ibcast/ibcast_intra_sched_binomial.c @@ -12,7 +12,7 @@ * binomial broadcast. It does _not_ start the schedule. This permits callers * to build up a larger hierarchical broadcast from multiple invocations of this * function. */ -int MPIR_Ibcast_intra_sched_binomial(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Ibcast_intra_sched_binomial(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/ibcast/ibcast_intra_sched_scatter_recursive_doubling_allgather.c b/src/mpi/coll/ibcast/ibcast_intra_sched_scatter_recursive_doubling_allgather.c index 2180513ab2e..55e6b2698b7 100644 --- a/src/mpi/coll/ibcast/ibcast_intra_sched_scatter_recursive_doubling_allgather.c +++ b/src/mpi/coll/ibcast/ibcast_intra_sched_scatter_recursive_doubling_allgather.c @@ -46,7 +46,7 @@ * bytes and knows how to deal with a "ragged edge" vector length and we * implement the recursive doubling algorithm here. */ -int MPIR_Ibcast_intra_sched_scatter_recursive_doubling_allgather(void *buffer, int count, +int MPIR_Ibcast_intra_sched_scatter_recursive_doubling_allgather(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s) diff --git a/src/mpi/coll/ibcast/ibcast_intra_sched_scatter_ring_allgather.c b/src/mpi/coll/ibcast/ibcast_intra_sched_scatter_ring_allgather.c index a477d69c5cb..bdae2f77165 100644 --- a/src/mpi/coll/ibcast/ibcast_intra_sched_scatter_ring_allgather.c +++ b/src/mpi/coll/ibcast/ibcast_intra_sched_scatter_ring_allgather.c @@ -24,8 +24,9 @@ * * Total Cost = (lgp+p-1).alpha + 2.n.((p-1)/p).beta */ -int MPIR_Ibcast_intra_sched_scatter_ring_allgather(void *buffer, int count, MPI_Datatype datatype, - int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Ibcast_intra_sched_scatter_ring_allgather(void *buffer, MPI_Aint count, + MPI_Datatype datatype, int root, + MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; int comm_size, rank; diff --git a/src/mpi/coll/ibcast/ibcast_intra_sched_smp.c b/src/mpi/coll/ibcast/ibcast_intra_sched_smp.c index 4ef4e55b734..7ed19b63c86 100644 --- a/src/mpi/coll/ibcast/ibcast_intra_sched_smp.c +++ b/src/mpi/coll/ibcast/ibcast_intra_sched_smp.c @@ -25,7 +25,7 @@ static int sched_test_length(MPIR_Comm * comm, int tag, void *state) /* This routine purely handles the hierarchical version of bcast, and does not * currently make any decision about which particular algorithm to use for any * subcommunicator. */ -int MPIR_Ibcast_intra_sched_smp(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_Ibcast_intra_sched_smp(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/ibcast/ibcast_tsp_scatterv_allgatherv_algos.h b/src/mpi/coll/ibcast/ibcast_tsp_scatterv_allgatherv_algos.h index 2761acbb2ba..10f593009ff 100644 --- a/src/mpi/coll/ibcast/ibcast_tsp_scatterv_allgatherv_algos.h +++ b/src/mpi/coll/ibcast/ibcast_tsp_scatterv_allgatherv_algos.h @@ -12,7 +12,7 @@ #include "../iallgatherv/iallgatherv_tsp_recexch_algos_prototypes.h" /* Routine to schedule a scatter followed by recursive exchange based broadcast */ -int MPIR_TSP_Ibcast_sched_intra_scatterv_allgatherv(void *buffer, int count, +int MPIR_TSP_Ibcast_sched_intra_scatterv_allgatherv(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm, int scatterv_k, int allgatherv_k, MPIR_TSP_sched_t * sched) @@ -194,7 +194,7 @@ int MPIR_TSP_Ibcast_sched_intra_scatterv_allgatherv(void *buffer, int count, /* Non-blocking scatter followed by recursive exchange allgather based broadcast */ -int MPIR_TSP_Ibcast_intra_scatterv_allgatherv(void *buffer, int count, MPI_Datatype datatype, +int MPIR_TSP_Ibcast_intra_scatterv_allgatherv(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm, int scatterv_k, int allgatherv_k, MPIR_Request ** req) { diff --git a/src/mpi/coll/ibcast/ibcast_tsp_scatterv_allgatherv_algos_prototypes.h b/src/mpi/coll/ibcast/ibcast_tsp_scatterv_allgatherv_algos_prototypes.h index 75267ea8571..98dda1ce9a7 100644 --- a/src/mpi/coll/ibcast/ibcast_tsp_scatterv_allgatherv_algos_prototypes.h +++ b/src/mpi/coll/ibcast/ibcast_tsp_scatterv_allgatherv_algos_prototypes.h @@ -14,10 +14,10 @@ #undef MPIR_TSP_Ibcast_sched_intra_scatterv_allgatherv #define MPIR_TSP_Ibcast_sched_intra_scatterv_allgatherv MPIR_TSP_NAMESPACE(Ibcast_sched_intra_scatterv_allgatherv) -int MPIR_TSP_Ibcast_sched_intra_scatterv_allgatherv(void *buffer, int count, +int MPIR_TSP_Ibcast_sched_intra_scatterv_allgatherv(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm, int scatterv_k, int allgatherv_k, MPIR_TSP_sched_t * sched); -int MPIR_TSP_Ibcast_intra_scatterv_allgatherv(void *buffer, int count, MPI_Datatype datatype, +int MPIR_TSP_Ibcast_intra_scatterv_allgatherv(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm, int scatterv_k, int allgatherv_k, MPIR_Request ** req); diff --git a/src/mpi/coll/ibcast/ibcast_tsp_tree_algos.h b/src/mpi/coll/ibcast/ibcast_tsp_tree_algos.h index db902d4366d..ffa5b517c0f 100644 --- a/src/mpi/coll/ibcast/ibcast_tsp_tree_algos.h +++ b/src/mpi/coll/ibcast/ibcast_tsp_tree_algos.h @@ -12,7 +12,7 @@ #include "tsp_namespace_def.h" /* Routine to schedule a pipelined tree based broadcast */ -int MPIR_TSP_Ibcast_sched_intra_tree(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_TSP_Ibcast_sched_intra_tree(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm, int tree_type, int k, int chunk_size, MPIR_TSP_sched_t * sched) { @@ -96,7 +96,7 @@ int MPIR_TSP_Ibcast_sched_intra_tree(void *buffer, int count, MPI_Datatype datat /* Non-blocking tree based broadcast */ -int MPIR_TSP_Ibcast_intra_tree(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_TSP_Ibcast_intra_tree(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm, MPIR_Request ** req, int tree_type, int k, int chunk_size) { diff --git a/src/mpi/coll/ibcast/ibcast_tsp_tree_algos_prototypes.h b/src/mpi/coll/ibcast/ibcast_tsp_tree_algos_prototypes.h index 678281f0e34..e7a749feb44 100644 --- a/src/mpi/coll/ibcast/ibcast_tsp_tree_algos_prototypes.h +++ b/src/mpi/coll/ibcast/ibcast_tsp_tree_algos_prototypes.h @@ -14,9 +14,9 @@ #undef MPIR_TSP_Ibcast_sched_intra_tree #define MPIR_TSP_Ibcast_sched_intra_tree MPIR_TSP_NAMESPACE(Ibcast_sched_intra_tree) -int MPIR_TSP_Ibcast_sched_intra_tree(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_TSP_Ibcast_sched_intra_tree(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm, int tree_type, int k, int segsize, MPIR_TSP_sched_t * sched); -int MPIR_TSP_Ibcast_intra_tree(void *buffer, int count, MPI_Datatype datatype, int root, +int MPIR_TSP_Ibcast_intra_tree(void *buffer, MPI_Aint count, MPI_Datatype datatype, int root, MPIR_Comm * comm, MPIR_Request ** req, int tree_type, int k, int segsize); diff --git a/src/mpi/coll/iexscan/iexscan.c b/src/mpi/coll/iexscan/iexscan.c index 9326971d32c..9b5ce748554 100644 --- a/src/mpi/coll/iexscan/iexscan.c +++ b/src/mpi/coll/iexscan/iexscan.c @@ -41,8 +41,9 @@ */ -int MPIR_Iexscan_allcomm_auto(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request) +int MPIR_Iexscan_allcomm_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, + MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; @@ -81,7 +82,7 @@ int MPIR_Iexscan_allcomm_auto(const void *sendbuf, void *recvbuf, int count, MPI goto fn_exit; } -int MPIR_Iexscan_intra_sched_auto(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iexscan_intra_sched_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { @@ -99,7 +100,7 @@ int MPIR_Iexscan_intra_sched_auto(const void *sendbuf, void *recvbuf, int count, goto fn_exit; } -int MPIR_Iexscan_impl(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iexscan_impl(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request) { @@ -133,7 +134,7 @@ int MPIR_Iexscan_impl(const void *sendbuf, void *recvbuf, int count, goto fn_exit; } -int MPIR_Iexscan(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iexscan(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/iexscan/iexscan_intra_sched_recursive_doubling.c b/src/mpi/coll/iexscan/iexscan_intra_sched_recursive_doubling.c index 8cb1cd78bad..bc0ec9f258c 100644 --- a/src/mpi/coll/iexscan/iexscan_intra_sched_recursive_doubling.c +++ b/src/mpi/coll/iexscan/iexscan_intra_sched_recursive_doubling.c @@ -48,7 +48,7 @@ End Algorithm: MPI_Exscan */ -int MPIR_Iexscan_intra_sched_recursive_doubling(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iexscan_intra_sched_recursive_doubling(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { diff --git a/src/mpi/coll/igather/igather.c b/src/mpi/coll/igather/igather.c index 8842387d569..a1a713ecb83 100644 --- a/src/mpi/coll/igather/igather.c +++ b/src/mpi/coll/igather/igather.c @@ -65,8 +65,8 @@ === END_MPI_T_CVAR_INFO_BLOCK === */ -int MPIR_Igather_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, +int MPIR_Igather_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; @@ -130,9 +130,9 @@ int MPIR_Igather_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype s goto fn_exit; } -int MPIR_Igather_intra_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, - MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Igather_intra_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, + int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; @@ -147,9 +147,9 @@ int MPIR_Igather_intra_sched_auto(const void *sendbuf, int sendcount, MPI_Dataty goto fn_exit; } -int MPIR_Igather_inter_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, - MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Igather_inter_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, + int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; MPI_Aint local_size, remote_size; @@ -186,8 +186,8 @@ int MPIR_Igather_inter_sched_auto(const void *sendbuf, int sendcount, MPI_Dataty return mpi_errno; } -int MPIR_Igather_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, +int MPIR_Igather_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; @@ -203,8 +203,8 @@ int MPIR_Igather_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sen return mpi_errno; } -int MPIR_Igather_impl(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, +int MPIR_Igather_impl(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request) { @@ -282,8 +282,8 @@ int MPIR_Igather_impl(const void *sendbuf, int sendcount, goto fn_exit; } -int MPIR_Igather(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, +int MPIR_Igather(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/igather/igather_inter_sched_long.c b/src/mpi/coll/igather/igather_inter_sched_long.c index af7bc870084..fade46c3594 100644 --- a/src/mpi/coll/igather/igather_inter_sched_long.c +++ b/src/mpi/coll/igather/igather_inter_sched_long.c @@ -12,9 +12,9 @@ * * Cost: p.alpha + n.beta */ -int MPIR_Igather_inter_sched_long(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, - MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Igather_inter_sched_long(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, + int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; MPI_Aint remote_size; diff --git a/src/mpi/coll/igather/igather_inter_sched_short.c b/src/mpi/coll/igather/igather_inter_sched_short.c index 4e7b2e1abee..ef754b5610b 100644 --- a/src/mpi/coll/igather/igather_inter_sched_short.c +++ b/src/mpi/coll/igather/igather_inter_sched_short.c @@ -13,9 +13,9 @@ * * Cost: (lgp+1).alpha + n.((p-1)/p).beta + n.beta */ -int MPIR_Igather_inter_sched_short(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, - MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Igather_inter_sched_short(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, + int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; int rank; diff --git a/src/mpi/coll/igather/igather_intra_gentran_tree.c b/src/mpi/coll/igather/igather_intra_gentran_tree.c index c4f0a8ce3e8..16027ecd2f0 100644 --- a/src/mpi/coll/igather/igather_intra_gentran_tree.c +++ b/src/mpi/coll/igather/igather_intra_gentran_tree.c @@ -10,8 +10,8 @@ #include "igather_tsp_tree_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Igather_intra_gentran_tree(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, +int MPIR_Igather_intra_gentran_tree(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, int k, MPIR_Request ** request) { diff --git a/src/mpi/coll/igather/igather_intra_sched_binomial.c b/src/mpi/coll/igather/igather_intra_sched_binomial.c index 05fbd468dec..579d39e07af 100644 --- a/src/mpi/coll/igather/igather_intra_sched_binomial.c +++ b/src/mpi/coll/igather/igather_intra_sched_binomial.c @@ -25,9 +25,10 @@ End Algorithm: MPI_Gather */ -int MPIR_Igather_intra_sched_binomial(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, int root, - MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Igather_intra_sched_binomial(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, + MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; int comm_size, rank; diff --git a/src/mpi/coll/igather/igather_tsp_tree_algos.h b/src/mpi/coll/igather/igather_tsp_tree_algos.h index 7468130d45c..5c7f4b32ca3 100644 --- a/src/mpi/coll/igather/igather_tsp_tree_algos.h +++ b/src/mpi/coll/igather/igather_tsp_tree_algos.h @@ -12,8 +12,8 @@ #include "tsp_namespace_def.h" /* Routine to schedule a tree based gather */ -int MPIR_TSP_Igather_sched_intra_tree(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, +int MPIR_TSP_Igather_sched_intra_tree(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm, int k, MPIR_TSP_sched_t * sched) { @@ -190,8 +190,8 @@ int MPIR_TSP_Igather_sched_intra_tree(const void *sendbuf, int sendcount, /* Non-blocking tree based gather */ -int MPIR_TSP_Igather_intra_tree(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, +int MPIR_TSP_Igather_intra_tree(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm, MPIR_Request ** req, int k) { diff --git a/src/mpi/coll/igather/igather_tsp_tree_algos_prototypes.h b/src/mpi/coll/igather/igather_tsp_tree_algos_prototypes.h index b046caa2b68..d3df37095d4 100644 --- a/src/mpi/coll/igather/igather_tsp_tree_algos_prototypes.h +++ b/src/mpi/coll/igather/igather_tsp_tree_algos_prototypes.h @@ -14,11 +14,11 @@ #undef MPIR_TSP_Igather_sched_intra_tree #define MPIR_TSP_Igather_sched_intra_tree MPIR_TSP_NAMESPACE(Igather_sched_intra_tree) -int MPIR_TSP_Igather_sched_intra_tree(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, +int MPIR_TSP_Igather_sched_intra_tree(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, int k, MPIR_TSP_sched_t * sched); -int MPIR_TSP_Igather_intra_tree(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, +int MPIR_TSP_Igather_intra_tree(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request, int k); diff --git a/src/mpi/coll/igatherv/igatherv.c b/src/mpi/coll/igatherv/igatherv.c index dcd901f1700..73481b8f3cd 100644 --- a/src/mpi/coll/igatherv/igatherv.c +++ b/src/mpi/coll/igatherv/igatherv.c @@ -54,7 +54,7 @@ === END_MPI_T_CVAR_INFO_BLOCK === */ -int MPIR_Igatherv_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Igatherv_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int *recvcounts, const int *displs, MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request) @@ -111,7 +111,7 @@ int MPIR_Igatherv_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype goto fn_exit; } -int MPIR_Igatherv_intra_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Igatherv_intra_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s) @@ -130,7 +130,7 @@ int MPIR_Igatherv_intra_sched_auto(const void *sendbuf, int sendcount, MPI_Datat goto fn_exit; } -int MPIR_Igatherv_inter_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Igatherv_inter_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s) @@ -149,7 +149,7 @@ int MPIR_Igatherv_inter_sched_auto(const void *sendbuf, int sendcount, MPI_Datat goto fn_exit; } -int MPIR_Igatherv_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_Igatherv_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { @@ -166,9 +166,10 @@ int MPIR_Igatherv_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype se return mpi_errno; } -int MPIR_Igatherv_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, - const int recvcounts[], const int displs[], MPI_Datatype recvtype, - int root, MPIR_Comm * comm_ptr, MPIR_Request ** request) +int MPIR_Igatherv_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, + void *recvbuf, const int recvcounts[], const int displs[], + MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, + MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; @@ -241,7 +242,7 @@ int MPIR_Igatherv_impl(const void *sendbuf, int sendcount, MPI_Datatype sendtype goto fn_exit; } -int MPIR_Igatherv(const void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, +int MPIR_Igatherv(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request) { diff --git a/src/mpi/coll/igatherv/igatherv_allcomm_gentran_linear.c b/src/mpi/coll/igatherv/igatherv_allcomm_gentran_linear.c index 4781f83da72..9fcb6033955 100644 --- a/src/mpi/coll/igatherv/igatherv_allcomm_gentran_linear.c +++ b/src/mpi/coll/igatherv/igatherv_allcomm_gentran_linear.c @@ -10,8 +10,9 @@ #include "igatherv_tsp_linear_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Igatherv_allcomm_gentran_linear(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int recvcounts[], const int displs[], +int MPIR_Igatherv_allcomm_gentran_linear(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + const int recvcounts[], const int displs[], MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request) { diff --git a/src/mpi/coll/igatherv/igatherv_allcomm_sched_linear.c b/src/mpi/coll/igatherv/igatherv_allcomm_sched_linear.c index a539a6e1aa3..eddb596af8e 100644 --- a/src/mpi/coll/igatherv/igatherv_allcomm_sched_linear.c +++ b/src/mpi/coll/igatherv/igatherv_allcomm_sched_linear.c @@ -11,10 +11,10 @@ * Root receives from all processes, everyone else sends to root. */ -int MPIR_Igatherv_allcomm_sched_linear(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int recvcounts[], const int displs[], - MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, - MPIR_Sched_t s) +int MPIR_Igatherv_allcomm_sched_linear(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], + const int displs[], MPI_Datatype recvtype, int root, + MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; int i; diff --git a/src/mpi/coll/igatherv/igatherv_tsp_linear_algos.h b/src/mpi/coll/igatherv/igatherv_tsp_linear_algos.h index 6e0ba27588c..71d7e7fc98a 100644 --- a/src/mpi/coll/igatherv/igatherv_tsp_linear_algos.h +++ b/src/mpi/coll/igatherv/igatherv_tsp_linear_algos.h @@ -21,7 +21,7 @@ Cost = (p-1).alpha + n.((p-1)/p).beta */ -int MPIR_TSP_Igatherv_sched_allcomm_linear(const void *sendbuf, int sendcount, +int MPIR_TSP_Igatherv_sched_allcomm_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, @@ -93,7 +93,7 @@ int MPIR_TSP_Igatherv_sched_allcomm_linear(const void *sendbuf, int sendcount, } /* Non-blocking linear algorithm for gatherv */ -int MPIR_TSP_Igatherv_allcomm_linear(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_TSP_Igatherv_allcomm_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, int root, MPIR_Comm * comm, MPIR_Request ** req) diff --git a/src/mpi/coll/igatherv/igatherv_tsp_linear_algos_prototypes.h b/src/mpi/coll/igatherv/igatherv_tsp_linear_algos_prototypes.h index 2ef4c09ac2f..cb59f352eca 100644 --- a/src/mpi/coll/igatherv/igatherv_tsp_linear_algos_prototypes.h +++ b/src/mpi/coll/igatherv/igatherv_tsp_linear_algos_prototypes.h @@ -14,12 +14,12 @@ #undef MPIR_TSP_Igatherv_sched_allcomm_linear #define MPIR_TSP_Igatherv_sched_allcomm_linear MPIR_TSP_NAMESPACE(Igatherv_sched_allcomm_linear) -int MPIR_TSP_Igatherv_sched_allcomm_linear(const void *sendbuf, int sendcount, +int MPIR_TSP_Igatherv_sched_allcomm_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_TSP_sched_t * sched); -int MPIR_TSP_Igatherv_allcomm_linear(const void *sendbuf, int sendcount, MPI_Datatype sendtype, +int MPIR_TSP_Igatherv_allcomm_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request); diff --git a/src/mpi/coll/ineighbor_allgather/ineighbor_allgather.c b/src/mpi/coll/ineighbor_allgather/ineighbor_allgather.c index e36ecd35dd8..d3ba89d0744 100644 --- a/src/mpi/coll/ineighbor_allgather/ineighbor_allgather.c +++ b/src/mpi/coll/ineighbor_allgather/ineighbor_allgather.c @@ -55,9 +55,10 @@ === END_MPI_T_CVAR_INFO_BLOCK === */ -int MPIR_Ineighbor_allgather_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, MPIR_Request ** request) +int MPIR_Ineighbor_allgather_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, + MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; @@ -109,10 +110,10 @@ int MPIR_Ineighbor_allgather_allcomm_auto(const void *sendbuf, int sendcount, MP goto fn_exit; } -int MPIR_Ineighbor_allgather_intra_sched_auto(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, - MPI_Datatype recvtype, MPIR_Comm * comm_ptr, - MPIR_Sched_t s) +int MPIR_Ineighbor_allgather_intra_sched_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; @@ -128,10 +129,10 @@ int MPIR_Ineighbor_allgather_intra_sched_auto(const void *sendbuf, int sendcount goto fn_exit; } -int MPIR_Ineighbor_allgather_inter_sched_auto(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, - MPI_Datatype recvtype, MPIR_Comm * comm_ptr, - MPIR_Sched_t s) +int MPIR_Ineighbor_allgather_inter_sched_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; @@ -147,9 +148,9 @@ int MPIR_Ineighbor_allgather_inter_sched_auto(const void *sendbuf, int sendcount goto fn_exit; } -int MPIR_Ineighbor_allgather_sched_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Ineighbor_allgather_sched_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; @@ -166,9 +167,9 @@ int MPIR_Ineighbor_allgather_sched_auto(const void *sendbuf, int sendcount, MPI_ return mpi_errno; } -int MPIR_Ineighbor_allgather_impl(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_allgather_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; @@ -245,9 +246,9 @@ int MPIR_Ineighbor_allgather_impl(const void *sendbuf, int sendcount, goto fn_exit; } -int MPIR_Ineighbor_allgather(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_allgather(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/ineighbor_allgather/ineighbor_allgather_allcomm_gentran_linear.c b/src/mpi/coll/ineighbor_allgather/ineighbor_allgather_allcomm_gentran_linear.c index bbcdb12e6ce..132c19b6a34 100644 --- a/src/mpi/coll/ineighbor_allgather/ineighbor_allgather_allcomm_gentran_linear.c +++ b/src/mpi/coll/ineighbor_allgather/ineighbor_allgather_allcomm_gentran_linear.c @@ -10,9 +10,9 @@ #include "ineighbor_allgather_tsp_linear_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Ineighbor_allgather_allcomm_gentran_linear(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_allgather_allcomm_gentran_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/ineighbor_allgather/ineighbor_allgather_allcomm_sched_linear.c b/src/mpi/coll/ineighbor_allgather/ineighbor_allgather_allcomm_sched_linear.c index 87c8039fe3e..c4037e5b4e2 100644 --- a/src/mpi/coll/ineighbor_allgather/ineighbor_allgather_allcomm_sched_linear.c +++ b/src/mpi/coll/ineighbor_allgather/ineighbor_allgather_allcomm_sched_linear.c @@ -12,9 +12,9 @@ * neighbor. */ -int MPIR_Ineighbor_allgather_allcomm_sched_linear(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_allgather_allcomm_sched_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/ineighbor_allgather/ineighbor_allgather_tsp_linear_algos.h b/src/mpi/coll/ineighbor_allgather/ineighbor_allgather_tsp_linear_algos.h index 5770c8bfac6..50e560db85e 100644 --- a/src/mpi/coll/ineighbor_allgather/ineighbor_allgather_tsp_linear_algos.h +++ b/src/mpi/coll/ineighbor_allgather/ineighbor_allgather_tsp_linear_algos.h @@ -12,9 +12,9 @@ #include "tsp_namespace_def.h" /* Routine to schedule a pipelined tree based broadcast */ -int MPIR_TSP_Ineighbor_allgather_sched_allcomm_linear(const void *sendbuf, int sendcount, +int MPIR_TSP_Ineighbor_allgather_sched_allcomm_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_TSP_sched_t * sched) { @@ -65,10 +65,10 @@ int MPIR_TSP_Ineighbor_allgather_sched_allcomm_linear(const void *sendbuf, int s /* Non-blocking linear algo based neighbor_allgather */ -int MPIR_TSP_Ineighbor_allgather_allcomm_linear(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, - MPI_Datatype recvtype, MPIR_Comm * comm_ptr, - MPIR_Request ** req) +int MPIR_TSP_Ineighbor_allgather_allcomm_linear(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Request ** req) { int mpi_errno = MPI_SUCCESS; MPIR_TSP_sched_t *sched; diff --git a/src/mpi/coll/ineighbor_allgather/ineighbor_allgather_tsp_linear_algos_prototypes.h b/src/mpi/coll/ineighbor_allgather/ineighbor_allgather_tsp_linear_algos_prototypes.h index cc3956f8992..6deb2a26a08 100644 --- a/src/mpi/coll/ineighbor_allgather/ineighbor_allgather_tsp_linear_algos_prototypes.h +++ b/src/mpi/coll/ineighbor_allgather/ineighbor_allgather_tsp_linear_algos_prototypes.h @@ -14,12 +14,12 @@ #undef MPIR_TSP_Ineighor_allgather_sched_allcomm_linear #define MPIR_TSP_Ineighbor_allgather_sched_allcomm_linear MPIR_TSP_NAMESPACE(Ineighbor_allgather_sched_allcomm_linear) -int MPIR_TSP_Ineighbor_allgather_sched_allcomm_linear(const void *sendbuf, int sendcount, +int MPIR_TSP_Ineighbor_allgather_sched_allcomm_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_TSP_sched_t * sched); -int MPIR_TSP_Ineighbor_allgather_allcomm_linear(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, - MPI_Datatype recvtype, MPIR_Comm * comm_ptr, - MPIR_Request ** req); +int MPIR_TSP_Ineighbor_allgather_allcomm_linear(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Request ** req); diff --git a/src/mpi/coll/ineighbor_allgatherv/ineighbor_allgatherv.c b/src/mpi/coll/ineighbor_allgatherv/ineighbor_allgatherv.c index 0a5a863ea41..19002ef3027 100644 --- a/src/mpi/coll/ineighbor_allgatherv/ineighbor_allgatherv.c +++ b/src/mpi/coll/ineighbor_allgatherv/ineighbor_allgatherv.c @@ -56,7 +56,7 @@ */ -int MPIR_Ineighbor_allgatherv_allcomm_auto(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_allgatherv_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, @@ -113,7 +113,7 @@ int MPIR_Ineighbor_allgatherv_allcomm_auto(const void *sendbuf, int sendcount, goto fn_exit; } -int MPIR_Ineighbor_allgatherv_intra_sched_auto(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_allgatherv_intra_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, @@ -133,7 +133,7 @@ int MPIR_Ineighbor_allgatherv_intra_sched_auto(const void *sendbuf, int sendcoun goto fn_exit; } -int MPIR_Ineighbor_allgatherv_inter_sched_auto(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_allgatherv_inter_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, @@ -153,7 +153,7 @@ int MPIR_Ineighbor_allgatherv_inter_sched_auto(const void *sendbuf, int sendcoun goto fn_exit; } -int MPIR_Ineighbor_allgatherv_sched_auto(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_allgatherv_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, @@ -174,7 +174,7 @@ int MPIR_Ineighbor_allgatherv_sched_auto(const void *sendbuf, int sendcount, return mpi_errno; } -int MPIR_Ineighbor_allgatherv_impl(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_allgatherv_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, @@ -260,7 +260,7 @@ int MPIR_Ineighbor_allgatherv_impl(const void *sendbuf, int sendcount, goto fn_exit; } -int MPIR_Ineighbor_allgatherv(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_allgatherv(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request) diff --git a/src/mpi/coll/ineighbor_allgatherv/ineighbor_allgatherv_allcomm_gentran_linear.c b/src/mpi/coll/ineighbor_allgatherv/ineighbor_allgatherv_allcomm_gentran_linear.c index 8cc902a95c4..5a889baba94 100644 --- a/src/mpi/coll/ineighbor_allgatherv/ineighbor_allgatherv_allcomm_gentran_linear.c +++ b/src/mpi/coll/ineighbor_allgatherv/ineighbor_allgatherv_allcomm_gentran_linear.c @@ -10,7 +10,7 @@ #include "ineighbor_allgatherv_tsp_linear_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Ineighbor_allgatherv_allcomm_gentran_linear(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_allgatherv_allcomm_gentran_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, diff --git a/src/mpi/coll/ineighbor_allgatherv/ineighbor_allgatherv_allcomm_sched_linear.c b/src/mpi/coll/ineighbor_allgatherv/ineighbor_allgatherv_allcomm_sched_linear.c index 53bd1b1f103..134f350eb8e 100644 --- a/src/mpi/coll/ineighbor_allgatherv/ineighbor_allgatherv_allcomm_sched_linear.c +++ b/src/mpi/coll/ineighbor_allgatherv/ineighbor_allgatherv_allcomm_sched_linear.c @@ -12,7 +12,7 @@ * neighbor. */ -int MPIR_Ineighbor_allgatherv_allcomm_sched_linear(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_allgatherv_allcomm_sched_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, diff --git a/src/mpi/coll/ineighbor_allgatherv/ineighbor_allgatherv_tsp_linear_algos.h b/src/mpi/coll/ineighbor_allgatherv/ineighbor_allgatherv_tsp_linear_algos.h index 2d322ad88c3..f8f3b203562 100644 --- a/src/mpi/coll/ineighbor_allgatherv/ineighbor_allgatherv_tsp_linear_algos.h +++ b/src/mpi/coll/ineighbor_allgatherv/ineighbor_allgatherv_tsp_linear_algos.h @@ -12,7 +12,7 @@ #include "tsp_namespace_def.h" /* Routine to schedule linear algorithm fir neighbor_allgatherv */ -int MPIR_TSP_Ineighbor_allgatherv_sched_allcomm_linear(const void *sendbuf, int sendcount, +int MPIR_TSP_Ineighbor_allgatherv_sched_allcomm_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, @@ -64,7 +64,7 @@ int MPIR_TSP_Ineighbor_allgatherv_sched_allcomm_linear(const void *sendbuf, int /* Non-blocking linear algo based neighbor_allgatherv */ -int MPIR_TSP_Ineighbor_allgatherv_allcomm_linear(const void *sendbuf, int sendcount, +int MPIR_TSP_Ineighbor_allgatherv_allcomm_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, diff --git a/src/mpi/coll/ineighbor_allgatherv/ineighbor_allgatherv_tsp_linear_algos_prototypes.h b/src/mpi/coll/ineighbor_allgatherv/ineighbor_allgatherv_tsp_linear_algos_prototypes.h index 9123108a2d6..172c4ea4ca4 100644 --- a/src/mpi/coll/ineighbor_allgatherv/ineighbor_allgatherv_tsp_linear_algos_prototypes.h +++ b/src/mpi/coll/ineighbor_allgatherv/ineighbor_allgatherv_tsp_linear_algos_prototypes.h @@ -14,12 +14,12 @@ #undef MPIR_TSP_Ineighor_allgatherv_sched_allcomm_linear #define MPIR_TSP_Ineighbor_allgatherv_sched_allcomm_linear MPIR_TSP_NAMESPACE(Ineighbor_allgatherv_sched_allcomm_linear) -int MPIR_TSP_Ineighbor_allgatherv_sched_allcomm_linear(const void *sendbuf, int sendcount, +int MPIR_TSP_Ineighbor_allgatherv_sched_allcomm_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_TSP_sched_t * sched); -int MPIR_TSP_Ineighbor_allgatherv_allcomm_linear(const void *sendbuf, int sendcount, +int MPIR_TSP_Ineighbor_allgatherv_allcomm_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr, diff --git a/src/mpi/coll/ineighbor_alltoall/ineighbor_alltoall.c b/src/mpi/coll/ineighbor_alltoall/ineighbor_alltoall.c index 8e39d2d1d37..52697722d71 100644 --- a/src/mpi/coll/ineighbor_alltoall/ineighbor_alltoall.c +++ b/src/mpi/coll/ineighbor_alltoall/ineighbor_alltoall.c @@ -57,9 +57,10 @@ */ -int MPIR_Ineighbor_alltoall_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr, MPIR_Request ** request) +int MPIR_Ineighbor_alltoall_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr, + MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; @@ -111,9 +112,9 @@ int MPIR_Ineighbor_alltoall_allcomm_auto(const void *sendbuf, int sendcount, MPI goto fn_exit; } -int MPIR_Ineighbor_alltoall_intra_sched_auto(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_alltoall_intra_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; @@ -130,9 +131,9 @@ int MPIR_Ineighbor_alltoall_intra_sched_auto(const void *sendbuf, int sendcount, goto fn_exit; } -int MPIR_Ineighbor_alltoall_inter_sched_auto(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_alltoall_inter_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; @@ -149,9 +150,9 @@ int MPIR_Ineighbor_alltoall_inter_sched_auto(const void *sendbuf, int sendcount, goto fn_exit; } -int MPIR_Ineighbor_alltoall_sched_auto(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_alltoall_sched_auto(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; @@ -169,9 +170,9 @@ int MPIR_Ineighbor_alltoall_sched_auto(const void *sendbuf, int sendcount, return mpi_errno; } -int MPIR_Ineighbor_alltoall_impl(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_alltoall_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; @@ -248,9 +249,9 @@ int MPIR_Ineighbor_alltoall_impl(const void *sendbuf, int sendcount, goto fn_exit; } -int MPIR_Ineighbor_alltoall(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_alltoall(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/ineighbor_alltoall/ineighbor_alltoall_allcomm_gentran_linear.c b/src/mpi/coll/ineighbor_alltoall/ineighbor_alltoall_allcomm_gentran_linear.c index 0f19ef3662c..e73f1f4af5c 100644 --- a/src/mpi/coll/ineighbor_alltoall/ineighbor_alltoall_allcomm_gentran_linear.c +++ b/src/mpi/coll/ineighbor_alltoall/ineighbor_alltoall_allcomm_gentran_linear.c @@ -10,9 +10,9 @@ #include "ineighbor_alltoall_tsp_linear_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Ineighbor_alltoall_allcomm_gentran_linear(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_alltoall_allcomm_gentran_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/ineighbor_alltoall/ineighbor_alltoall_allcomm_sched_linear.c b/src/mpi/coll/ineighbor_alltoall/ineighbor_alltoall_allcomm_sched_linear.c index 7fc267dd3f0..69f5912913e 100644 --- a/src/mpi/coll/ineighbor_alltoall/ineighbor_alltoall_allcomm_sched_linear.c +++ b/src/mpi/coll/ineighbor_alltoall/ineighbor_alltoall_allcomm_sched_linear.c @@ -12,9 +12,9 @@ * neighbor. */ -int MPIR_Ineighbor_alltoall_allcomm_sched_linear(const void *sendbuf, int sendcount, +int MPIR_Ineighbor_alltoall_allcomm_sched_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/ineighbor_alltoall/ineighbor_alltoall_tsp_linear_algos.h b/src/mpi/coll/ineighbor_alltoall/ineighbor_alltoall_tsp_linear_algos.h index 6503877e393..871416cc1e8 100644 --- a/src/mpi/coll/ineighbor_alltoall/ineighbor_alltoall_tsp_linear_algos.h +++ b/src/mpi/coll/ineighbor_alltoall/ineighbor_alltoall_tsp_linear_algos.h @@ -12,9 +12,9 @@ #include "tsp_namespace_def.h" /* Routine to schedule linear algorithm fir neighbor_alltoall */ -int MPIR_TSP_Ineighbor_alltoall_sched_allcomm_linear(const void *sendbuf, int sendcount, +int MPIR_TSP_Ineighbor_alltoall_sched_allcomm_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_TSP_sched_t * sched) { int mpi_errno = MPI_SUCCESS; @@ -72,9 +72,9 @@ int MPIR_TSP_Ineighbor_alltoall_sched_allcomm_linear(const void *sendbuf, int se /* Non-blocking linear algo based neighbor_allgatherv */ -int MPIR_TSP_Ineighbor_alltoall_allcomm_linear(const void *sendbuf, int sendcount, +int MPIR_TSP_Ineighbor_alltoall_allcomm_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_Request ** req) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/ineighbor_alltoall/ineighbor_alltoall_tsp_linear_algos_prototypes.h b/src/mpi/coll/ineighbor_alltoall/ineighbor_alltoall_tsp_linear_algos_prototypes.h index 847eaf9970a..90b86a3e624 100644 --- a/src/mpi/coll/ineighbor_alltoall/ineighbor_alltoall_tsp_linear_algos_prototypes.h +++ b/src/mpi/coll/ineighbor_alltoall/ineighbor_alltoall_tsp_linear_algos_prototypes.h @@ -14,12 +14,12 @@ #undef MPIR_TSP_Ineighor_alltoall_sched_allcomm_linear #define MPIR_TSP_Ineighbor_alltoall_sched_allcomm_linear MPIR_TSP_NAMESPACE(Ineighbor_alltoall_sched_allcomm_linear) -int MPIR_TSP_Ineighbor_alltoall_sched_allcomm_linear(const void *sendbuf, int sendcount, +int MPIR_TSP_Ineighbor_alltoall_sched_allcomm_linear(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr, MPIR_TSP_sched_t * sched); -int MPIR_TSP_Ineighbor_alltoall_allcomm_linear(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, - MPI_Datatype recvtype, MPIR_Comm * comm_ptr, - MPIR_Request ** req); +int MPIR_TSP_Ineighbor_alltoall_allcomm_linear(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype recvtype, + MPIR_Comm * comm_ptr, MPIR_Request ** req); diff --git a/src/mpi/coll/ireduce/ireduce.c b/src/mpi/coll/ireduce/ireduce.c index f92762c5711..947c63fb8b4 100644 --- a/src/mpi/coll/ireduce/ireduce.c +++ b/src/mpi/coll/ireduce/ireduce.c @@ -118,8 +118,9 @@ */ -int MPIR_Ireduce_allcomm_auto(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request) +int MPIR_Ireduce_allcomm_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, + MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; @@ -199,7 +200,7 @@ int MPIR_Ireduce_allcomm_auto(const void *sendbuf, void *recvbuf, int count, MPI goto fn_exit; } -int MPIR_Ireduce_intra_sched_auto(const void *sendbuf, void *recvbuf, int count, +int MPIR_Ireduce_intra_sched_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { @@ -244,7 +245,7 @@ int MPIR_Ireduce_intra_sched_auto(const void *sendbuf, void *recvbuf, int count, } int MPIR_Ireduce_inter_sched_auto(const void *sendbuf, void *recvbuf, - int count, MPI_Datatype datatype, MPI_Op op, int root, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; @@ -255,8 +256,9 @@ int MPIR_Ireduce_inter_sched_auto(const void *sendbuf, void *recvbuf, return mpi_errno; } -int MPIR_Ireduce_sched_auto(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Ireduce_sched_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, + MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; @@ -271,7 +273,7 @@ int MPIR_Ireduce_sched_auto(const void *sendbuf, void *recvbuf, int count, MPI_D return mpi_errno; } -int MPIR_Ireduce_impl(const void *sendbuf, void *recvbuf, int count, +int MPIR_Ireduce_impl(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request) { @@ -373,7 +375,7 @@ int MPIR_Ireduce_impl(const void *sendbuf, void *recvbuf, int count, goto fn_exit; } -int MPIR_Ireduce(const void *sendbuf, void *recvbuf, int count, +int MPIR_Ireduce(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Request ** request) { diff --git a/src/mpi/coll/ireduce/ireduce_inter_sched_local_reduce_remote_send.c b/src/mpi/coll/ireduce/ireduce_inter_sched_local_reduce_remote_send.c index 74a63bbeb3f..5c90e157455 100644 --- a/src/mpi/coll/ireduce/ireduce_inter_sched_local_reduce_remote_send.c +++ b/src/mpi/coll/ireduce/ireduce_inter_sched_local_reduce_remote_send.c @@ -11,9 +11,10 @@ * 0 then sends data to root. */ -int MPIR_Ireduce_inter_sched_local_reduce_remote_send(const void *sendbuf, void *recvbuf, int count, - MPI_Datatype datatype, MPI_Op op, int root, - MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Ireduce_inter_sched_local_reduce_remote_send(const void *sendbuf, void *recvbuf, + MPI_Aint count, MPI_Datatype datatype, + MPI_Op op, int root, MPIR_Comm * comm_ptr, + MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; int rank; diff --git a/src/mpi/coll/ireduce/ireduce_intra_gentran_ring.c b/src/mpi/coll/ireduce/ireduce_intra_gentran_ring.c index 1b82a5372c6..17fda0be477 100644 --- a/src/mpi/coll/ireduce/ireduce_intra_gentran_ring.c +++ b/src/mpi/coll/ireduce/ireduce_intra_gentran_ring.c @@ -10,7 +10,7 @@ #include "ireduce_tsp_tree_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Ireduce_intra_gentran_ring(const void *sendbuf, void *recvbuf, int count, +int MPIR_Ireduce_intra_gentran_ring(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, int chunk_size, int buffer_per_child, MPIR_Request ** request) diff --git a/src/mpi/coll/ireduce/ireduce_intra_gentran_tree.c b/src/mpi/coll/ireduce/ireduce_intra_gentran_tree.c index 5cbe209cbbd..c6149079512 100644 --- a/src/mpi/coll/ireduce/ireduce_intra_gentran_tree.c +++ b/src/mpi/coll/ireduce/ireduce_intra_gentran_tree.c @@ -10,7 +10,7 @@ #include "ireduce_tsp_tree_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Ireduce_intra_gentran_tree(const void *sendbuf, void *recvbuf, int count, +int MPIR_Ireduce_intra_gentran_tree(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, int tree_type, int k, int chunk_size, int buffer_per_child, MPIR_Request ** request) diff --git a/src/mpi/coll/ireduce/ireduce_intra_sched_binomial.c b/src/mpi/coll/ireduce/ireduce_intra_sched_binomial.c index 5d3ef1562f4..3e847232804 100644 --- a/src/mpi/coll/ireduce/ireduce_intra_sched_binomial.c +++ b/src/mpi/coll/ireduce/ireduce_intra_sched_binomial.c @@ -5,7 +5,7 @@ #include "mpiimpl.h" -int MPIR_Ireduce_intra_sched_binomial(const void *sendbuf, void *recvbuf, int count, +int MPIR_Ireduce_intra_sched_binomial(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { diff --git a/src/mpi/coll/ireduce/ireduce_intra_sched_reduce_scatter_gather.c b/src/mpi/coll/ireduce/ireduce_intra_sched_reduce_scatter_gather.c index dcfd98ba03b..2c6350a2d05 100644 --- a/src/mpi/coll/ireduce/ireduce_intra_sched_reduce_scatter_gather.c +++ b/src/mpi/coll/ireduce/ireduce_intra_sched_reduce_scatter_gather.c @@ -32,9 +32,9 @@ Cost = (2.floor(lgp)+1).alpha + (2.((p-1)/p) + 1).n.beta + n.(1+(p-1)/p).gamma */ -int MPIR_Ireduce_intra_sched_reduce_scatter_gather(const void *sendbuf, void *recvbuf, int count, - MPI_Datatype datatype, MPI_Op op, int root, - MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Ireduce_intra_sched_reduce_scatter_gather(const void *sendbuf, void *recvbuf, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, + int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; int i, j, comm_size, rank, pof2, is_commutative ATTRIBUTE((unused)); diff --git a/src/mpi/coll/ireduce/ireduce_intra_sched_smp.c b/src/mpi/coll/ireduce/ireduce_intra_sched_smp.c index dd152758433..7492f0736a4 100644 --- a/src/mpi/coll/ireduce/ireduce_intra_sched_smp.c +++ b/src/mpi/coll/ireduce/ireduce_intra_sched_smp.c @@ -5,7 +5,7 @@ #include "mpiimpl.h" -int MPIR_Ireduce_intra_sched_smp(const void *sendbuf, void *recvbuf, int count, +int MPIR_Ireduce_intra_sched_smp(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { diff --git a/src/mpi/coll/ireduce/ireduce_tsp_tree_algos.h b/src/mpi/coll/ireduce/ireduce_tsp_tree_algos.h index 510dbf7f64b..07d9f6b2a66 100644 --- a/src/mpi/coll/ireduce/ireduce_tsp_tree_algos.h +++ b/src/mpi/coll/ireduce/ireduce_tsp_tree_algos.h @@ -12,7 +12,7 @@ #include "tsp_namespace_def.h" /* Routine to schedule a pipelined tree based reduce */ -int MPIR_TSP_Ireduce_sched_intra_tree(const void *sendbuf, void *recvbuf, int count, +int MPIR_TSP_Ireduce_sched_intra_tree(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm, int tree_type, int k, int chunk_size, int buffer_per_child, MPIR_TSP_sched_t * sched) @@ -263,7 +263,7 @@ int MPIR_TSP_Ireduce_sched_intra_tree(const void *sendbuf, void *recvbuf, int co /* Non-blocking tree based reduce */ -int MPIR_TSP_Ireduce_intra_tree(const void *sendbuf, void *recvbuf, int count, +int MPIR_TSP_Ireduce_intra_tree(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm, MPIR_Request ** req, int tree_type, int k, int chunk_size, int buffer_per_child) diff --git a/src/mpi/coll/ireduce/ireduce_tsp_tree_algos_prototypes.h b/src/mpi/coll/ireduce/ireduce_tsp_tree_algos_prototypes.h index 99f1458a3b4..a41e0a91f80 100644 --- a/src/mpi/coll/ireduce/ireduce_tsp_tree_algos_prototypes.h +++ b/src/mpi/coll/ireduce/ireduce_tsp_tree_algos_prototypes.h @@ -14,11 +14,11 @@ #undef MPIR_TSP_Ireduce_sched_intra_tree #define MPIR_TSP_Ireduce_sched_intra_tree MPIR_TSP_NAMESPACE(Ireduce_sched_intra_tree) -int MPIR_TSP_Ireduce_sched_intra_tree(const void *sendbuf, void *recvbuf, int count, +int MPIR_TSP_Ireduce_sched_intra_tree(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm, int tree_type, int k, int segsize, int buffer_per_child, MPIR_TSP_sched_t * sched); -int MPIR_TSP_Ireduce_intra_tree(const void *sendbuf, void *recvbuf, int count, +int MPIR_TSP_Ireduce_intra_tree(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm, MPIR_Request ** req, int tree_type, int k, int segsize, int buffer_per_child); diff --git a/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block.c b/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block.c index b9c4cb4bb16..90dc62e6b8d 100644 --- a/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block.c +++ b/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block.c @@ -68,7 +68,7 @@ */ -int MPIR_Ireduce_scatter_block_allcomm_auto(const void *sendbuf, void *recvbuf, int recvcount, +int MPIR_Ireduce_scatter_block_allcomm_auto(const void *sendbuf, void *recvbuf, MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request) { @@ -143,9 +143,9 @@ int MPIR_Ireduce_scatter_block_allcomm_auto(const void *sendbuf, void *recvbuf, goto fn_exit; } -int MPIR_Ireduce_scatter_block_intra_sched_auto(const void *sendbuf, void *recvbuf, int recvcount, - MPI_Datatype datatype, MPI_Op op, - MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Ireduce_scatter_block_intra_sched_auto(const void *sendbuf, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype datatype, + MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; int is_commutative; @@ -198,9 +198,9 @@ int MPIR_Ireduce_scatter_block_intra_sched_auto(const void *sendbuf, void *recvb } -int MPIR_Ireduce_scatter_block_inter_sched_auto(const void *sendbuf, void *recvbuf, int recvcount, - MPI_Datatype datatype, MPI_Op op, - MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Ireduce_scatter_block_inter_sched_auto(const void *sendbuf, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype datatype, + MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; @@ -212,7 +212,7 @@ int MPIR_Ireduce_scatter_block_inter_sched_auto(const void *sendbuf, void *recvb return mpi_errno; } -int MPIR_Ireduce_scatter_block_sched_auto(const void *sendbuf, void *recvbuf, int recvcount, +int MPIR_Ireduce_scatter_block_sched_auto(const void *sendbuf, void *recvbuf, MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { @@ -232,7 +232,7 @@ int MPIR_Ireduce_scatter_block_sched_auto(const void *sendbuf, void *recvbuf, in } int MPIR_Ireduce_scatter_block_impl(const void *sendbuf, void *recvbuf, - int recvcount, MPI_Datatype datatype, + MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; @@ -335,7 +335,7 @@ int MPIR_Ireduce_scatter_block_impl(const void *sendbuf, void *recvbuf, } int MPIR_Ireduce_scatter_block(const void *sendbuf, void *recvbuf, - int recvcount, MPI_Datatype datatype, + MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_inter_sched_remote_reduce_local_scatterv.c b/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_inter_sched_remote_reduce_local_scatterv.c index c49e7d947f5..b00fdb7e20d 100644 --- a/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_inter_sched_remote_reduce_local_scatterv.c +++ b/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_inter_sched_remote_reduce_local_scatterv.c @@ -14,7 +14,7 @@ int MPIR_Ireduce_scatter_block_inter_sched_remote_reduce_local_scatterv(const void *sendbuf, void *recvbuf, - int recvcount, + MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, diff --git a/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_intra_gentran_recexch.c b/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_intra_gentran_recexch.c index f259a837876..7de9fd827f8 100644 --- a/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_intra_gentran_recexch.c +++ b/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_intra_gentran_recexch.c @@ -11,7 +11,7 @@ #include "tsp_undef.h" int MPIR_Ireduce_scatter_block_intra_gentran_recexch(const void *sendbuf, void *recvbuf, - int recvcount, MPI_Datatype datatype, + MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, int k, MPIR_Request ** req) { diff --git a/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_intra_sched_noncommutative.c b/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_intra_sched_noncommutative.c index 104ccc6ce4b..0727039997d 100644 --- a/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_intra_sched_noncommutative.c +++ b/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_intra_sched_noncommutative.c @@ -10,7 +10,7 @@ * from EuroPVM/MPI 2005. This function currently only implements support for * the power-of-2 case. */ int MPIR_Ireduce_scatter_block_intra_sched_noncommutative(const void *sendbuf, void *recvbuf, - int recvcount, MPI_Datatype datatype, + MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { diff --git a/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_intra_sched_pairwise.c b/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_intra_sched_pairwise.c index d2791b4561d..aed023e11bf 100644 --- a/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_intra_sched_pairwise.c +++ b/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_intra_sched_pairwise.c @@ -8,8 +8,8 @@ /* A pairwise exchange algorithm for MPI_Ireduce_scatter_block. Requires a * commutative op and is intended for use with large messages. */ int MPIR_Ireduce_scatter_block_intra_sched_pairwise(const void *sendbuf, void *recvbuf, - int recvcount, MPI_Datatype datatype, MPI_Op op, - MPIR_Comm * comm_ptr, MPIR_Sched_t s) + MPI_Aint recvcount, MPI_Datatype datatype, + MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; int rank, comm_size, i; diff --git a/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_intra_sched_recursive_doubling.c b/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_intra_sched_recursive_doubling.c index 2731a096dca..7a16aa582b1 100644 --- a/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_intra_sched_recursive_doubling.c +++ b/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_intra_sched_recursive_doubling.c @@ -8,9 +8,9 @@ /* A recursive doubling algorithm for MPI_Ireduce_scatter_block, suitable for * noncommutative and (non-pof2 or block irregular). */ int MPIR_Ireduce_scatter_block_intra_sched_recursive_doubling(const void *sendbuf, void *recvbuf, - int recvcount, MPI_Datatype datatype, - MPI_Op op, MPIR_Comm * comm_ptr, - MPIR_Sched_t s) + MPI_Aint recvcount, + MPI_Datatype datatype, MPI_Op op, + MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; int rank, comm_size, i; diff --git a/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_intra_sched_recursive_halving.c b/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_intra_sched_recursive_halving.c index 131638a1273..7aa676b8ec8 100644 --- a/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_intra_sched_recursive_halving.c +++ b/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_intra_sched_recursive_halving.c @@ -8,9 +8,9 @@ /* A recursive halving MPI_Ireduce_scatter_block algorithm. Requires that op is * commutative. Typically yields better performance for shorter messages. */ int MPIR_Ireduce_scatter_block_intra_sched_recursive_halving(const void *sendbuf, void *recvbuf, - int recvcount, MPI_Datatype datatype, - MPI_Op op, MPIR_Comm * comm_ptr, - MPIR_Sched_t s) + MPI_Aint recvcount, + MPI_Datatype datatype, MPI_Op op, + MPIR_Comm * comm_ptr, MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; int rank, comm_size, i; diff --git a/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_tsp_recexch_algos.h b/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_tsp_recexch_algos.h index b64320c4684..c640c4ceeab 100644 --- a/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_tsp_recexch_algos.h +++ b/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_tsp_recexch_algos.h @@ -13,7 +13,7 @@ /* Routine to schedule a recursive exchange based reduce_scatter with distance halving in each phase */ int MPIR_TSP_Ireduce_scatter_block_sched_intra_recexch(const void *sendbuf, void *recvbuf, - int recvcount, MPI_Datatype datatype, + MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, int k, MPIR_TSP_sched_t * sched) { @@ -200,9 +200,10 @@ int MPIR_TSP_Ireduce_scatter_block_sched_intra_recexch(const void *sendbuf, void /* Non-blocking recexch based REDUCE_SCATTER_BLOCK */ -int MPIR_TSP_Ireduce_scatter_block_intra_recexch(const void *sendbuf, void *recvbuf, int recvcount, - MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, - MPIR_Request ** req, int k) +int MPIR_TSP_Ireduce_scatter_block_intra_recexch(const void *sendbuf, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype datatype, + MPI_Op op, MPIR_Comm * comm, MPIR_Request ** req, + int k) { int mpi_errno = MPI_SUCCESS; MPIR_TSP_sched_t *sched; diff --git a/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_tsp_recexch_algos_prototypes.h b/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_tsp_recexch_algos_prototypes.h index 22410124e0c..28eb801471d 100644 --- a/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_tsp_recexch_algos_prototypes.h +++ b/src/mpi/coll/ireduce_scatter_block/ireduce_scatter_block_tsp_recexch_algos_prototypes.h @@ -15,10 +15,11 @@ #define MPIR_TSP_Ireduce_scatter_block_sched_intra_recexch MPIR_TSP_NAMESPACE(Ireduce_scatter_block_sched_intra_recexch) int MPIR_TSP_Ireduce_scatter_block_sched_intra_recexch(const void *sendbuf, void *recvbuf, - int recvcount, MPI_Datatype datatype, + MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, int k, MPIR_TSP_sched_t * sched); -int MPIR_TSP_Ireduce_scatter_block_intra_recexch(const void *sendbuf, void *recvbuf, int recvcount, - MPI_Datatype datatype, MPI_Op op, - MPIR_Comm * comm, MPIR_Request ** req, int k); +int MPIR_TSP_Ireduce_scatter_block_intra_recexch(const void *sendbuf, void *recvbuf, + MPI_Aint recvcount, MPI_Datatype datatype, + MPI_Op op, MPIR_Comm * comm, MPIR_Request ** req, + int k); diff --git a/src/mpi/coll/iscan/iscan.c b/src/mpi/coll/iscan/iscan.c index 0835fec4b91..7372e5e8030 100644 --- a/src/mpi/coll/iscan/iscan.c +++ b/src/mpi/coll/iscan/iscan.c @@ -43,8 +43,9 @@ */ -int MPIR_Iscan_allcomm_auto(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request) +int MPIR_Iscan_allcomm_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, + MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; @@ -94,7 +95,7 @@ int MPIR_Iscan_allcomm_auto(const void *sendbuf, void *recvbuf, int count, MPI_D goto fn_exit; } -int MPIR_Iscan_intra_sched_auto(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iscan_intra_sched_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { @@ -111,7 +112,7 @@ int MPIR_Iscan_intra_sched_auto(const void *sendbuf, void *recvbuf, int count, return mpi_errno; } -int MPIR_Iscan_impl(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iscan_impl(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; @@ -162,7 +163,7 @@ int MPIR_Iscan_impl(const void *sendbuf, void *recvbuf, int count, goto fn_exit; } -int MPIR_Iscan(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iscan(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** request) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/iscan/iscan_intra_gentran_recursive_doubling.c b/src/mpi/coll/iscan/iscan_intra_gentran_recursive_doubling.c index 7f73b919c4c..97174d6e6c9 100644 --- a/src/mpi/coll/iscan/iscan_intra_gentran_recursive_doubling.c +++ b/src/mpi/coll/iscan/iscan_intra_gentran_recursive_doubling.c @@ -10,7 +10,7 @@ #include "iscan_tsp_recursive_doubling_algos_prototypes.h" #include "tsp_undef.h" -int MPIR_Iscan_intra_gentran_recursive_doubling(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iscan_intra_gentran_recursive_doubling(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, MPIR_Request ** req) { diff --git a/src/mpi/coll/iscan/iscan_intra_sched_recursive_doubling.c b/src/mpi/coll/iscan/iscan_intra_sched_recursive_doubling.c index a0c56ae3b22..dcbe305590b 100644 --- a/src/mpi/coll/iscan/iscan_intra_sched_recursive_doubling.c +++ b/src/mpi/coll/iscan/iscan_intra_sched_recursive_doubling.c @@ -5,7 +5,7 @@ #include "mpiimpl.h" -int MPIR_Iscan_intra_sched_recursive_doubling(const void *sendbuf, void *recvbuf, int count, +int MPIR_Iscan_intra_sched_recursive_doubling(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s) { diff --git a/src/mpi/coll/iscan/iscan_intra_sched_smp.c b/src/mpi/coll/iscan/iscan_intra_sched_smp.c index 9a05cdaced4..f1c84cdcc7a 100644 --- a/src/mpi/coll/iscan/iscan_intra_sched_smp.c +++ b/src/mpi/coll/iscan/iscan_intra_sched_smp.c @@ -6,8 +6,9 @@ #include "mpiimpl.h" -int MPIR_Iscan_intra_sched_smp(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Sched_t s) +int MPIR_Iscan_intra_sched_smp(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, + MPIR_Sched_t s) { int mpi_errno = MPI_SUCCESS; int rank = comm_ptr->rank; diff --git a/src/mpi/coll/iscan/iscan_tsp_recursive_doubling_algos.h b/src/mpi/coll/iscan/iscan_tsp_recursive_doubling_algos.h index 38ca490283e..edc9b973e92 100644 --- a/src/mpi/coll/iscan/iscan_tsp_recursive_doubling_algos.h +++ b/src/mpi/coll/iscan/iscan_tsp_recursive_doubling_algos.h @@ -11,8 +11,8 @@ #include "tsp_namespace_def.h" /* Routine to schedule a recursive exchange based scan */ -int MPIR_TSP_Iscan_sched_intra_recursive_doubling(const void *sendbuf, void *recvbuf, int count, - MPI_Datatype datatype, MPI_Op op, +int MPIR_TSP_Iscan_sched_intra_recursive_doubling(const void *sendbuf, void *recvbuf, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, MPIR_TSP_sched_t * sched) { int mpi_errno = MPI_SUCCESS; @@ -123,7 +123,7 @@ int MPIR_TSP_Iscan_sched_intra_recursive_doubling(const void *sendbuf, void *rec /* Non-blocking recursive_doubling based SCAN */ -int MPIR_TSP_Iscan_intra_recursive_doubling(const void *sendbuf, void *recvbuf, int count, +int MPIR_TSP_Iscan_intra_recursive_doubling(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm, MPIR_Request ** req) { diff --git a/src/mpi/coll/iscan/iscan_tsp_recursive_doubling_algos_prototypes.h b/src/mpi/coll/iscan/iscan_tsp_recursive_doubling_algos_prototypes.h index 7a6915628cd..3b9897208f9 100644 --- a/src/mpi/coll/iscan/iscan_tsp_recursive_doubling_algos_prototypes.h +++ b/src/mpi/coll/iscan/iscan_tsp_recursive_doubling_algos_prototypes.h @@ -14,10 +14,10 @@ #undef MPIR_TSP_Iscan_sched_intra_recursive_doubling #define MPIR_TSP_Iscan_sched_intra_recursive_doubling MPIR_TSP_NAMESPACE(Iscan_sched_intra_recursive_doubling) -int MPIR_TSP_Iscan_sched_intra_recursive_doubling(const void *sendbuf, void *recvbuf, int count, - MPI_Datatype datatype, MPI_Op op, +int MPIR_TSP_Iscan_sched_intra_recursive_doubling(const void *sendbuf, void *recvbuf, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_TSP_sched_t * s); -int MPIR_TSP_Iscan_intra_recursive_doubling(const void *sendbuf, void *recvbuf, int count, +int MPIR_TSP_Iscan_intra_recursive_doubling(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Request ** req); diff --git a/src/mpi/coll/neighbor_allgather/neighbor_allgather.c b/src/mpi/coll/neighbor_allgather/neighbor_allgather.c index 1339460b6ba..c3165b0e077 100644 --- a/src/mpi/coll/neighbor_allgather/neighbor_allgather.c +++ b/src/mpi/coll/neighbor_allgather/neighbor_allgather.c @@ -54,9 +54,9 @@ /* any non-MPI functions go here, especially non-static ones */ -int MPIR_Neighbor_allgather_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr) +int MPIR_Neighbor_allgather_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr) { int mpi_errno = MPI_SUCCESS; @@ -89,9 +89,9 @@ int MPIR_Neighbor_allgather_allcomm_auto(const void *sendbuf, int sendcount, MPI return mpi_errno; } -int MPIR_Neighbor_allgather_impl(const void *sendbuf, int sendcount, +int MPIR_Neighbor_allgather_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr) + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr) { int mpi_errno = MPI_SUCCESS; @@ -134,9 +134,9 @@ int MPIR_Neighbor_allgather_impl(const void *sendbuf, int sendcount, goto fn_exit; } -int MPIR_Neighbor_allgather(const void *sendbuf, int sendcount, +int MPIR_Neighbor_allgather(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr) + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/neighbor_allgather/neighbor_allgather_allcomm_nb.c b/src/mpi/coll/neighbor_allgather/neighbor_allgather_allcomm_nb.c index a7ff9826f32..b4903e5f8e1 100644 --- a/src/mpi/coll/neighbor_allgather/neighbor_allgather_allcomm_nb.c +++ b/src/mpi/coll/neighbor_allgather/neighbor_allgather_allcomm_nb.c @@ -5,9 +5,9 @@ #include "mpiimpl.h" -int MPIR_Neighbor_allgather_allcomm_nb(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr) +int MPIR_Neighbor_allgather_allcomm_nb(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr) { int mpi_errno = MPI_SUCCESS; MPI_Request req = MPI_REQUEST_NULL; diff --git a/src/mpi/coll/neighbor_allgatherv/neighbor_allgatherv.c b/src/mpi/coll/neighbor_allgatherv/neighbor_allgatherv.c index 01c9285c59e..13d3c47a809 100644 --- a/src/mpi/coll/neighbor_allgatherv/neighbor_allgatherv.c +++ b/src/mpi/coll/neighbor_allgatherv/neighbor_allgatherv.c @@ -54,8 +54,9 @@ /* any non-MPI functions go here, especially non-static ones */ -int MPIR_Neighbor_allgatherv_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int recvcounts[], const int displs[], +int MPIR_Neighbor_allgatherv_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr) { int mpi_errno = MPI_SUCCESS; @@ -90,7 +91,7 @@ int MPIR_Neighbor_allgatherv_allcomm_auto(const void *sendbuf, int sendcount, MP return mpi_errno; } -int MPIR_Neighbor_allgatherv_impl(const void *sendbuf, int sendcount, +int MPIR_Neighbor_allgatherv_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr) @@ -136,7 +137,7 @@ int MPIR_Neighbor_allgatherv_impl(const void *sendbuf, int sendcount, goto fn_exit; } -int MPIR_Neighbor_allgatherv(const void *sendbuf, int sendcount, +int MPIR_Neighbor_allgatherv(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr) diff --git a/src/mpi/coll/neighbor_allgatherv/neighbor_allgatherv_allcomm_nb.c b/src/mpi/coll/neighbor_allgatherv/neighbor_allgatherv_allcomm_nb.c index c8a76c0b4b1..ca6aa56962d 100644 --- a/src/mpi/coll/neighbor_allgatherv/neighbor_allgatherv_allcomm_nb.c +++ b/src/mpi/coll/neighbor_allgatherv/neighbor_allgatherv_allcomm_nb.c @@ -5,8 +5,9 @@ #include "mpiimpl.h" -int MPIR_Neighbor_allgatherv_allcomm_nb(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, const int recvcounts[], const int displs[], +int MPIR_Neighbor_allgatherv_allcomm_nb(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, + const int recvcounts[], const int displs[], MPI_Datatype recvtype, MPIR_Comm * comm_ptr) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/neighbor_alltoall/neighbor_alltoall.c b/src/mpi/coll/neighbor_alltoall/neighbor_alltoall.c index 130d846809f..e7cc8cd194d 100644 --- a/src/mpi/coll/neighbor_alltoall/neighbor_alltoall.c +++ b/src/mpi/coll/neighbor_alltoall/neighbor_alltoall.c @@ -54,9 +54,9 @@ /* any non-MPI functions go here, especially non-static ones */ -int MPIR_Neighbor_alltoall_allcomm_auto(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr) +int MPIR_Neighbor_alltoall_allcomm_auto(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr) { int mpi_errno = MPI_SUCCESS; @@ -89,9 +89,9 @@ int MPIR_Neighbor_alltoall_allcomm_auto(const void *sendbuf, int sendcount, MPI_ return mpi_errno; } -int MPIR_Neighbor_alltoall_impl(const void *sendbuf, int sendcount, +int MPIR_Neighbor_alltoall_impl(const void *sendbuf, MPI_Aint sendcount, MPI_Datatype sendtype, void *recvbuf, - int recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr) + MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr) { int mpi_errno = MPI_SUCCESS; @@ -134,8 +134,8 @@ int MPIR_Neighbor_alltoall_impl(const void *sendbuf, int sendcount, goto fn_exit; } -int MPIR_Neighbor_alltoall(const void *sendbuf, int sendcount, - MPI_Datatype sendtype, void *recvbuf, int recvcount, +int MPIR_Neighbor_alltoall(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, MPI_Datatype recvtype, MPIR_Comm * comm_ptr) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/neighbor_alltoall/neighbor_alltoall_allcomm_nb.c b/src/mpi/coll/neighbor_alltoall/neighbor_alltoall_allcomm_nb.c index bf2419f655d..cbcbb6618d7 100644 --- a/src/mpi/coll/neighbor_alltoall/neighbor_alltoall_allcomm_nb.c +++ b/src/mpi/coll/neighbor_alltoall/neighbor_alltoall_allcomm_nb.c @@ -5,9 +5,9 @@ #include "mpiimpl.h" -int MPIR_Neighbor_alltoall_allcomm_nb(const void *sendbuf, int sendcount, MPI_Datatype sendtype, - void *recvbuf, int recvcount, MPI_Datatype recvtype, - MPIR_Comm * comm_ptr) +int MPIR_Neighbor_alltoall_allcomm_nb(const void *sendbuf, MPI_Aint sendcount, + MPI_Datatype sendtype, void *recvbuf, MPI_Aint recvcount, + MPI_Datatype recvtype, MPIR_Comm * comm_ptr) { int mpi_errno = MPI_SUCCESS; MPI_Request req = MPI_REQUEST_NULL; diff --git a/src/mpi/coll/reduce/reduce.c b/src/mpi/coll/reduce/reduce.c index 57e215ac90b..15ec0ee127c 100644 --- a/src/mpi/coll/reduce/reduce.c +++ b/src/mpi/coll/reduce/reduce.c @@ -134,8 +134,9 @@ -int MPIR_Reduce_allcomm_auto(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) +int MPIR_Reduce_allcomm_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, + MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; @@ -192,7 +193,7 @@ int MPIR_Reduce_allcomm_auto(const void *sendbuf, void *recvbuf, int count, MPI_ return mpi_errno; } -int MPIR_Reduce_impl(const void *sendbuf, void *recvbuf, int count, +int MPIR_Reduce_impl(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { @@ -255,7 +256,7 @@ int MPIR_Reduce_impl(const void *sendbuf, void *recvbuf, int count, goto fn_exit; } -int MPIR_Reduce(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, +int MPIR_Reduce(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/reduce/reduce_allcomm_nb.c b/src/mpi/coll/reduce/reduce_allcomm_nb.c index 500f7d3b810..27935be2096 100644 --- a/src/mpi/coll/reduce/reduce_allcomm_nb.c +++ b/src/mpi/coll/reduce/reduce_allcomm_nb.c @@ -5,8 +5,9 @@ #include "mpiimpl.h" -int MPIR_Reduce_allcomm_nb(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) +int MPIR_Reduce_allcomm_nb(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, + MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; MPI_Request req = MPI_REQUEST_NULL; diff --git a/src/mpi/coll/reduce/reduce_inter_local_reduce_remote_send.c b/src/mpi/coll/reduce/reduce_inter_local_reduce_remote_send.c index afcc2486ef6..2348b074502 100644 --- a/src/mpi/coll/reduce/reduce_inter_local_reduce_remote_send.c +++ b/src/mpi/coll/reduce/reduce_inter_local_reduce_remote_send.c @@ -15,7 +15,7 @@ int MPIR_Reduce_inter_local_reduce_remote_send(const void *sendbuf, void *recvbuf, - int count, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, diff --git a/src/mpi/coll/reduce/reduce_intra_binomial.c b/src/mpi/coll/reduce/reduce_intra_binomial.c index 519fd7688e6..8b816c63f0f 100644 --- a/src/mpi/coll/reduce/reduce_intra_binomial.c +++ b/src/mpi/coll/reduce/reduce_intra_binomial.c @@ -11,7 +11,7 @@ */ int MPIR_Reduce_intra_binomial(const void *sendbuf, void *recvbuf, - int count, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { diff --git a/src/mpi/coll/reduce/reduce_intra_reduce_scatter_gather.c b/src/mpi/coll/reduce/reduce_intra_reduce_scatter_gather.c index e6285e5d7e5..21a8c7c8e4e 100644 --- a/src/mpi/coll/reduce/reduce_intra_reduce_scatter_gather.c +++ b/src/mpi/coll/reduce/reduce_intra_reduce_scatter_gather.c @@ -34,7 +34,7 @@ */ int MPIR_Reduce_intra_reduce_scatter_gather(const void *sendbuf, void *recvbuf, - int count, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, diff --git a/src/mpi/coll/reduce/reduce_intra_smp.c b/src/mpi/coll/reduce/reduce_intra_smp.c index bacf438823d..fadad18d421 100644 --- a/src/mpi/coll/reduce/reduce_intra_smp.c +++ b/src/mpi/coll/reduce/reduce_intra_smp.c @@ -5,7 +5,7 @@ #include "mpiimpl.h" -int MPIR_Reduce_intra_smp(const void *sendbuf, void *recvbuf, int count, +int MPIR_Reduce_intra_smp(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, int root, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { diff --git a/src/mpi/coll/reduce_local/reduce_local.c b/src/mpi/coll/reduce_local/reduce_local.c index 7800373a8be..f9033ff8561 100644 --- a/src/mpi/coll/reduce_local/reduce_local.c +++ b/src/mpi/coll/reduce_local/reduce_local.c @@ -8,7 +8,7 @@ /* any utility functions should go here, usually prefixed with PMPI_LOCAL to * correctly handle weak symbols and the profiling interface */ -int MPIR_Reduce_local(const void *inbuf, void *inoutbuf, int count, MPI_Datatype datatype, +int MPIR_Reduce_local(const void *inbuf, void *inoutbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/reduce_scatter_block/reduce_scatter_block.c b/src/mpi/coll/reduce_scatter_block/reduce_scatter_block.c index 350d6a48f99..275811563ab 100644 --- a/src/mpi/coll/reduce_scatter_block/reduce_scatter_block.c +++ b/src/mpi/coll/reduce_scatter_block/reduce_scatter_block.c @@ -67,7 +67,7 @@ */ -int MPIR_Reduce_scatter_block_allcomm_auto(const void *sendbuf, void *recvbuf, int recvcount, +int MPIR_Reduce_scatter_block_allcomm_auto(const void *sendbuf, void *recvbuf, MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { @@ -136,7 +136,7 @@ int MPIR_Reduce_scatter_block_allcomm_auto(const void *sendbuf, void *recvbuf, i } int MPIR_Reduce_scatter_block_impl(const void *sendbuf, void *recvbuf, - int recvcount, MPI_Datatype datatype, + MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; @@ -211,7 +211,7 @@ int MPIR_Reduce_scatter_block_impl(const void *sendbuf, void *recvbuf, } int MPIR_Reduce_scatter_block(const void *sendbuf, void *recvbuf, - int recvcount, MPI_Datatype datatype, + MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_allcomm_nb.c b/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_allcomm_nb.c index 2de74669ea4..d6e04e9d3f7 100644 --- a/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_allcomm_nb.c +++ b/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_allcomm_nb.c @@ -5,7 +5,7 @@ #include "mpiimpl.h" -int MPIR_Reduce_scatter_block_allcomm_nb(const void *sendbuf, void *recvbuf, int recvcount, +int MPIR_Reduce_scatter_block_allcomm_nb(const void *sendbuf, void *recvbuf, MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { diff --git a/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_inter_remote_reduce_local_scatter.c b/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_inter_remote_reduce_local_scatter.c index f23e12eef03..37ddda3e1cd 100644 --- a/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_inter_remote_reduce_local_scatter.c +++ b/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_inter_remote_reduce_local_scatter.c @@ -14,7 +14,7 @@ int MPIR_Reduce_scatter_block_inter_remote_reduce_local_scatter(const void *sendbuf, void *recvbuf, - int recvcount, + MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, diff --git a/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_intra_noncommutative.c b/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_intra_noncommutative.c index da76cdc15b5..72fa67290be 100644 --- a/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_intra_noncommutative.c +++ b/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_intra_noncommutative.c @@ -22,7 +22,7 @@ int MPIR_Reduce_scatter_block_intra_noncommutative(const void *sendbuf, void *recvbuf, - int recvcount, + MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) diff --git a/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_intra_pairwise.c b/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_intra_pairwise.c index 8c44a323659..9d95a30b911 100644 --- a/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_intra_pairwise.c +++ b/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_intra_pairwise.c @@ -22,7 +22,7 @@ */ int MPIR_Reduce_scatter_block_intra_pairwise(const void *sendbuf, void *recvbuf, - int recvcount, + MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) diff --git a/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_intra_recursive_doubling.c b/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_intra_recursive_doubling.c index c037bd8d37c..358048e7a72 100644 --- a/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_intra_recursive_doubling.c +++ b/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_intra_recursive_doubling.c @@ -22,7 +22,7 @@ */ int MPIR_Reduce_scatter_block_intra_recursive_doubling(const void *sendbuf, void *recvbuf, - int recvcount, + MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, diff --git a/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_intra_recursive_halving.c b/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_intra_recursive_halving.c index 91c25e7cc7e..9142fddfda8 100644 --- a/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_intra_recursive_halving.c +++ b/src/mpi/coll/reduce_scatter_block/reduce_scatter_block_intra_recursive_halving.c @@ -37,7 +37,7 @@ */ int MPIR_Reduce_scatter_block_intra_recursive_halving(const void *sendbuf, void *recvbuf, - int recvcount, + MPI_Aint recvcount, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, diff --git a/src/mpi/coll/scan/scan.c b/src/mpi/coll/scan/scan.c index cbf014b171e..6114b4eb38d 100644 --- a/src/mpi/coll/scan/scan.c +++ b/src/mpi/coll/scan/scan.c @@ -42,8 +42,9 @@ */ -int MPIR_Scan_allcomm_auto(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, - MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) +int MPIR_Scan_allcomm_auto(const void *sendbuf, void *recvbuf, MPI_Aint count, + MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, + MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; @@ -85,7 +86,7 @@ int MPIR_Scan_allcomm_auto(const void *sendbuf, void *recvbuf, int count, MPI_Da return mpi_errno; } -int MPIR_Scan_impl(const void *sendbuf, void *recvbuf, int count, +int MPIR_Scan_impl(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; @@ -120,7 +121,7 @@ int MPIR_Scan_impl(const void *sendbuf, void *recvbuf, int count, goto fn_exit; } -int MPIR_Scan(const void *sendbuf, void *recvbuf, int count, +int MPIR_Scan(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/scan/scan_allcomm_nb.c b/src/mpi/coll/scan/scan_allcomm_nb.c index b48d15db455..655fa15e296 100644 --- a/src/mpi/coll/scan/scan_allcomm_nb.c +++ b/src/mpi/coll/scan/scan_allcomm_nb.c @@ -5,7 +5,7 @@ #include "mpiimpl.h" -int MPIR_Scan_allcomm_nb(const void *sendbuf, void *recvbuf, int count, MPI_Datatype datatype, +int MPIR_Scan_allcomm_nb(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { int mpi_errno = MPI_SUCCESS; diff --git a/src/mpi/coll/scan/scan_intra_recursive_doubling.c b/src/mpi/coll/scan/scan_intra_recursive_doubling.c index ace6270117d..8ebc9ee31b2 100644 --- a/src/mpi/coll/scan/scan_intra_recursive_doubling.c +++ b/src/mpi/coll/scan/scan_intra_recursive_doubling.c @@ -42,7 +42,7 @@ int MPIR_Scan_intra_recursive_doubling(const void *sendbuf, void *recvbuf, - int count, + MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) { diff --git a/src/mpi/coll/scan/scan_intra_smp.c b/src/mpi/coll/scan/scan_intra_smp.c index b4b2092c41f..0387a6f4b59 100644 --- a/src/mpi/coll/scan/scan_intra_smp.c +++ b/src/mpi/coll/scan/scan_intra_smp.c @@ -6,7 +6,7 @@ #include "mpiimpl.h" -int MPIR_Scan_intra_smp(const void *sendbuf, void *recvbuf, int count, +int MPIR_Scan_intra_smp(const void *sendbuf, void *recvbuf, MPI_Aint count, MPI_Datatype datatype, MPI_Op op, MPIR_Comm * comm_ptr, MPIR_Errflag_t * errflag) {