I spent this morning getting preCICE up and running on a cluster and came across the SLURMS sessions article in the documentation, which was very helpful. Thank you very much!
I noticed two things in the linked Python script for partitioning SLURM sessions:
- In my case,
tnp = os.environ["SLURM_TASKS_PER_NODE"]resulted in the “64(x2)” (see also: Slurm Workload Manager - sbatch ) and thus an error message in mpirun. I solved it by usingtnp = os.environ[“SLURM_TASKS_PER_NODE”].split(‘(‘)[0]. This removes everything beginning with “(“. - Why does
len(hostnames)have to be greater thansum(args.nodes)? Isn’t it okay if they are equal?