From 2c349315cd4b927741559f76ebd16c985ed9182b Mon Sep 17 00:00:00 2001 From: Guillaume Raffy Date: Thu, 9 Jun 2022 11:16:36 +0200 Subject: [PATCH] the job script is now saved to a location that should avoid it to be written by multiple jobs at the same time, thus avoiding race conditions issues. --- .ipr/hibench-on-physix.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.ipr/hibench-on-physix.sh b/.ipr/hibench-on-physix.sh index 778b3ae..ff1e8e4 100755 --- a/.ipr/hibench-on-physix.sh +++ b/.ipr/hibench-on-physix.sh @@ -187,9 +187,6 @@ function launch_job_for_host_group() ;; esac - local starbench_job_path='/tmp/starbench.job' - cat $SCRIPT_DIR/starbench-template.job | substitute_TAG_with_FILEcontents '' "$SCRIPT_DIR/starbench.py" > "${starbench_job_path}" - chmod a+x "${starbench_job_path}" local hibench_root_dir="$GLOBAL_WORK_DIR/graffy/hibridon/benchmarks/starbench" mkdir -p "${hibench_root_dir}" @@ -197,6 +194,10 @@ function launch_job_for_host_group() local this_bench_dir="${hibench_root_dir}/${hibridon_version}/${benchmark_test}/${host_group_id}/${compiler_id}" mkdir -p "${this_bench_dir}" + local starbench_job_path="${this_bench_dir}/starbench.job" + cat $SCRIPT_DIR/starbench-template.job | substitute_TAG_with_FILEcontents '' "$SCRIPT_DIR/starbench.py" > "${starbench_job_path}" + chmod a+x "${starbench_job_path}" + command="${starbench_job_path} \"${git_repos_url}\" \"${git_user}\" \"${git_pass_file}\" \"${hibridon_version}\" \"${cmake_options}\" \"${benchmark_command}\" \"${env_vars_bash_commands}\"" echo "command = $command" # eval $command