From 3eee850c635e91843d294b19bcf0931832bea3ad Mon Sep 17 00:00:00 2001 From: natj Date: Wed, 20 Mar 2024 09:52:35 -0400 Subject: [PATCH] optional debug mode to scheduler --- pytools/scheduler.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pytools/scheduler.py b/pytools/scheduler.py index 848af23f..71af2837 100644 --- a/pytools/scheduler.py +++ b/pytools/scheduler.py @@ -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 @@ -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