slaclab / lume-genesis

Genesis 1.3 tools for use in LUME
https://slaclab.github.io/lume-genesis/
Apache License 2.0
4 stars 7 forks source link

NERSC automations #5

Closed ChristopherMayes closed 1 year ago

ChristopherMayes commented 1 year ago

This adds automations for Perlmutter at NERSC. On a compute node, it automatically fills:

Genesis4.MPI_RUN = 'srun -n {nproc} --ntasks-per-node {nproc} -c 1 {command_mpi}'
Genesis4.WORKDIR = os.path.expandvars('$SCRATCH')

On a login node, 'salloc -N {nnode} -C cpu -q interactive -t 04:00:00' is prepended to this, which allows calls to Genesis4 from a login node.

A new property Genesis4.nnode is added for the above f-string. That is the only use at the moment.