Skip to content

Commit

Permalink
using isend instead of send for operation
Browse files Browse the repository at this point in the history
  • Loading branch information
arunjose696 committed Mar 6, 2023
1 parent 8abb067 commit 3d093cb
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 1,603 deletions.
2 changes: 1 addition & 1 deletion unidist/core/backends/mpi/core/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def base_data_id(self):
return DataID(self._id)


def get_logger(logger_name, file_name, activate=False):
def get_logger(logger_name, file_name, activate=True):
"""
Configure logger and get it's instance.
Expand Down
1 change: 1 addition & 0 deletions unidist/core/backends/mpi/core/controller/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ def put(data):
data_id = object_store.generate_data_id(garbage_collector)
dest_rank = RoundRobin.get_instance().schedule_rank()
object_store.put_data_owner(data_id, dest_rank)
object_store.put_data_size(data_id, data)
push_data_directly_to_worker(dest_rank, data_id, data)

logger.debug("PUT {} id".format(data_id._id))
Expand Down
2 changes: 1 addition & 1 deletion unidist/core/backends/mpi/core/controller/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def push_data_directly_to_worker(dest_rank, data_id, value):
"id": data_id,
"data": value,
}
communication.send_operation(
communication.isend_complex_operation(
mpi_state.comm,
operation_type,
operation_data,
Expand Down
Loading

0 comments on commit 3d093cb

Please sign in to comment.