File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,11 +39,11 @@ def main() -> None:
3939
4040 time_start = time .time ()
4141 apply_dict = {}
42- if mpi_rank_zero :
43- apply_dict = backend_load_file (file_name = file_name )
44- apply_dict = MPI .COMM_WORLD .bcast (apply_dict , root = 0 )
45- output = apply_dict ["fn" ].__call__ (* apply_dict ["args" ], ** apply_dict ["kwargs" ])
4642 try :
43+ if mpi_rank_zero :
44+ apply_dict = backend_load_file (file_name = file_name )
45+ apply_dict = MPI .COMM_WORLD .bcast (apply_dict , root = 0 )
46+ output = apply_dict ["fn" ].__call__ (* apply_dict ["args" ], ** apply_dict ["kwargs" ])
4747 result = (
4848 MPI .COMM_WORLD .gather (output , root = 0 ) if mpi_size_larger_one else output
4949 )
Original file line number Diff line number Diff line change @@ -68,9 +68,9 @@ def backend_execute_task_in_file(file_name: str) -> None:
6868 Returns:
6969 None
7070 """
71- apply_dict = backend_load_file (file_name = file_name )
72- time_start = time .time ()
7371 try :
72+ apply_dict = backend_load_file (file_name = file_name )
73+ time_start = time .time ()
7474 result = {
7575 "result" : apply_dict ["fn" ].__call__ (
7676 * apply_dict ["args" ], ** apply_dict ["kwargs" ]
You can’t perform that action at this time.
0 commit comments