X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cdf6a962eb4e88efbed3df9c41343adabcf09e6c..efa1f86e31adca3c57e9d0135b2f6ebdbabb0878:/src/smpi/include/smpi_file.hpp diff --git a/src/smpi/include/smpi_file.hpp b/src/smpi/include/smpi_file.hpp index 3feb57f696..1584a22b32 100644 --- a/src/smpi/include/smpi_file.hpp +++ b/src/smpi/include/smpi_file.hpp @@ -74,8 +74,8 @@ class File{ MPI_Offset max_offset = (min_offset + count * datatype->size());//cheating, as we don't care about exact data location, we can skip extent MPI_Offset* min_offsets = new MPI_Offset[size]; MPI_Offset* max_offsets = new MPI_Offset[size]; - simgrid::smpi::Colls::allgather(&min_offset, 1, MPI_OFFSET, min_offsets, 1, MPI_OFFSET, comm_); - simgrid::smpi::Colls::allgather(&max_offset, 1, MPI_OFFSET, max_offsets, 1, MPI_OFFSET, comm_); + simgrid::smpi::colls::allgather(&min_offset, 1, MPI_OFFSET, min_offsets, 1, MPI_OFFSET, comm_); + simgrid::smpi::colls::allgather(&max_offset, 1, MPI_OFFSET, max_offsets, 1, MPI_OFFSET, comm_); MPI_Offset min=min_offset; MPI_Offset max=max_offset; MPI_Offset tot= 0; @@ -121,7 +121,7 @@ class File{ if((my_chunk_start>=min_offsets[i] && my_chunk_start < max_offsets[i])|| ((my_chunk_end<=max_offsets[i]) && my_chunk_end> min_offsets[i])){ send_sizes[i]=(std::min(max_offsets[i]-1, my_chunk_end-1)-std::max(min_offsets[i], my_chunk_start)); - //store min and max offest to actually read + // store min and max offset to actually read min_offset=std::min(min_offset, min_offsets[i]); total_sent+=send_sizes[i]; XBT_CDEBUG(smpi_pmpi, "will have to send %d bytes to %d", send_sizes[i], i); @@ -171,15 +171,15 @@ class File{ seek(min_offset, MPI_SEEK_SET); T(this,sendbuf,totreads/datatype->size(),datatype, status); } - simgrid::smpi::Colls::alltoall(send_sizes, 1, MPI_INT, recv_sizes, 1, MPI_INT, comm_); + simgrid::smpi::colls::alltoall(send_sizes, 1, MPI_INT, recv_sizes, 1, MPI_INT, comm_); int total_recv=0; for(int i=0;icount=count * datatype->size(); smpi_free_tmp_buffer(sendbuf); delete[] send_sizes;