Skip to content

Commit

Permalink
Add example of template file for resource (#395)
Browse files Browse the repository at this point in the history
An example of using template file on Princeton's tiger cluster

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
Yi-FanLi and pre-commit-ci[bot] authored Oct 22, 2023
1 parent 01d1e98 commit cb77da2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/resources/template.slurm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash -l
#SBATCH --parsable
#SBATCH --nodes={number_node}
#SBATCH --ntasks-per-node={cpu_per_node}
#SBATCH --qos={kwargs[qos]}
#SBATCH --time=01:02:00
#SBATCH --mem-per-cpu=4G
12 changes: 12 additions & 0 deletions examples/resources/tiger.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"number_node": 1,
"cpu_per_node": 32,
"kwargs":{
"qos": "tiger-vshort"
},
"source_list": ["activate abacus_env"],
"strategy": {
"customized_script_header_template_file": "./template.slurm"
},
"group_size": 2000
}

0 comments on commit cb77da2

Please sign in to comment.