smpi_bench_end();
#ifdef HAVE_TRACING
- int rank = comm != MPI_COMM_NULL ? smpi_comm_rank(comm) : -1;
- int src_traced = smpi_group_rank(smpi_comm_group(comm), src);
+ int rank = comm != MPI_COMM_NULL ? smpi_process_index() : -1;
+ int src_traced = smpi_group_index(smpi_comm_group(comm), src);
TRACE_smpi_ptp_in(rank, src_traced, rank, __FUNCTION__);
#endif
if (request == NULL) {
smpi_bench_end();
#ifdef HAVE_TRACING
- int rank = comm != MPI_COMM_NULL ? smpi_comm_rank(comm) : -1;
+ int rank = comm != MPI_COMM_NULL ? smpi_process_index() : -1;
TRACE_smpi_computing_out(rank);
- int dst_traced = smpi_group_rank(smpi_comm_group(comm), dst);
+ int dst_traced = smpi_group_index(smpi_comm_group(comm), dst);
TRACE_smpi_ptp_in(rank, rank, dst_traced, __FUNCTION__);
TRACE_smpi_send(rank, rank, dst_traced);
#endif
smpi_bench_end();
#ifdef HAVE_TRACING
- int rank = comm != MPI_COMM_NULL ? smpi_comm_rank(comm) : -1;
- int src_traced = smpi_group_rank(smpi_comm_group(comm), src);
+ int rank = comm != MPI_COMM_NULL ? smpi_process_index() : -1;
+ int src_traced = smpi_group_index(smpi_comm_group(comm), src);
TRACE_smpi_computing_out(rank);
TRACE_smpi_ptp_in(rank, src_traced, rank, __FUNCTION__);
}
#ifdef HAVE_TRACING
//the src may not have been known at the beginning of the recv (MPI_ANY_SOURCE)
- if(status!=MPI_STATUS_IGNORE)src_traced = smpi_group_rank(smpi_comm_group(comm), status->MPI_SOURCE);
+ if(status!=MPI_STATUS_IGNORE)src_traced = smpi_group_index(smpi_comm_group(comm), status->MPI_SOURCE);
TRACE_smpi_ptp_out(rank, src_traced, rank, __FUNCTION__);
TRACE_smpi_recv(rank, src_traced, rank);
TRACE_smpi_computing_in(rank);
smpi_bench_end();
#ifdef HAVE_TRACING
- int rank = comm != MPI_COMM_NULL ? smpi_comm_rank(comm) : -1;
+ int rank = comm != MPI_COMM_NULL ? smpi_process_index() : -1;
TRACE_smpi_computing_out(rank);
- int dst_traced = smpi_group_rank(smpi_comm_group(comm), dst);
+ int dst_traced = smpi_group_index(smpi_comm_group(comm), dst);
TRACE_smpi_ptp_in(rank, rank, dst_traced, __FUNCTION__);
TRACE_smpi_send(rank, rank, dst_traced);
#endif
smpi_bench_end();
#ifdef HAVE_TRACING
- int rank = comm != MPI_COMM_NULL ? smpi_comm_rank(comm) : -1;
+ int rank = comm != MPI_COMM_NULL ? smpi_process_index() : -1;
TRACE_smpi_computing_out(rank);
- int dst_traced = smpi_group_rank(smpi_comm_group(comm), dst);
- int src_traced = smpi_group_rank(smpi_comm_group(comm), src);
+ int dst_traced = smpi_group_index(smpi_comm_group(comm), dst);
+ int src_traced = smpi_group_index(smpi_comm_group(comm), src);
TRACE_smpi_ptp_in(rank, src_traced, dst_traced, __FUNCTION__);
TRACE_smpi_send(rank, rank, dst_traced);
TRACE_smpi_send(rank, src_traced, rank);
int retval;
smpi_bench_end();
- if (request == NULL || flag == NULL) {
+ if (request == MPI_REQUEST_NULL || flag == NULL) {
retval = MPI_ERR_ARG;
} else if (*request == MPI_REQUEST_NULL) {
retval = MPI_ERR_REQUEST;
smpi_bench_end();
#ifdef HAVE_TRACING
int rank = request && (*request)->comm != MPI_COMM_NULL
- ? smpi_comm_rank((*request)->comm)
+ ? smpi_process_argc()
: -1;
TRACE_smpi_computing_out(rank);
MPI_Group group = smpi_comm_group((*request)->comm);
- int src_traced = smpi_group_rank(group, (*request)->src);
- int dst_traced = smpi_group_rank(group, (*request)->dst);
+ int src_traced = smpi_group_index(group, (*request)->src);
+ int dst_traced = smpi_group_index(group, (*request)->dst);
int is_wait_for_receive = (*request)->recv;
TRACE_smpi_ptp_in(rank, src_traced, dst_traced, __FUNCTION__);
#endif
xbt_free(t);
}
}
- int rank_traced = smpi_comm_rank(MPI_COMM_WORLD);
+ int rank_traced = smpi_process_index();
TRACE_smpi_computing_out(rank_traced);
TRACE_smpi_ptp_in(rank_traced, -1, -1, __FUNCTION__);
xbt_free(adst);
xbt_free(arecv);
}
- int rank_traced = smpi_comm_rank (MPI_COMM_WORLD);
+ int rank_traced = smpi_process_index();
TRACE_smpi_computing_out(rank_traced);
TRACE_smpi_ptp_in(rank_traced, -1, -1, __FUNCTION__);
smpi_bench_end();
#ifdef HAVE_TRACING
- int rank = comm != MPI_COMM_NULL ? smpi_comm_rank(comm) : -1;
+ int rank = comm != MPI_COMM_NULL ? smpi_process_index() : -1;
TRACE_smpi_computing_out(rank);
- int root_traced = smpi_group_rank(smpi_comm_group(comm), root);
+ int root_traced = smpi_group_index(smpi_comm_group(comm), root);
TRACE_smpi_collective_in(rank, root_traced, __FUNCTION__);
#endif
if (comm == MPI_COMM_NULL) {
smpi_bench_end();
#ifdef HAVE_TRACING
- int rank = comm != MPI_COMM_NULL ? smpi_comm_rank(comm) : -1;
+ int rank = comm != MPI_COMM_NULL ? smpi_process_index() : -1;
TRACE_smpi_computing_out(rank);
TRACE_smpi_collective_in(rank, -1, __FUNCTION__);
#endif
smpi_bench_end();
#ifdef HAVE_TRACING
- int rank = comm != MPI_COMM_NULL ? smpi_comm_rank(comm) : -1;
+ int rank = comm != MPI_COMM_NULL ? smpi_process_index() : -1;
TRACE_smpi_computing_out(rank);
- int root_traced = smpi_group_rank(smpi_comm_group(comm), root);
+ int root_traced = smpi_group_index(smpi_comm_group(comm), root);
TRACE_smpi_collective_in(rank, root_traced, __FUNCTION__);
#endif
if (comm == MPI_COMM_NULL) {
smpi_bench_end();
#ifdef HAVE_TRACING
- int rank = comm != MPI_COMM_NULL ? smpi_comm_rank(comm) : -1;
+ int rank = comm != MPI_COMM_NULL ? smpi_process_index() : -1;
TRACE_smpi_computing_out(rank);
- int root_traced = smpi_group_rank(smpi_comm_group(comm), root);
+ int root_traced = smpi_group_index(smpi_comm_group(comm), root);
TRACE_smpi_collective_in(rank, root_traced, __FUNCTION__);
#endif
if (comm == MPI_COMM_NULL) {
smpi_bench_end();
#ifdef HAVE_TRACING
- int rank = comm != MPI_COMM_NULL ? smpi_comm_rank(comm) : -1;
+ int rank = comm != MPI_COMM_NULL ? smpi_process_index() : -1;
TRACE_smpi_computing_out(rank);
TRACE_smpi_collective_in(rank, -1, __FUNCTION__);
#endif
smpi_bench_end();
#ifdef HAVE_TRACING
- int rank = comm != MPI_COMM_NULL ? smpi_comm_rank(comm) : -1;
+ int rank = comm != MPI_COMM_NULL ? smpi_process_index() : -1;
TRACE_smpi_computing_out(rank);
TRACE_smpi_collective_in(rank, -1, __FUNCTION__);
#endif
smpi_bench_end();
#ifdef HAVE_TRACING
- int rank = comm != MPI_COMM_NULL ? smpi_comm_rank(comm) : -1;
+ int rank = comm != MPI_COMM_NULL ? smpi_process_index() : -1;
TRACE_smpi_computing_out(rank);
- int root_traced = smpi_group_rank(smpi_comm_group(comm), root);
+ int root_traced = smpi_group_index(smpi_comm_group(comm), root);
+
TRACE_smpi_collective_in(rank, root_traced, __FUNCTION__);
#endif
if (comm == MPI_COMM_NULL) {
smpi_bench_end();
#ifdef HAVE_TRACING
- int rank = comm != MPI_COMM_NULL ? smpi_comm_rank(comm) : -1;
+ int rank = comm != MPI_COMM_NULL ? smpi_process_index() : -1;
TRACE_smpi_computing_out(rank);
- int root_traced = smpi_group_rank(smpi_comm_group(comm), root);
+ int root_traced = smpi_group_index(smpi_comm_group(comm), root);
TRACE_smpi_collective_in(rank, root_traced, __FUNCTION__);
#endif
if (comm == MPI_COMM_NULL) {
smpi_bench_end();
#ifdef HAVE_TRACING
- int rank = comm != MPI_COMM_NULL ? smpi_comm_rank(comm) : -1;
+ int rank = comm != MPI_COMM_NULL ? smpi_process_index() : -1;
TRACE_smpi_computing_out(rank);
- int root_traced = smpi_group_rank(smpi_comm_group(comm), root);
+ int root_traced = smpi_group_index(smpi_comm_group(comm), root);
TRACE_smpi_collective_in(rank, root_traced, __FUNCTION__);
#endif
if (comm == MPI_COMM_NULL) {
smpi_bench_end();
#ifdef HAVE_TRACING
- int rank = comm != MPI_COMM_NULL ? smpi_comm_rank(comm) : -1;
+ int rank = comm != MPI_COMM_NULL ? smpi_process_index() : -1;
TRACE_smpi_computing_out(rank);
TRACE_smpi_collective_in(rank, -1, __FUNCTION__);
#endif
smpi_bench_end();
#ifdef HAVE_TRACING
- int rank = comm != MPI_COMM_NULL ? smpi_comm_rank(comm) : -1;
+ int rank = comm != MPI_COMM_NULL ? smpi_process_index() : -1;
TRACE_smpi_computing_out(rank);
TRACE_smpi_collective_in(rank, -1, __FUNCTION__);
#endif
{
int retval, i, size, count;
int *displs;
- int rank = comm != MPI_COMM_NULL ? smpi_comm_rank(comm) : -1;
+ int rank = comm != MPI_COMM_NULL ? smpi_process_index() : -1;
smpi_bench_end();
#ifdef HAVE_TRACING
smpi_bench_end();
#ifdef HAVE_TRACING
- int rank = comm != MPI_COMM_NULL ? smpi_comm_rank(comm) : -1;
+ int rank = comm != MPI_COMM_NULL ? smpi_process_index() : -1;
TRACE_smpi_computing_out(rank);
TRACE_smpi_collective_in(rank, -1, __FUNCTION__);
#endif
smpi_bench_end();
#ifdef HAVE_TRACING
- int rank = comm != MPI_COMM_NULL ? smpi_comm_rank(comm) : -1;
+ int rank = comm != MPI_COMM_NULL ? smpi_process_index() : -1;
TRACE_smpi_computing_out(rank);
TRACE_smpi_collective_in(rank, -1, __FUNCTION__);
#endif