Difference between revisions of "SW:NWChem"
(→Terra Example Job file) |
(→Terra Example Job file) |
||
Line 63: | Line 63: | ||
#!/bin/bash | #!/bin/bash | ||
##NECESSARY JOB SPECIFICATIONS | ##NECESSARY JOB SPECIFICATIONS | ||
− | #SBATCH --job-name=NWChemJob | + | #SBATCH --job-name=NWChemJob # Sets the job name to NWChemjob |
− | #SBATCH --time=2:00:00 | + | #SBATCH --time=2:00:00 # Sets the runtime limit to 2 hr |
− | #SBATCH --ntasks=28 | + | #SBATCH --ntasks=28 # Requests 28 cores |
− | #SBATCH --ntasks-per-node=28 | + | #SBATCH --ntasks-per-node=28 # Requests 28 cores per node (1 node) |
− | #SBATCH --mem=56G | + | #SBATCH --mem=56G # Requests 56GB of memory per node |
− | #SBATCH --error=NWChemJob.job.e%J | + | #SBATCH --error=NWChemJob.job.e%J # Sends stderr to NWChemJob.job.e[jobID] |
− | #SBATCH --output=NWChemJob.job.o%J | + | #SBATCH --output=NWChemJob.job.o%J # Sends stdout to NWChemJob.job.o[jobID]<br \> |
− | cd $SLURM_SUBMIT_DIR | + | cd $SLURM_SUBMIT_DIR # Change to the directory where the job was submitted from<br /> |
− | ml purge | + | ml purge # purge all module |
− | ml NWChem/7.0.0-intel-2019b-Python-3.7.4 | + | ml NWChem/7.0.0-intel-2019b-Python-3.7.4 # load the module for NWChem<br /> |
− | mpirun nwchem input_file.nw | + | mpirun nwchem input_file.nw # run NWChem<br /> |
− | exit | + | exit #exit when the job is done <br /> |
To submit the job to the queue, use the following command: | To submit the job to the queue, use the following command: | ||
[ NetID@terra1 ~]$ '''sbatch ''jobscript''''' | [ NetID@terra1 ~]$ '''sbatch ''jobscript''''' |
Revision as of 13:20, 5 June 2021
NWChem
Contents
Description
NWChem is an open source high-performance computational chemistry code actively developed by a consortium of developers and maintained by the EMSL located at the Pacific Northwest National Laboratory (PNNL) in Washington State. NWChem aims to provide its users with computational chemistry tools that are scalable both in their ability to treat large scientific computational chemistry problems efficiently, and in their use of available parallel computing resources from high-performance parallel supercomputers to conventional workstation clusters. NWChem software can handle: biomolecules, nanostructures, and solid-state; from quantum to classical, and all combinations; Gaussian basis functions or plane-waves; scaling from one to thousands of processors; properties and relativity.
For more information, visit the NWChem Official Website.
Documentation: NWChem Doc
License Information
The code is distributed as open-source under the terms of the Educational Community License version 2.0 (ECL 2.0).
Loading the NWChem modules
Grace Instructions:
List the versions of NWChem installed:
mla nwchem
List the required module dependencies for version:
ml spider NWChemversion
Finally, load NWChemversion with the dependencies listed first to setup your environment to run NWChem:
ml dependencies NWChemversion
Terra Instructions:
List the versions of NWChem installed:
ml spider NWChem
Finally, load NWChemversion to setup your environment to run NWChem:
ml NWChemversion
Grace Example Job file
A multicore (48 core) example: (Updated Jun. 5, 2021)
#!/bin/bash ##NECESSARY JOB SPECIFICATIONS #SBATCH --job-name=NWChemJob # Sets the job name to NWChemJob #SBATCH --time=2:00:00 # Sets the runtime limit to 2 hr #SBATCH --ntasks=48 # Requests 48 cores #SBATCH --ntasks-per-node=48 # Requests 48 cores per node (1 node) #SBATCH --mem=360G # Requests 360GB of memory per node #SBATCH --error=NWChemJob.job.e%J # Sends stderr to NWChemJob.job.e[jobID] #SBATCH --output=NWChemJob.job.o%J # Sends stdout to NWChemJob.job.o[jobID]
cd $SLURM_SUBMIT_DIR # Change to the directory where the job was submitted from
ml purge # purge all module ml iccifort/2019.5.281 impi/2018.5.288 NWChem/7.0.0-Python-3.7.4 # load the modules for NWChem with the dependencies listed first
mpirun nwchem input_file.nw # nwchem
exit #exit when the job is done
To submit the job to the queue, use the following command:
[ NetID@Grace ~]$ sbatch jobscript
Terra Example Job file
A multicore (28 core) example: (Updated Jun. 5, 2021)
#!/bin/bash ##NECESSARY JOB SPECIFICATIONS #SBATCH --job-name=NWChemJob # Sets the job name to NWChemjob #SBATCH --time=2:00:00 # Sets the runtime limit to 2 hr #SBATCH --ntasks=28 # Requests 28 cores #SBATCH --ntasks-per-node=28 # Requests 28 cores per node (1 node) #SBATCH --mem=56G # Requests 56GB of memory per node #SBATCH --error=NWChemJob.job.e%J # Sends stderr to NWChemJob.job.e[jobID] #SBATCH --output=NWChemJob.job.o%J # Sends stdout to NWChemJob.job.o[jobID]
cd $SLURM_SUBMIT_DIR # Change to the directory where the job was submitted from
ml purge # purge all module ml NWChem/7.0.0-intel-2019b-Python-3.7.4 # load the module for NWChem
mpirun nwchem input_file.nw # run NWChem
exit #exit when the job is done
To submit the job to the queue, use the following command:
[ NetID@terra1 ~]$ sbatch jobscript