torque_slurm_scripts
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| torque_slurm_scripts [2022/02/02 17:34] – jpummil | torque_slurm_scripts [2025/10/15 19:51] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====Slurm Commands and Scripts==== | ====Slurm Commands and Scripts==== | ||
| - | Basic torque/slurm commands are: | + | Basic slurm commands are: |
| <csv> | <csv> | ||
| slurm, use | slurm, use | ||
| Line 26: | Line 26: | ||
| mpirun -np $SLURM_NTASKS -machinefile / | mpirun -np $SLURM_NTASKS -machinefile / | ||
| </ | </ | ||
| + | |||
| and a more complex script with file moving looks like: | and a more complex script with file moving looks like: | ||
| - | < | + | |
| - | #PBS -N espresso | + | |
| - | #PBS -j oe | + | |
| - | #PBS -o zzz.$PBS_JOBID | + | |
| - | #PBS -l nodes=4: | + | |
| - | #PBS -q q06h32c | + | |
| - | module purge | + | |
| - | module load intel/ | + | |
| - | cd $PBS_O_WORKDIR | + | |
| - | cp *.in *UPF / | + | |
| - | cd / | + | |
| - | sort -u $PBS_NODEFILE > | + | |
| - | mpirun -ppn 16 -hostfile hostfile -genv OMP_NUM_THREADS 4 -genv MKL_NUM_THREADS 4 / | + | |
| - | mv ausurf.log *mix* *wfc* *igk* $PBS_O_WORKDIR/ | + | |
| - | </ | + | |
| < | < | ||
| #!/bin/bash | #!/bin/bash | ||
| Line 62: | Line 50: | ||
| See also [ https:// | See also [ https:// | ||
| - | We have a conversion script **/ | + | We have a conversion script **/ |
| < | < | ||
| pbs2slurm.sh < | pbs2slurm.sh < | ||
torque_slurm_scripts.1643823298.txt.gz · Last modified: (external edit)
