Skip to content

Commit

Permalink
Merge pull request #25 from exabiome/enh/add_project_arg
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Feb 11, 2021
2 parents a36d300 + 68593e1 commit a7a5279
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/exabiome/run/cori.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class SlurmJob(AbstractJob):
submit_cmd = 'sbatch'
job_var = 'SLURM_JOB_ID'
job_fmt_var = 'j'
job_id_re = 'Submitted batch job (\d+)'

debug_queue = 'debug'

Expand Down
4 changes: 4 additions & 0 deletions src/exabiome/run/run_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def run_train(argv=None):
rsc_grp.add_argument('-g', '--gpus', help="the number of GPUs to use", default=None, type=int)
rsc_grp.add_argument('-N', '--jobname', help="the name of the job", default=None)
rsc_grp.add_argument('-q', '--queue', help="the queue to submit to", default=None)
rsc_grp.add_argument('-P', '--project', help="the project/account to submit under", default=None)

system_grp = parser.add_argument_group('Compute system')
grp = system_grp.add_mutually_exclusive_group()
Expand Down Expand Up @@ -96,6 +97,9 @@ def run_train(argv=None):

if args.queue is not None:
job.queue = args.queue

if args.project is not None:
job.project = args.project

args.input = os.path.abspath(args.input)

Expand Down

0 comments on commit a7a5279

Please sign in to comment.