Skip to content

Commit

Permalink
change default batch scheduler to SLURM
Browse files Browse the repository at this point in the history
  • Loading branch information
arahlin committed Oct 3, 2023
1 parent f3e629d commit 5657919
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions xfaster/batch_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def batch_sub(
echo=True,
delete=True,
submit=True,
scheduler="pbs",
scheduler="slurm",
debug=False,
exclude=None,
verbose=False,
Expand Down Expand Up @@ -532,11 +532,11 @@ def _opt_list(self):
),
),
(
"slurm",
"pbs",
dict(
action="store_true",
default=False,
help="Create SLURM (rather than PBS) job scripts",
help="Create PBS (rather than SLURM) job scripts",
),
),
(
Expand Down Expand Up @@ -719,7 +719,9 @@ def set_job_opts(self, args, load_defaults=True, **kwargs):
group_by=args["group"],
serial=args["serial"],
)
if args["slurm"]:
if args["pbs"]:
self.job_opts["scheduler"] = "pbs"
else:
self.job_opts["scheduler"] = "slurm"

time = self.time / args["cpu_speed"] / scale
Expand Down

0 comments on commit 5657919

Please sign in to comment.