Running and Verifying VASP
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following commands to create and go to the working directory:
mkdir -p /path/to/CASE cd /path/to/CASE
- Prepare the test case described in Table 2 and copy the case to the /path/to/CASE directory.
- Run the following commands to set environment variables:
export PATH=/path/to/GNU/install/bin:$PATH export LD_LIBRARY_PATH=/path/to/GNU/install/lib64:$LD_LIBRARY_PATH export PATH=/path/to/OPENMPI/bin:/home/vasp/bin:$PATH export LD_LIBRARY_PATH=/path/to/OPENMPI/lib:/path/to/OPENBLAS/lib:/path/to/SCALAPACK: /path/to/FFTW/lib:$LD_LIBRARY_PATH
- Run the following command to create a host file:
- Create host.
vi hostfile
- Press i to enter the insert mode and add the following content:
node1 node2
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Create host.
- Run the following command to start the VASP program:
mpirun --allow-run-as-root -np 96 -x OMP_NUM_THREADS=1 --hostfile hostfile vasp_std 2>&1 | tee -a vasp.out
Table 1 Parameters Parameter
Description
-np
Number of cores to be used.
--hostfile
Name of the node to be used.
If the information shown in Figure 1 is displayed at the end of the OUTCAR log generated by VASP, the VASP program ends normally.
Check the value of real time in the OUTCAR log. The unit is second. A smaller value indicates better performance.
Figure 1 shows the command output.
Parent topic: VASP 5.4.4 Porting Guide (CentOS 7.6)
