Vasp¶
VASP at Arrhenius¶
This section describes VASP installations on Arrhenius-CPU and GPU. For further information, also refer to the README-files on Arrhenius for running on CPU nodes:
and for GPU nodes:- 2026-11-12: for running on GPU OMPI+NVHPC builds directly (without module), set
export OMPI_MCA_btl=^ofi - Arrhenius GPU-node VASP performance is OK again after switch back to 64k page size OS (slower in Aug and up to Sep week 38 due to 4k page OS)
- this page (and the
README.txtfiles) will be updated as changes are made - recommendations may change with system updates, as well as for clarity and better performance
- if questions or problems remain, e.g. to install special versions of VASP, or running calculations, you're very welcome to contact NAISS support
Further information & training¶
To get started with using VASP, refer to the extensive VASP wiki which includes many examples and topics, e.g. details for preparing the INCAR, POSCAR, POTCAR and KPOINTS input files. It can also be of interest to check the VASP forum and other resources available at the VASP webpage.
At times, NAISS training will arrange seminars and workshops on VASP, with a focus on beginners and best practices for running at NAISS supercomputers, check the schedule here. For recent events, see e.g. presentations and material for a workshop given in 2024, or a recent seminar.
License and access¶
VASP.5¶
For access to VASP.5 we need to check your license membership at the VASP portal. You might already have been added from a check done for an old NAISS cluster, e.g. Tetralith. If typing "groups" shows membership in "arrhpc-sse-license-vasp5", access is already active. If not yet added, please send a support request together with the email which was used for registration.
On Arrhenius, the latest version 5.4.4.pl2 is installed (also covered by VASP.6 license).
VASP.6¶
A VASP.6 license typically includes upgrades for 3 years. Thereafter, it needs to be renewed for further updates. The valid-to date can be found by login to the VASP portal. By generating a user specific license key for VASP.6, it's possible to run versions up to the end date (also shown inside the key). For the exact details on how to generate a key file, refer to instructions in:
Note that license keys are valid for 3 months, a warning message shows 1 month before it expires. For continued access, generate a new key.POTCAR¶
The PAW potentials of the different elements are provided in the POTCAR libraries. Read more about on how to select them here. The latest POTCAR library (ver. 64) is not yet included with the VASP.6 license key system. It can be downloaded by the license holder (or contact person) at the VASP portal.
Previous POTCAR libs (ver. 52 and 54) distributed with VASP.5 are available with license in:
Installations¶
- the binaries have hard-linked paths to their run-time libraries (i.e. no need to load any other modules)
- installation directories also contain
makefile.includeand a recipe filebuild.txt vdw_kernel.bindatfile path is set for VASP =< 6.4.2, see comment- read-only fix for POTCARs is applied, as done e.g. at Dardel and LUMI clusters
HDF5is typically enabled, necessary for py4vasp and some special tasks- OpenMP is included for VASP.6, hybrid MPI/OpenMP calculations are possible
General notes and observations so far on Arrhenius (which may depend on local setup and configurations):
- GNU+MPICH builds are faster than regular Intel builds, which in turn become fastest when adjusting MKL behaviour
- Note that walltimes may differ when running on a shared CPU-node (for benchmarks, need to run series of the same test)
- VASP.6 testsuite (ca. 300 tests) has less failures for Intel as compared with GNU+MPICH. No failures on NVHPC+OMPI (GPU)
Modules¶
The VASP modules are found by:
At the moment, modules are for regular VASP builds. It's typically recommended to use the latest version, if possible. If there are several options, selecthpcX with the highest X in the module name, for the most recent fix. Installations using alternative build environments, utility or special patched versions, can be run directly from their corresponding paths.
VASP binaries¶
When loading a module or setting a path to an installation, the following binaries become available
- vasp_std: the regular binary for more than 1 k-point
- vasp_gam: single gamma-point binary, for faster calculations (e.g. big supercells)
- vasp_ncl: for spin-orbit coupling and non-collinear calculations
Special builds¶
VASP can be compiled for use together with certain software and there are also patches which provide different functionalities. A list of common utility builds include:
- constrained structure relaxation, available by default from 6.5.0
- Wannier90, code for generating maximally-localised Wannier functions
- BEEF, package for BEEF-vdW functionals and Bayesian error estimates
- libxc, library of exchange-correlation and kinetic energy functionals
- VASP VTST Tools, source code and scripts for finding saddle points and evaluating transition state theory (TST) rate constants
- VASPsol, implicit solvation model that describes the effect of electrostatics, cavitation, and dispersion on the interaction between a solute and solvent
- VASPsol++, framework for implementing complex continuum fluid models
- DFT-D4, adding vdW interaction term to the total energy
If a special installation is needed, check with NAISS support.
List of installations at Arrhenius¶
For an overview and quick update, also refer to the README.txt files at Arrhenius:
6.6.1 (w90)¶
This is the most recent version 6.6.1. It is a patch release, for the serious bug in 6.6.0 (see below) and other fixes. Available modules:
Extra builds include usingintel-2025b and Wannier90 3.1 (serial). The paths are:
/software/sse2/el9_epyc9005/manual/vasp/6.6.1.17072026
/software/sse2/el9_gh200/manual/vasp/6.6.1.17072026
6.6.0 (hpc2: patch)¶
Version 6.6.0 was a major update. For example, with X-ray absorption using BSE, cRPA, Nuclear Magnetic Resonance (NMR), checkpointing for phonon calculations. Also new features and improvements for machine-learning force fields.
Note: a serious bug was found in this version, forces with meta-GGA functionals were wrong in the spin-polarized case (ISPIN=2). Therefore, use the patched hpc2 module!
Available modules:
VASP/6.6.0-hpc2-gcc-2026.03-mpich
VASP/6.6.0-gcc-2026.03-mpich
GPU/VASP/6.6.0-hpc2-max1node-nvhpc-25.9-cu13.0
GPU/VASP/6.6.0-max1node-nvhpc-25.9-cu13.0
intel-2025b. The paths are (patched builds in hpc2 and tst2 directories):
/software/sse2/el9_epyc9005/manual/vasp/6.6.0.06032026
/software/sse2/el9_gh200/manual/vasp/6.6.0.06032026
6.5.1¶
Version 6.5.1 included many fixes and improvements of the previous major update. Available modules:
Extra builds include usingintel-2025b. The paths are:
/software/sse2/el9_epyc9005/manual/vasp/6.5.1.10032025
/software/sse2/el9_gh200/manual/vasp/6.5.1.10032025
6.5.0 (w90)¶
Version 6.5.0 included new features and improvements, in particular for electron-phonon coupling, BSE and machine-learned force fields. Available modules:
Extra builds include usingintel-2025b. The paths are:
/software/sse2/el9_epyc9005/manual/vasp/6.5.0.16122024
/software/sse2/el9_gh200/manual/vasp/6.5.0.16122024
6.4.3 (VTST, D4)¶
Version 6.4.3 included new features, fixes and improvements, e.g. interface to libMD. Extra builds include using intel-2025b, as well as VTST and DFT-D4. The paths are:
/software/sse2/el9_epyc9005/manual/vasp/6.4.3.19032024
/software/sse2/el9_gh200/manual/vasp/6.4.3.19032024
6.4.2¶
Version 6.4.2 included several fixes, mostly related to the ML part. Extra builds include using intel-2025b. The paths are:
/software/sse2/el9_epyc9005/manual/vasp/6.4.2.20072023
/software/sse2/el9_gh200/manual/vasp/6.4.2.20072023
6.3.2 (VTST, VASPsol, VASPsol++)¶
Version 6.3.2 included assorted bug fixes and improvements from earlier VASP.6. Extra builds include using intel-2025b, for this CPU-build also VTST together with VASPsol or with VASPsol++ are available.
The path is:
5.4.4.pl2 (w90, VTST, OMC)¶
This is the last patched update of VASP.5. Available modules:
Extra builds includeWannier90 2.1, VTST and with occupation matrix control.
The path is:
Running on Arrhenius-CPU¶
Note that an Arrhenius CPU-node is "big" with 2x128 = 256 cores, so corresponding to "8x Tetralith" or "2x Dardel-CPU" nodes, with 2.70 GB RAM per core (similar to Tetralith) and 11.56 GB/core for a fewer number of "fat memory" nodes.
A "natural unit" on an Arrhenius CPU-node is a NUMA-zone which contains 32 cores, so if a job isn't "too big" it's useful to benchmark it starting from multiples of NUMA-zones, 32, 64 and so on. In most cases, this is a better approach than starting from full nodes on Arrhenius.
Beware of using #SBATCH -N 1 on Arrhenius-CPU, since this always allocates a full node with 256 cores (unless that's the goal).
- NCORE=32 (or 16), if allocating multiples of 32 (16) cores in a job, typically a big improvement from default (NCORE=1)
- NSIM=8, 16, 32 usually some improvement from default (NSIM=4)
- KPAR, i.e. k-point parallelisation, can give a big improvement, but not always, it's important to check. Default is KPAR=1. Check number of k-points in e.g. IBZKPT, divide evenly over the multiples of allocated cores or nodes
- Intel builds compiled with
-xHOSTand using the adjustment for MKL (see below) is typically faster
Best is to perform tests, e.g. check electronic steps of the same type by "grep LOOP OUTCAR". This becomes more important for larger jobs and using more resources (efficient scaling).
Though, note that running on a partial node, e.g. 32 cores, while the rest of the node is open for other jobs, impacts the walltime in different ways. This means that it's difficult to draw conclusions on the impact of different builds and parallelisation parameters from just a single run.
The project cost based in "core-hours" depends on how long (walltime) a certain amount of resources (cores) are allocated, independent on actual usage (since if they're allocated, they're removed from the available resource pool). Therefore efficient usage is important, such that more work can be done in total.
CPU job script examples¶
For CPU runs it's typically recommended to use the MPI helper script "mpprun". For further details check mpprun --help. Another alternative is to use srun.
In the examples below a module is loaded for access to VASP, alternatively one can set the direct path to use a specific build, e.g.:
or, for the alternative intel build, where one needs to setI_MPI_ADJUST_REDUCE=3 to avoid "BRMIX" type problems and adjusting MKL behaviour for possible faster calculations:export PATH=/software/sse2/el9_epyc9005/manual/vasp/6.6.1.17072026/intel-2025b/hpc1:$PATH
export LD_PRELOAD=/software/sse2/el9_epyc9005/manual/vasp/mklfix/tst1/libmklfixamd.so
export I_MPI_ADJUST_REDUCE=3
Example 1: regular job using 32 cores
#!/bin/bash
#SBATCH -A naiss20XX-Y-ZZZ-cpu
#SBATCH -p cpu
#SBATCH -t 1:00:00
#SBATCH -n 32
#SBATCH -J vasp
module load VASP/6.6.1-gcc-2026.03-mpich
mpprun vasp_std
-N 1, a whole Arrhenius CPU-node is allocated with 256 cores, this could be very wasteful if the job can't use it efficiently. An alternative to mpprun is to directly use srun, in this case it would look like
Example 2: similar as above, but using an intel build
#!/bin/bash
#SBATCH -A naiss20XX-Y-ZZZ-cpu
#SBATCH -p cpu
#SBATCH -t 1:00:00
#SBATCH -n 32
#SBATCH -J vasp
export PATH=/software/sse2/el9_epyc9005/manual/vasp/6.6.1.17072026/intel-2025b/hpc1:$PATH
export LD_PRELOAD=/software/sse2/el9_epyc9005/manual/vasp/mklfix/tst1/libmklfixamd.so
export I_MPI_ADJUST_REDUCE=3
mpprun vasp_std
I_MPI_ADJUST_REDUCE=3 for correct results. Setting LD_PRELOAD typically gives faster calculations, compared with GNU-MPICH and Intel builds without it.
Example 3: memory hungry job, if one gets OOM (Out Of Memory), allocate more cores, e.g. from 32 to 64 cores for larger memory
#!/bin/bash
#SBATCH -A naiss20XX-Y-ZZZ-cpu
#SBATCH -p cpu
#SBATCH -t 1:00:00
#SBATCH -n 32
#SBATCH -c 2
#SBATCH -J vasp
module load VASP/6.6.1-gcc-2026.03-mpich
export OMP_NUM_THREADS=1
mpprun vasp_std
OMP_NUM_THREADS=1, the memory of all the 64 cores is made available to the 32 MPI-ranks. An alternative is to do MPI/OpenMP hybrid calculations, here using the requested threads
which might possibly give a faster calculation, as well as saving memory.
An alternative to mpprun is to use srun together with the flag --mem=0 in order to access all memory on allocated cores. For the above example one would set
#SBATCH -p gpu, this can also be combined with the above methods.
Running on Arrhenius-GPU¶
For VASP, a single MPI-rank is used per GPU, with a number of OpenMP threads over the corresponding ARM CPU. Each Arrhenius GPU-node has 4x Nvidia GH200 superchips, which consists of a Hopper GPU and Grace CPU (72 cores). For efficient calculations, it's reasonable to start with testing a single superchip.
Note, in the majority of cases, it's expected that a single GH200 superchip will be the most efficient way to run a job.
The project cost is based on "GPU-hours", which is exactly as it sounds. Allocating 1x GH200 for 1h costs 1 GPU-hour and 2x GH200 for 1 h costs 2 GPU-hours.
Beware of using #SBATCH -N 1 on Arrhenius-GPU, since this always allocates a full node with 4 GPUs (unless that's the goal).
- NCORE isn't used on GPU (resets to = 1)
- NSIM=32, 64 typically some improvment using larger values than default = 4
- KPAR, i.e. k-point parallelisation, in some case gives a big speed-up. In particular, KPAR is needed for efficiently running over several GPU-nodes, may improve (but not always) also over GPUs
- OMP_NUM_THREADS, testing with -c 8, but higher values might increase performance. Max 72 (CPU cores) usually too high
- NBLOCK_FOCK=64 for hybrid (HSE06) calculations, sometimes improves (default = 32)
- Note that "too small" jobs aren't efficient to run on GPU, as compared with CPU. GPU is better for medium and larger sized jobs. Also hybrid (HSE06) jobs perform well
- As for CPU runs, one can do similar tests e.g. comparing electronic steps. What is best may depend on specific job and combination of parameters
GPU job script examples¶
In a job script one needs to load a VASP module, at the moment available for regular NVHPC+OMPI builds, alternatively to directly set the PATH for a specific build. For example, to use 6.6.1 with Wannier90:
export OMPI_MCA_btl=^ofi
export PATH=/software/sse2/el9_gh200/manual/vasp/6.6.1.17072026/nvhpc-25.9-cu13.0-ompi/w90/3.1.0/tst1:$PATH
export OMPI_MCA_btl=^ofi for the GPU OMPI builds.
For NVHPC+OMPI (as in the above example) it is needed to use srun with:
where "--mpi=pmix" is removed when using the alternative NVHPC+MPICH installations for multi-node runs.
The below recommendations may change depending on system updates, as well as for clarity and performance.
Note: the number of OpenMP threads (which are running on the CPU) are an example, during tests -c 8 was most often sufficient (and < 8 usually worse), but a larger number might give a speed-up depending on job. Typically, using the maximum 72 threads gave bit worse performance.
Beware of requesting full nodes, e.g. -N 1, as that allocates all 4x GH200 on an Arrhenius-GPU node, if not also setting the use of 4 GPUs --gpus=4 and 4 MPI-ranks -n 4. The project cost is always the allocated resource x walltime, independent of actual use (since they're not in the resource pool when allocated).
Due to the high possible cost in GPU-hours in case a job stalls (i.e. runs the full walltime without producing output), it's advisable to not set the walltime "too high", unless needed.
Note: NVHPC+OMPI builds now work over several GPU-nodes, though also compare with NVHPC+MPICH builds for multi-node GPU runs (Example 3 below).
Changes in recommendations:
- For NVHPC+OMPI set
export OMPI_MCA_btl=^ofiif running directly (without module) - to get all ARM-CPU memory, use
srun --mem=0instead of "#SBATCH --mem=0" (otherwise allocates whole GPU-node!) - no need to set "#SBATCH --network=single_node_vni" anymore
Example 1: a job running on 1x GH200 (1 GPU + 1 CPU)
#!/bin/bash
#SBATCH -A naiss20XX-Y-ZZZ-gpu
#SBATCH -p gpu
#SBATCH -t 1:00:00
#SBATCH --gpus=1
#SBATCH -n 1
#SBATCH -c 72
#SBATCH -J vasp
module load GPU/VASP/6.6.1-max1node-nvhpc-25.9-cu13.0
srun --mem=0 --mpi=pmix -n 1 -c 8 --gpus 1 -m block:block vasp_std
--mem=0 is for reserving all memory on the CPU, note that it should be used with srun.
Running the same build from its path without using the module:
export OMPI_MCA_btl=^ofi
export PATH=/software/sse2/el9_gh200/manual/vasp/6.6.1.17072026/nvhpc-25.9-cu13.0-ompi/tst1:$PATH
srun --mem=0 --mpi=pmix -n 1 -c 8 --gpus 1 -m block:block vasp_std
Example 2: increase OpenMP threads on the CPU for the 1x GH200 job
#!/bin/bash
#SBATCH -A naiss20XX-Y-ZZZ-gpu
#SBATCH -p gpu
#SBATCH -t 1:00:00
#SBATCH --gpus=1
#SBATCH -n 1
#SBATCH -c 72
#SBATCH -J vasp
module load GPU/VASP/6.6.1-max1node-nvhpc-25.9-cu13.0
srun --mem=0 --mpi=pmix -n 1 -c 32 --gpus 1 -m block:block vasp_std
Example 3: run on multiple GPU-nodes using an NVHPC+MPICH build
#!/bin/bash
#SBATCH -A naiss20XX-Y-ZZZ-gpu
#SBATCH -p gpu
#SBATCH -t 1:00:00
#SBATCH --gpus=8
#SBATCH -n 8
#SBATCH -c 72
#SBATCH -J vasp
export OMP_NUM_THREADS=12
export OMP_PROC_BIND=spread
export PATH=/software/sse2/el9_gh200/manual/vasp/6.6.1.17072026/nvhpc-25.9-cu13.0-mpich/tst1:$PATH
srun --mem=0 -n 8 -c 12 --gpus 8 -m block:block vasp_std
Problems & solutions¶
If a job crashes or fails in some way, have a look if there are warning messages in the slurm output file, slurm-JOBID.out. For a finished job, one can get a summary of its run using seff JOBID. The running or queued jobs on Arrhenius can be listed with
jobsh NODENAME to check processes e.g. using top or htop. Previous runs can be quickly listed with lastjobs. It can be useful to check if someone had similar problems, comparing cases at the VASP forum. Known issues in different VASP versions is listed here.
Out of memory (OOM)¶
This is among the most common problems, it can be fixed either by increasing available RAM for a calculation, or by reducing its need. The easiest solution is to ask for more resources, so on a CPU-node increase the number of allocated cores (see job script example above). An alternative is to run on "fat memory" nodes #SBATCH -p fat with an increase from ca. 3 to 12 GB/core. For GPU-nodes, one might need to run on more GPUs to access more memory, though first check that all the memory on the CPU part is allocated (srun --mem=0).
A different way is to reduce the need for memory by reducing the size of the problem (if possible), e.g. with fewer k-points or a smaller plane-wave energy cutoff ENCUT, or with fewer atoms in the supercell. Also refer to discussion at the VASP wiki on not enough memory and memory requirements.
Job stalls without crashing¶
We have seen that sometimes jobs using KPAR parallelisation stall, i.e. after some steps run the full walltime with no new output. If this happens, a possible solution might be to restart the job, or if that doesn't work to try a different installation. For example, test with an alternative build compiled with buildenv-intel/2025b-eb.
Another possibility, in particular if there are several jobs which stall at the same time, could be a temporary disturbance of filesystem I/O.
BRMIX: very serious problems the old and the new charge density differ¶
This is a common problem when using intel-MPI on Arrhenius (and previously Tetralith), it's related to MPI_REDUCE calls, which can be avoided by setting:
Source repository