Skip to content

Commit

Permalink
Merge pull request #52 from INM-6/model_git_commit_hash
Browse files Browse the repository at this point in the history
Record git commit hash of model repository
  • Loading branch information
jasperalbers authored Mar 4, 2022
2 parents bdbaa8d + 5fb6e9b commit 5681f98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helpers/helpers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ parameterset:
srun ${affinity} python ${run_file} ${run_args}
srun -n 1 --nodes 1 python ${base_path}/helpers/collect_timer_data.py ${log_path}
srun -n 1 --nodes 1 python ${base_path}/helpers/cpu_logging.py ${jube_wp_abspath}
cd ${model_path}
model_git_commit_hash=$(git rev-parse HEAD)
cd -
cat >job.json <<EOT
{"num_nodes":"${num_nodes}",
"tasks_per_node":"${tasks_per_node}",
Expand All @@ -96,6 +99,7 @@ parameterset:
"simulator-variant":"${variant}",
"simulator-suffix":"${suffix}",
"model_name":"${model_name}",
"model_git_commit_hash":"${model_git_commit_hash}",
"network_state":"${network_state}",
"record_spikes":"${record_spikes}",
"scaling_type":"${scaling_type}"
Expand Down

0 comments on commit 5681f98

Please sign in to comment.