Gaussian: Difference between revisions
(Marked this version for translation) |
No edit summary |
||
Line 24: | Line 24: | ||
==Running Gaussian on Graham and Cedar== <!--T:6--> | ==Running Gaussian on Graham and Cedar== <!--T:6--> | ||
The <code>gaussian</code> module is installed on [[Graham]] and [[Cedar]]. To check what versions are available use the <code>module spider</code> command as follows: | |||
[name@server $] module spider gaussian | |||
For module commands, please see [[Utiliser des modules/en|Using modules]]. | |||
</translate> | </translate> | ||
Line 59: | Line 64: | ||
#SBATCH --cpus-per-task=16 # <translate><!--T:15--> | #SBATCH --cpus-per-task=16 # <translate><!--T:15--> | ||
No. of cpus for the job as defined by %nprocs in the name.com file</translate> | No. of cpus for the job as defined by %nprocs in the name.com file</translate> | ||
module load gaussian/g16. | module load gaussian/g16.c01 | ||
G16 name.com # <translate><!--T:16--> | G16 name.com # <translate><!--T:16--> | ||
G16 command, input: name.com, output: name.log</translate> | G16 command, input: name.com, output: name.log</translate> | ||
Line 89: | Line 94: | ||
#SBATCH --cpus-per-task=16 # <translate><!--T:24--> | #SBATCH --cpus-per-task=16 # <translate><!--T:24--> | ||
No. of cpus for the job as defined by %nprocs in the name.com file</translate> | No. of cpus for the job as defined by %nprocs in the name.com file</translate> | ||
module load gaussian/g16. | module load gaussian/g16.c01 | ||
g16 < name.com # <translate><!--T:25--> | g16 < name.com # <translate><!--T:25--> | ||
g16 command, input: name.com, output: slurm-<jobid>.out by default</translate> | g16 command, input: name.com, output: slurm-<jobid>.out by default</translate> | ||
Line 109: | Line 114: | ||
</translate> | </translate> | ||
{{Commands | {{Commands | ||
|module load gaussian/g16. | |module load gaussian/g16.c01 | ||
|G16 g16_test2.com # <translate><!--T:28--> | |G16 g16_test2.com # <translate><!--T:28--> | ||
G16 saves runtime file (.rwf etc.) to /scratch/yourid/93288/</translate> | G16 saves runtime file (.rwf etc.) to /scratch/yourid/93288/</translate> | ||
Line 117: | Line 122: | ||
or </translate> | or </translate> | ||
{{Commands | {{Commands | ||
|module load gaussian/g16. | |module load gaussian/g16.c01 | ||
|g16 < g16_test2.com >& g16_test2.log & # <translate><!--T:30--> | |g16 < g16_test2.com >& g16_test2.log & # <translate><!--T:30--> | ||
g16 saves runtime file to /localscratch/yourid/</translate> | g16 saves runtime file to /localscratch/yourid/</translate> | ||
Line 125: | Line 130: | ||
An example input file and the run scripts *.sh can be found in | An example input file and the run scripts *.sh can be found in | ||
/opt/software/gaussian/version/examples/ | /opt/software/gaussian/version/examples/ | ||
where version is either g03.d10, g09.e01 | where version is either g03.d10, g09.e01, or g16.c01 | ||
== Errors == <!--T:35--> | == Errors == <!--T:35--> | ||
Some of the error messages produced by Gaussian have been collected, with suggestions for their resolution. See [[Gaussian error messages]]. | Some of the error messages produced by Gaussian have been collected, with suggestions for their resolution. See [[Gaussian error messages]]. | ||
</translate> | </translate> |
Revision as of 14:20, 15 September 2020
See also Gaussian error messages.
Gaussian is a computational chemistry application produced by Gaussian, Inc.
License limitations
Compute Canada currently supports Gaussian only on Graham and Cedar as well as certain legacy systems.
In order to use Gaussian you must agree to certain conditions. Please contact support with a copy of the following statement:
- I am not a member of a research group developing software competitive to Gaussian.
- I will not copy the Gaussian software, nor make it available to anyone else.
- I will properly acknowledge Gaussian Inc. and Compute Canada in publications.
- I will notify Compute Canada of any change in the above acknowledgement.
If you are a sponsored user, your sponsor (PI) must also have such a statement on file with us.
We will then grant you access to Gaussian.
Running Gaussian on Graham and Cedar
The gaussian
module is installed on Graham and Cedar. To check what versions are available use the module spider
command as follows:
[name@server $] module spider gaussian
For module commands, please see Using modules.
Job submission
The national clusters use the Slurm scheduler; for details about submitting jobs, see Running jobs.
Besides your input file (in our example name.com), you have to prepare a job script to define the compute resources for the job; both input file and job script must be in the same directory.
There are two options to run your Gaussian job on Graham and Cedar, based on the location of the default runtime files and the job size.
G16 (G09, G03)
This option will save the default runtime files (unnamed .rwf, .inp, .d2e, .int, .skr files) to /scratch/username/jobid/. Those files will stay there when the job is unfinished or failed for whatever reason, you could locate the .rwf file for restart purpose later.
The following example is a G16 job script:
Note that for coherence, we use the same name for each files, changing only the extension (name.sh, name.com, name.log).
#!/bin/bash
#SBATCH --mem=16G # memory, roughly 2 times %mem defined in the input name.com file
#SBATCH --time=02-00:00 # expect run time (DD-HH:MM)
#SBATCH --cpus-per-task=16 # No. of cpus for the job as defined by %nprocs in the name.com file
module load gaussian/g16.c01
G16 name.com # G16 command, input: name.com, output: name.log
To use Gaussian 09 or Gaussian 03, simply modify the module load gaussian/g16.b01 to gaussian/g09.e01 or gaussian/g03.d01, and change G16 to G09 or G03. You can modify the --mem, --time, --cpus-per-task to match your job's requirements for compute resources.
g16 (g09, g03)
This option will save the default runtime files (unnamed .rwf, .inp, .d2e, .int, .skr files) temporarily in $SLURM_TMPDIR (/localscratch/username.jobid.0/) on the compute node where the job was scheduled to. The files will be removed by the scheduler when a job is done (successful or not). If you do not expect to use the .rwf file to restart in a later time, you can use this option.
/localscratch is ~800G shared by all jobs running on the same node. If your job files would be bigger than or close to that size range, you would instead use the G16 (G09, G03) option.
The following example is a g16 job script:
#!/bin/bash
#SBATCH --mem=16G # memory, roughly 2 times %mem defined in the input name.com file
#SBATCH --time=02-00:00 # expect run time (DD-HH:MM)
#SBATCH --cpus-per-task=16 # No. of cpus for the job as defined by %nprocs in the name.com file
module load gaussian/g16.c01
g16 < name.com # g16 command, input: name.com, output: slurm-<jobid>.out by default
Submit the job
sbatch mysub.sh
Interactive jobs
You can run interactive Gaussian job for testing purpose on Graham and Cedar. It's not a good practice to run interactive Gaussian jobs on a login node. You can start an interactive session on a compute node with salloc, the example for an hour, 8 cpus and 10G memory Gaussian job is like Goto the input file directory first, then use salloc command:
[name@server ~]$ salloc --time=1:0:0 --cpus-per-task=8 --mem=10g
Then use either
[name@server ~]$ module load gaussian/g16.c01
[name@server ~]$ G16 g16_test2.com # G16 saves runtime file (.rwf etc.) to /scratch/yourid/93288/
or
[name@server ~]$ module load gaussian/g16.c01
[name@server ~]$ g16 < g16_test2.com >& g16_test2.log & # g16 saves runtime file to /localscratch/yourid/
Examples
An example input file and the run scripts *.sh can be found in
/opt/software/gaussian/version/examples/
where version is either g03.d10, g09.e01, or g16.c01
Errors
Some of the error messages produced by Gaussian have been collected, with suggestions for their resolution. See Gaussian error messages.