Skip to content
NAISS Logo Allocations Support Training Software naiss.se

Gamess

How to use on Arrhenius

Load the module using:

ml GAMESS-US/Jul152024R2P1-gcc-2026.03-mpich-eb

How to run MPI jobs

Running a job on a single node with X tasks, where GAMESS divides the job automatically into X/2 compute tasks and X/2 for managing data:

#!/bin/bash
#SBATCH -A YYYY-YY-YY
#SBATCH -J gamesjob
#SBATCH -t 00:10:00
#SBATCH -p cpu
#SBATCH -N 1
#SBATCH -n X
#SBATCH --cpus-per-task=1
# load the GAMES-US module
module load GAMESS-US/Jul152024R2P1-gcc-2026.03-mpich-eb

export OMP_NUM_THREADS=1
export OPENBLAS_NUM_THREADS=1

# load the GAMES-US module
module load GAMESS-US/Jul152024R2P1-gcc-2026.03-mpich-eb

# execute the code
rungms input.inp Jul152024R2P1 X X > output.log

Running a job on two nodes with X tasks, where GAMESS divides the job automatically into X/2 compute tasks and X/2 for managing data:

#!/bin/bash
#SBATCH -A YYYY-YY-YY
#SBATCH -J gamesjob
#SBATCH -t 00:10:00
#SBATCH -p cpu
#SBATCH -N 2
#SBATCH -n X
#SBATCH --ntasks-per-node=X/2
#SBATCH --cpus-per-task=1
# load the GAMES-US module
module load GAMESS-US/Jul152024R2P1-gcc-2026.03-mpich-eb

export OMP_NUM_THREADS=1
export OPENBLAS_NUM_THREADS=1

# load the GAMES-US module
module load GAMESS-US/Jul152024R2P1-gcc-2026.03-mpich-eb

# execute the code
rungms input.inp Jul152024R2P1 X X/2 > output.log

Example with X=28 tasks:

#!/bin/bash
#SBATCH -A YYYY-YY-YY
#SBATCH -J gamesjob
#SBATCH -t 00:10:00
#SBATCH -p cpu
#SBATCH -N 2
#SBATCH -n 28
#SBATCH --ntasks-per-node=14
#SBATCH --cpus-per-task=1
# load the GAMES-US module
module load GAMESS-US/Jul152024R2P1-gcc-2026.03-mpich-eb

export OMP_NUM_THREADS=1
export OPENBLAS_NUM_THREADS=1

# load the GAMES-US module
module load GAMESS-US/Jul152024R2P1-gcc-2026.03-mpich-eb

# execute the code
rungms input.inp Jul152024R2P1 28 14 > output.log