NWChem
Introduction
NWChem is an open-source, high-performance computational chemistry software package designed to run on parallel supercomputers and workstation clusters. Developed and maintained at the Environmental Molecular Sciences Laboratory (EMSL) at Pacific Northwest National Laboratory (PNNL), it models biomolecules, nanostructures, and solid-state systems from quantum to classical scales.
Running NWCHEM in HPCC
Create a job submission script with the following content as a reference, for each partition:
#!/bin/bash
#SBATCH --job-name=lmp_nocona
#SBATCH --partition=nocona
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=128
#SBATCH --output=%N.%j.out
#SBATCH --error=%N.%j.err
#SBATCH --time=00:10:00
module load gcc/14.2.0 openmpi/5.0.5 nwchem/7.2.3
# Prevent OpenMP thread oversubscription since NWChem primarily scales via MPI
# For better optimization, the stack cache size per OPM thread should be equal to L3 Cache size
export OMP_NUM_THREADS=1
OMP_STACKSIZE="32M"
mpirun -np $SLURM_NTASKS --bind-to core nwchem input.nw
#!/bin/bash
#SBATCH --job-name=lmp_nocona
#SBATCH --partition=nocona
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=128
#SBATCH --output=%N.%j.out
#SBATCH --error=%N.%j.err
#SBATCH --time=00:10:00
module load aocc/4.2.0 openmpi/5.0.5 nwchem/7.2.3-omp
# Prevent OpenMP thread oversubscription since NWChem primarily scales via MPI
# For better optimization, the stack cache size per OPM thread should be equal to L3 Cache size
export OMP_NUM_THREADS=1
OMP_STACKSIZE="32M"
mpirun -np $SLURM_NTASKS --bind-to core nwchem input.nw
#!/bin/bash
#SBATCH --job-name=lmp_nocona
#SBATCH --partition=quanah
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=36
#SBATCH --output=%N.%j.out
#SBATCH --error=%N.%j.err
#SBATCH --time=00:10:00
module load gcc/14.2.0 openmpi/4.1.6 nwchem/7.2.3
# Prevent OpenMP thread oversubscription since NWChem primarily scales via MPI
export OMP_NUM_THREADS=1
mpirun -np $SLURM_NTASKS --map-by socket --bind-to core nwchem input.nw
Then submit this job using the sbatch command. Please make sure to edit the following Slurm parameters as needed:
Number of nodes (--nodes): If you want to scale out your job to run across multiple worker nodes.
Number of MPI tasks (--ntasks-per-node): We recommend setting this parameter to the maximum number of available CPU cores
per node on each partition.
Wall time (--time): If your job wont take longer than 10 hours, leave it as it is. Adjust the wall time
based on how long you estimate your job will take.
Please contact HPCC support at hpccsupport@ttu.edu if you have any questions.
High Performance Computing Center
-
Phone
806.742.4350 -
Email
hpccsupport@ttu.edu