Commit 013228ee authored by Adelmann Andreas's avatar Adelmann Andreas
Browse files

add Merlin 6

parent ba17d751
Pipeline #299 canceled with stages
......@@ -184,6 +184,15 @@ class Simulation:
partition = os.getenv("SLURM_PARTITION", "merlin")
self.WriteMerlin5(opalexe, oinpFile, CORES, time, ram, info, runfile, partition)
# Merlin6
if (hostname.startswith("merlin-c")):
batchsys = 'SLURM'
runfile = 'run.merlin5'
time = os.getenv("SLURM_TIME", "24:00:00")
ram = os.getenv("SLURM_RAM", "36")
partition = os.getenv("SLURM_PARTITION", "general")
self.WriteMerlin6(opalexe, oinpFile, CORES, time, ram, info, runfile, partition)
# ANL theta.alcf.anl.gov
elif (hostname.startswith("theta")):
batchsys = 'COBALT'
......@@ -406,6 +415,28 @@ class Simulation:
myfile.write(s1)
myfile.close()
def WriteMerlin6(self, opalexe, oinpFile, cores, time, ram, info, name, partition):
# ADA this is for the new PSI Merlin6
title = oinpFile.partition(".")[0]
myfile = open(name, 'w')
s1 = "#!/bin/bash -l \n"
s1 += "#SBATCH --job-name=" + title + "\n"
s1 += "#SBATCH --output=" + title + ".o%j\n"
s1 += "#SBATCH --time=" + time + "\n"
s1 += "#SBATCH --ntasks=" + str(cores) + "\n"
# Discussed in https://gitlab.psi.ch/OPAL/runOPAL/issues/7:
#if (int(cores) > 22):
# s1 += "#SBATCH --ntasks-per-node=16 \n"
#else:
# s1 += "#SBATCH --nodes=1 \n"
s1 += "#SBATCH --partition=" + str(partition) + " \n"
s1 += "#SBATCH --exclude=merlin-c-001 \n"
s1 += "#SBATCH --cores-per-socket=22 \n"
s1 += "#SBATCH --sockets-per-node=2 \n"
s1 += "mpirun " + opalexe + " " + oinpFile + " --info " + str(info) + "\n"
myfile.write(s1)
myfile.close()
def WritePizDaint(self, opalexe, oinpFile, cores, time, ram, info, name, partition, account):
# XC40 Compute Nodes
# Intel Xeon E5-2696 v4 @ 2.10GHz (2x18 cores, 64/128 GB RAM)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment