mirror of
https://github.com/Findus23/halo_comparison.git
synced 2024-09-13 09:03:49 +02:00
Merge branch 'main' of github.com:Findus23/halo_comparison
This commit is contained in:
commit
6fd456d099
2 changed files with 5 additions and 1 deletions
|
@ -16,6 +16,8 @@ def jobrun(
|
|||
tasks: int = None,
|
||||
nodes: int = None,
|
||||
mem: int = None,
|
||||
qos: str = None,
|
||||
account: str = None,
|
||||
source: Path = None,
|
||||
sbatch: bool = True
|
||||
):
|
||||
|
@ -32,6 +34,8 @@ def jobrun(
|
|||
"nodes": nodes,
|
||||
"tasks": tasks,
|
||||
"mem": f"{mem}G",
|
||||
"qos": qos,
|
||||
"account": account,
|
||||
"job-name": name,
|
||||
"output": jobscript_dir / f"out-{name}-%a_%a.txt"
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ vsc = True
|
|||
|
||||
def spectra_jobrun(args):
|
||||
if vsc:
|
||||
jobrun(args, time="12:00:00", tasks=128, mem=128, source=Path("/gpfs/data/fs71636/lwinkler/spack_notes.txt"))
|
||||
jobrun(args, time="12:00:00", nodes=1, source=Path("/gpfs/data/fs71636/lwinkler/spack-latest.sh"))
|
||||
else:
|
||||
subprocess.run(args, check=True)
|
||||
|
||||
|
|
Loading…
Reference in a new issue