Commit ba17d751 authored by frey_m's avatar frey_m
Browse files

add account to Piz Daint

parent 29dddf93
......@@ -219,10 +219,11 @@ class Simulation:
elif (hostname.startswith("daint")):
batchsys = 'SLURM'
runfile = 'run.daint'
time = os.getenv("SLURM_TIME", "24:00:00")
time = os.getenv("SLURM_TIME", "00:01:00")
ram = os.getenv("SLURM_RAM", "36")
partition = os.getenv("SLURM_PARTITION", "normal")
self.WritePizDaint(opalexe, oinpFile, CORES, time, ram, info, runfile, partition)
account = os.getenv("SLURM_ACCOUNT", "psi07")
self.WritePizDaint(opalexe, oinpFile, CORES, time, ram, info, runfile, partition, account)
elif (hostname.startswith("eofe")):
batchsys = 'SLURM'
......@@ -405,8 +406,7 @@ class Simulation:
myfile.write(s1)
myfile.close()
def WritePizDaint(self, opalexe, oinpFile, cores, time, ram, info, name, partition):
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)
# http://user.cscs.ch/computing_systems/piz_daint/index.html
......@@ -423,7 +423,7 @@ class Simulation:
s1 += "#SBATCH --constraint=mc \n"
s1 += "#SBATCH --mem=" + str(ram) + "GB \n"
s1 += "#SBATCH --partition=" + str(partition) + " \n"
s1 += "#SBATCH --account=psi07 \n"
s1 += "#SBATCH --account=" + str(account) + " \n"
s1 += "export OMP_NUM_THREADS=$SLURM_CPUS_PER_TASK \n"
s1 += "module load daint-mc \n"
s1 += "srun " + opalexe + " " + oinpFile + "\n"
......
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