for LINE in `scontrol show hostname $SLURM_JOB_NODELIST` ; do
echo "host $LINE" >> $NODELISTFILE ;
done
#!/bin/bash<br />#SBATCH --nodes=1<br />#SBATCH --ntasks-per-node=4 # this number of CPU's has to match with the %nproc in the inputfile<br />#SBATCH --mem=4000<br />#SBATCH --time=00:10:00 # hh:mm:ss<br />#SBATCH --mail-type=END,FAIL<br />#SBATCH --mail-user=vorname.nachname@tu-dresden.de<br />#SBATCH -A ...your_projectname... <br /><br />#### make available the access to Gaussian 16<br />module load modenv/classic<br />module load gaussian/g16_avx2<br />export GAUSS_SCRDIR=...path_to_the_Workspace_that_you_generated_before...<br />g16 < my_input.com > my_output.out
# launch NAMD processes. Note that the environment variable $SLURM_NTASKS is only available if you have
# used the -n|--ntasks parameter. Otherwise, you have to specify the number of processes manually, e.g. +p64
*As example the input for gaussian could be this my_input.com:*
```Bash
%mem=4GB
%nproc=4
#P B3LYP/6-31G* opt
Toluol
0 1
C 1.108640 0.464239 -0.122043
C 1.643340 -0.780361 0.210457
C 0.794940 -1.850561 0.494257
C -0.588060 -1.676061 0.445657
C -1.122760 -0.431461 0.113257
C -0.274360 0.638739 -0.170643
C -0.848171 1.974558 -0.527484
H 1.777668 1.308198 -0.345947
H 2.734028 -0.917929 0.248871
H 1.216572 -2.832148 0.756392
H -1.257085 -2.520043 0.669489
H -2.213449 -0.293864 0.074993
H -1.959605 1.917127 -0.513867
H -0.507352 2.733596 0.211754
H -0.504347 2.265972 -1.545144
```
#!/bin/bash<br />#SBATCH -t 120<br />#SBATCH -n 8<br />#SBATCH --ntasks-per-node=2<br /># you have to make sure that on each node runs an even number of tasks !!<br />#SBATCH --mem-per-cpu=1900<br />module load gamess<br />rungms.slurm cTT_M_025.inp /scratch/mark/gamess <br /># the third parameter is the location of the scratch directory<br />
You have to start the job with command:
*GAMESS should be cited as:* M.W.Schmidt, K.K.Baldridge, J.A.Boatz,