Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
habrok:examples:gaussian [2025/04/17 12:45] – [Gaussian] fokkehabrok:examples:gaussian [2026/03/29 22:07] (current) pedro
Line 10: Line 10:
 The following example can be used as a job script for running Gaussian jobs: The following example can be used as a job script for running Gaussian jobs:
  
-<code>+<code bash>
 #!/bin/bash #!/bin/bash
 #SBATCH --job-name=gaussian #SBATCH --job-name=gaussian
Line 23: Line 23:
 srun g16 inputfile.inp outputfile.out srun g16 inputfile.inp outputfile.out
 </code> </code>
-Gaussian can only do shared memory parallel calculations, i.e. using processors within the same node, so %%--nodes%% should always be 1. Furthermore, it is important to start only one Gaussian process/task, which itself will make use of the available cores. This is achieved by settings %%--ntasks%% to 1, while %%--cpus-per-task%% can vary: srun will then launch only one Gaussian process.+Gaussian can only do shared memory parallel calculations, i.e. using processors within the same node, so ''%%--nodes%%'' should always be 1. Furthermore, it is important to start only one Gaussian process/task, which itself will make use of the available cores. This is achieved by settings ''%%--ntasks%%'' to 1, while ''%%--cpus-per-task%%'' can vary: ''srun'' will then launch only one Gaussian process.
  
 Finally, make sure to use the same number of requested cores and same amount of memory in your Gaussian input file, e.g.: Finally, make sure to use the same number of requested cores and same amount of memory in your Gaussian input file, e.g.: