} else if (NULL == rank) {
retval = MPI_ERR_ARG;
} else {
- *rank = smpi_comm_rank(comm, MSG_host_self());
+ *rank = smpi_comm_rank(comm, SIMIX_host_self());
}
smpi_bench_begin();
return retval;
/*
int MPI_Comm_split(MPI_Comm comm, int color, int key, MPI_Comm *newcomm) {
int retval = MPI_SUCCESS;
- m_host_t host = MSG_host_self();
+ m_host_t host = SIMIX_host_self();
int rank = smpi_comm_rank(comm, host);
smpi_mpi_comm_split_table_node_t *split_table;
split_table = xbt_malloc(sizeof(smpi_mpi_comm_split_table_node_t) * comm->size);
int dst;
smpi_mpi_request_t *recvreq;
smpi_bench_end();
- dst = smpi_comm_rank(comm, MSG_host_self());
+ dst = smpi_comm_rank(comm, SIMIX_host_self());
retval = smpi_create_request(buf, count, datatype, src, dst, tag, comm, &recvreq);
if (NULL != recvreq) {
smpi_irecv(recvreq);
int dst;
smpi_mpi_request_t *recvreq;
smpi_bench_end();
- dst = smpi_comm_rank(comm, MSG_host_self());
+ dst = smpi_comm_rank(comm, SIMIX_host_self());
retval = smpi_create_request(buf, count, datatype, src, dst, tag, comm, &recvreq);
if (NULL != recvreq) {
smpi_irecv(recvreq);
int src;
smpi_mpi_request_t *sendreq;
smpi_bench_end();
- src = smpi_comm_rank(comm, MSG_host_self());
+ src = smpi_comm_rank(comm, SIMIX_host_self());
retval = smpi_create_request(buf, count, datatype, src, dst, tag, comm, &sendreq);
if (NULL != sendreq) {
smpi_isend(sendreq);
int src;
smpi_mpi_request_t *sendreq;
smpi_bench_end();
- src = smpi_comm_rank(comm, MSG_host_self());
+ src = smpi_comm_rank(comm, SIMIX_host_self());
retval = smpi_create_request(buf, count, datatype, src, dst, tag, comm, &sendreq);
if (NULL != sendreq) {
smpi_isend(sendreq);
smpi_mpi_request_t *request;
smpi_bench_end();
- rank = smpi_comm_rank(comm, MSG_host_self());
+ rank = smpi_comm_rank(comm, SIMIX_host_self());
if (root == rank) {
smpi_create_request(buf, count, datatype, root, (rank + 1) % comm->size, 0, comm, &request);
smpi_mpi_request_t **sendreqs, **recvreqs;
smpi_bench_end();
- rank = smpi_comm_rank(comm, MSG_host_self());
+ rank = smpi_comm_rank(comm, SIMIX_host_self());
sendreqs = xbt_malloc(sizeof(smpi_mpi_request_t*) * comm->size);
recvreqs = xbt_malloc(sizeof(smpi_mpi_request_t*) * comm->size);
void **scratchbuf;
smpi_bench_end();
- rank = smpi_comm_rank(comm, MSG_host_self());
+ rank = smpi_comm_rank(comm, SIMIX_host_self());
if (root == rank) {
requests = xbt_malloc(sizeof(smpi_mpi_request_t*) * comm->size);