From f6e6212235ab9ecf730bb2df7e723d0530035188 Mon Sep 17 00:00:00 2001 From: Tammam Mustafa Date: Wed, 20 Apr 2022 20:54:19 +0000 Subject: [PATCH] fix race bug when saving graph for distribution Signed-off-by: Tammam Mustafa --- compiler/pash_runtime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/pash_runtime.py b/compiler/pash_runtime.py index 7af39dd9d..c126e2797 100644 --- a/compiler/pash_runtime.py +++ b/compiler/pash_runtime.py @@ -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