Skip to content

Commit

Permalink
optional debug mode to scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
natj committed Mar 20, 2024
1 parent 605138d commit 3eee850
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pytools/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def __init__(self):
self.master_rank = 0
self.example_work_rank = 0

self.debug = False # debug mode

# swithc from all-in mode to task mode
def switch_to_task_mode(self,):
self.mpi_task_mode = True
Expand Down Expand Up @@ -56,6 +58,10 @@ def is_active_tile(self, tile):
return True

def operate(self, op):

if self.debug: # additional debug printing
print('R:', self.rank, op) # debug print
MPI.COMM_WORLD.Barrier()

#--------------------------------------------------
# default values
Expand Down

0 comments on commit 3eee850

Please sign in to comment.