TABLE OF CONTENTS
::pwtk::slurm_profile
USAGE
slurm_profile profileName profileSpecs ?pwtkSpecs?
DESCRIPTION
Define a SLURM "profile" within the PWTK script. See also ::pwtk::SLURM.
Here is an example of how a new slurm profile can be defined and used:
slurm_profile n24 { #!/bin/sh #SBATCH --nodes=2 #SBATCH --ntasks-per-node=12 #SBATCH --ntasks=24 #SBATCH --time=12:00:00 }
SLURM n24 { load_fromPWI scf.in CONTROL { calculation = 'relax' } IONS {} runPW relax.in }
ARGUMENTS
- profileName -- name of the profile
- profileSpecs -- definition of the 'profileName' profile
- pwtkSpecs -- definition of the PWTK profile to be used when the 'profileName' SLURM profile is used
IMPORTANT
A typical place where to store SLURM profiles for frequent use is in the ~/.pwtk/slurm.tcl configuration file. Note that in the ~/.pwtk/slurm.tcl configuration file, the prefix 'slurm_' can be omitted.
EXAMPLE
slurm_profile n24 { #!/bin/sh #SBATCH --nodes=2 #SBATCH --ntasks-per-node=12 #SBATCH --ntasks=24 #SBATCH --time=12:00:00 } { prefix mpirun -np 24 }