One of the major pains I have in using HPC resources is figuring out/remembering the syntax required to create certain jobs, check the state of the queue(s) I am interested in, figure out, based on how heavily utilized the cluster is, how much time I spend waiting to get one of my jobs to run, figuring out how many nodes are available for the given queue(s), etc...
One thing I would love to have, to make this all the easier, would be to have a script that generated a script for me based on the system I was running on, whether it be Slurm or Torque (PBS/PBS-Pro) and can easily give me what I want. As well, I would want to be able to generate some template batch scripts and to append to them, so being able to define a base template for my project would be very useful (i.e. a base template generated from this script, and then using that template to generate more specific (less generalized) fully complete scripts.
- Detect whether or not the script is being run on PBS/PBS-Pro or Slurm