From: Arnaud Giersch Date: Mon, 8 Apr 2013 14:24:09 +0000 (+0200) Subject: Remove unused variables. X-Git-Tag: v3_9_90~412^2~20 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1d19a5ec3d87dc7d3d8644fa15526f6a7786da04 Remove unused variables. --- diff --git a/src/smpi/colls/allgather-SMP-NTS.c b/src/smpi/colls/allgather-SMP-NTS.c index 1b49bd4be8..a6b515a0c4 100644 --- a/src/smpi/colls/allgather-SMP-NTS.c +++ b/src/smpi/colls/allgather-SMP-NTS.c @@ -17,7 +17,6 @@ int smpi_coll_tuned_allgather_SMP_NTS(void *sbuf, int scount, int tag = 50; MPI_Request request; MPI_Request rrequest_array[128]; - MPI_Request srequest_array[128]; MPI_Status status; int i, send_offset, recv_offset; @@ -83,8 +82,8 @@ int smpi_coll_tuned_allgather_SMP_NTS(void *sbuf, int scount, send_offset = ((inter_rank + inter_comm_size) % inter_comm_size) * NUM_CORE * sextent * scount; - srequest_array[0] = smpi_mpi_isend((char *) rbuf + send_offset, scount * NUM_CORE, stype, dst, tag, - comm); + smpi_mpi_isend((char *) rbuf + send_offset, scount * NUM_CORE, stype, + dst, tag, comm); // loop : recv-inter , send-inter, send-intra (linear-bcast) for (i = 0; i < inter_comm_size - 2; i++) { @@ -92,8 +91,8 @@ int smpi_coll_tuned_allgather_SMP_NTS(void *sbuf, int scount, ((inter_rank - i - 1 + inter_comm_size) % inter_comm_size) * NUM_CORE * sextent * scount; smpi_mpi_wait(&rrequest_array[i], &status); - srequest_array[i + 1] = smpi_mpi_isend((char *) rbuf + recv_offset, scount * NUM_CORE, stype, dst, - tag + i + 1, comm); + smpi_mpi_isend((char *) rbuf + recv_offset, scount * NUM_CORE, stype, + dst, tag + i + 1, comm); if (num_core_in_current_smp > 1) { request = smpi_mpi_isend((char *) rbuf + recv_offset, scount * NUM_CORE, stype, (rank + 1), tag + i + 1, comm); diff --git a/src/smpi/colls/allreduce-rab-rsag.c b/src/smpi/colls/allreduce-rab-rsag.c index f13602060e..34e23d6369 100644 --- a/src/smpi/colls/allreduce-rab-rsag.c +++ b/src/smpi/colls/allreduce-rab-rsag.c @@ -5,7 +5,7 @@ int smpi_coll_tuned_allreduce_rab_rsag(void *sbuff, void *rbuff, int count, MPI_Datatype dtype, MPI_Op op, MPI_Comm comm) { - int nprocs, rank, type_size, tag = 543; + int nprocs, rank, tag = 543; int mask, dst, pof2, newrank, rem, newdst, i, send_idx, recv_idx, last_idx, send_cnt, recv_cnt, *cnts, *disps; MPI_Aint extent; @@ -20,8 +20,6 @@ int smpi_coll_tuned_allreduce_rab_rsag(void *sbuff, void *rbuff, int count, smpi_mpi_sendrecv(sbuff, count, dtype, rank, tag, rbuff, count, dtype, rank, tag, comm, &status); - type_size = smpi_datatype_size(dtype); - // find nearest power-of-two less than or equal to comm_size pof2 = 1; while (pof2 <= nprocs) diff --git a/src/smpi/colls/allreduce-rdb.c b/src/smpi/colls/allreduce-rdb.c index f1fe9f6a5d..44717adf41 100644 --- a/src/smpi/colls/allreduce-rdb.c +++ b/src/smpi/colls/allreduce-rdb.c @@ -4,7 +4,7 @@ int smpi_coll_tuned_allreduce_rdb(void *sbuff, void *rbuff, int count, MPI_Datatype dtype, MPI_Op op, MPI_Comm comm) { - int nprocs, rank, type_size, tag = 543; + int nprocs, rank, tag = 543; int mask, dst, pof2, newrank, rem, newdst; MPI_Aint extent, lb; MPI_Status status; @@ -28,8 +28,6 @@ int smpi_coll_tuned_allreduce_rdb(void *sbuff, void *rbuff, int count, smpi_mpi_sendrecv(sbuff, count, dtype, rank, 500, rbuff, count, dtype, rank, 500, comm, &status); - type_size=smpi_datatype_size(dtype); - // find nearest power-of-two less than or equal to comm_size pof2 = 1; while (pof2 <= nprocs) diff --git a/src/smpi/colls/reduce-scatter-gather.c b/src/smpi/colls/reduce-scatter-gather.c index fd1c5dccc9..280e3e8f3f 100644 --- a/src/smpi/colls/reduce-scatter-gather.c +++ b/src/smpi/colls/reduce-scatter-gather.c @@ -10,7 +10,7 @@ int smpi_coll_tuned_reduce_scatter_gather(void *sendbuf, void *recvbuf, MPI_Op op, int root, MPI_Comm comm) { MPI_Status status; - int comm_size, rank, type_size, pof2, rem, newrank; + int comm_size, rank, pof2, rem, newrank; int mask, *cnts, *disps, i, j, send_idx = 0; int recv_idx, last_idx = 0, newdst; int dst, send_cnt, recv_cnt, newroot, newdst_tree_root; @@ -29,7 +29,6 @@ int smpi_coll_tuned_reduce_scatter_gather(void *sendbuf, void *recvbuf, comm_size = smpi_comm_size(comm); extent = smpi_datatype_get_extent(datatype); - type_size = smpi_datatype_size(datatype); /* find nearest power-of-two less than or equal to comm_size */ pof2 = 1;