Skip to content

Commit

Permalink
debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
arunjose696 committed Feb 27, 2023
1 parent 3ba5df5 commit d4c6ecb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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 @@ -380,6 +380,7 @@ def submit(task, *args, num_returns=1, **kwargs):

# dest_rank = RoundRobin.get_instance().schedule_rank()
dest_rank = choose_destination_rank(collected_data_ids)
print(dest_rank, collected_data_ids)
push_data_owners(dest_rank, collected_data_ids)
output_ids = object_store.generate_output_data_id(
dest_rank, garbage_collector, num_returns
Expand Down
3 changes: 2 additions & 1 deletion unidist/core/backends/mpi/core/worker/loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

"""Worker MPI process task processing functionality."""
import asyncio
import sys
from functools import wraps, partial

try:
Expand All @@ -29,7 +30,7 @@
# When building documentation we do not have MPI initialized so
# we use the condition to set "worker_0.log" in order to build it succesfully.
log_file = "worker_{}.log".format(mpi_state.rank if mpi_state is not None else 0)
w_logger = common.get_logger("worker", log_file)
w_logger = common.get_logger("worker", sys.stdout, True)

# Actors map {handle : actor}
actor_map = {}
Expand Down

0 comments on commit d4c6ecb

Please sign in to comment.