Skip to content

Commit

Permalink
fix race bug when saving graph for distribution
Browse files Browse the repository at this point in the history
Signed-off-by: Tammam Mustafa <tammammusatafa@gmail.com>
  • Loading branch information
tammam1998 committed Apr 23, 2022
1 parent 276d55b commit f6e6212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/pash_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def compile_optimize_output_script(ir_filename, compiled_script_file, args, comp
## which should be translated to a parallel script.
if(isinstance(optimized_ast_or_ir, IR)):
if args.distributed_exec:
ir_filename = os.path.join(config.PASH_TMP_PREFIX, 'distributed_exec_ir.pkl')
_, ir_filename = ptempfile()
script_to_execute = f"$PASH_TOP/compiler/dspash/remote_exec_graph.sh {ir_filename}\n"
## This might not be needed anymore (since the output script is output anyway)
## TODO: This is probably useless, remove
Expand Down

0 comments on commit f6e6212

Please sign in to comment.