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.
This commit is contained in:
parent
5bc51c78ca
commit
2c349315cd
|
@ -187,9 +187,6 @@ function launch_job_for_host_group()
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
local starbench_job_path='/tmp/starbench.job'
|
|
||||||
cat $SCRIPT_DIR/starbench-template.job | substitute_TAG_with_FILEcontents '<include:starbench.py>' "$SCRIPT_DIR/starbench.py" > "${starbench_job_path}"
|
|
||||||
chmod a+x "${starbench_job_path}"
|
|
||||||
|
|
||||||
local hibench_root_dir="$GLOBAL_WORK_DIR/graffy/hibridon/benchmarks/starbench"
|
local hibench_root_dir="$GLOBAL_WORK_DIR/graffy/hibridon/benchmarks/starbench"
|
||||||
mkdir -p "${hibench_root_dir}"
|
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}"
|
local this_bench_dir="${hibench_root_dir}/${hibridon_version}/${benchmark_test}/${host_group_id}/${compiler_id}"
|
||||||
mkdir -p "${this_bench_dir}"
|
mkdir -p "${this_bench_dir}"
|
||||||
|
|
||||||
|
local starbench_job_path="${this_bench_dir}/starbench.job"
|
||||||
|
cat $SCRIPT_DIR/starbench-template.job | substitute_TAG_with_FILEcontents '<include:starbench.py>' "$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}\""
|
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"
|
echo "command = $command"
|
||||||
# eval $command
|
# eval $command
|
||||||
|
|
Loading…
Reference in New Issue