diff --git a/unidist/core/backends/mpi/core/communication.py b/unidist/core/backends/mpi/core/communication.py index 8dfd6134..ed88e757 100755 --- a/unidist/core/backends/mpi/core/communication.py +++ b/unidist/core/backends/mpi/core/communication.py @@ -31,7 +31,6 @@ # Logger configuration logger = common.get_logger("communication", "communication.log") -logger1 = common.get_logger("communication1", "communication1.log") is_logger_header_printed = False @@ -465,18 +464,20 @@ def mpi_send_buffer(comm, buffer, dest_rank, data_type=MPI.CHAR, buffer_size=Non if buffer_size: comm.send(buffer_size, dest=dest_rank, tag=common.MPITag.OBJECT) else: - buffer_size = len(buffer) - PARTITION_SIZE = 100000 - partitions=list(range(0, buffer_size,PARTITION_SIZE)) + buffer_size = len(buffer) + block_size = pkl5._bigmpi.blocksize + partitions = list(range(0, buffer_size, block_size)) partitions.append(buffer_size) - #with pkl5._bigmpi() as bigmpi: - if True: - for i,_ in enumerate(partitions): - if i+1