Hi David, Be sure to note the special methods for setting env variables and writing to stdout from the task prolog, in the Prolog and Epilog Guide web page. In order to write job summary info (during one of your epilogs), you can acquire the stdout location from scontrol show job ${SLURM_JOB_ID} and just echo to it.
Regards, Lyn On Thu, Jun 23, 2016 at 2:19 AM, Baker D.J. <d.j.ba...@soton.ac.uk> wrote: > Hello, > > > > I’m sure that this question has been asked before, however I don’t recall > finding a satisfactory answer to this question. We are investigating moving > from torque/moab to slurm on our HPC clusters. In our torque prologue and > epilogue scripts we write information in to users’ job output files. For > example where the job executed on the cluster (on which compute nodes) and > how many (much) resources the job used. > > > > I’ve set up some prototype slurm prolog and epilog scripts and included > some write (echo) statements, however I don’t see any of the information in > job output files. Is writing information in to output files much more > tricky in slurm or have I missed something fundamental? Alternatively, are > there other ways and means of doing this? Could someone please advise me. > > > > Best regards, > > David >