24小时热门版块排行榜    

查看: 1163  |  回复: 0

A宝禄计算

银虫 (初入文坛)

[交流] Installing VASP.6.X.X

Installing VASP.6.X.X
Jump to navigationJump to search
As a license holder, you can download the source code of VASP from the VASP Portal. If your system fulfills the requirements, you can install VASP.6.X.X by following the steps below.

Contents
1Requirements
2Install VASP
2.1Step 1: Download
2.2Step 2: Prepare makefile.include
2.3Step 3: Make
2.4Step 4: Test
2.5Step 5: Install
3Subdirectories in vasp.6.x.x
4Related sections
Requirements
For the compilation of VASP one needs:
Compilers for Fortran (at least F2008 compliant), C, and C++. For instance, one of the following compiler suites:
- gcc
- intel-oneapi-base-kit+intel-oneapi-hpc-kit
- NVIDIA HPC-SDK
- AOCC (for AMD CPUs)
Mind: For the OpenACC GPU port of VASP (to run on GPUs) on must use the compilers from the NVIDIA HPC-SDK (>=21.2).
Numerical libraries: FFTW, BLAS, LAPACK, and ScaLAPACK. For instance, one of the following:
- intel-oneapi-mkl
- FFTW + OpenBLAS + ScaLAPACK
- NVIDIA HPC-SDK (comes with OpenBLAS and ScaLAPACK) + FFTW
- AOCL (for AMD CPUs)
An implementation of the Message Passing Interface (MPI). For instance, one of the following:
- intel-oneapi-mpi
- OpenMPI
- NVIDIA HPC-SDK (comes with OpenMPI)
To find a combination of compilers and libraries that works, have a look at our list of validated toolchains. On a personal computer, i.e., your desktop machine or laptop, you may use these validated instructions.
Install VASP
Step 1: Download
Download the source code of VASP from the VASP Portal, copy it to the desired location on your machine, and unzip the file to obtain the folder /path/to/vasp.x.x.x and reveal its content.
Step 2: Prepare makefile.include
Create a makefile.include starting from a template in /path/to/vasp.x.x.x/arch that resembles your system:
cp arch/makefile.include.your_choice  ./makefile.include
Adapt your makefile.include file to your system and select optional features.
Step 3: Make
Build VASP with
make DEPS=1 -jN <target>
where DEPS=1 -jN is optional and selects the parallel mode of make with N being the number of jobs you want to run, and <target> corresponds to std, gam, ncl or all. This builds the standard, gamma-only, non-collinear or all versions of VASP. The executables are vasp_std, vasp_gam, and vasp_ncl, respectively, which are located at /path/to/vasp.X.X.X/bin/.
Step 4: Test
Warning: VASP.6.1.0, VASP.6.1.1, and VASP.6.1.2 have a potentially serious issue related to the test suite. Please read about it here.
Run the test suite with
make test
to confirm the build was successful.
Tip: If there are issues, the VASP Forum [installation issues] is the appropriate place to seek support.
Step 5: Install
Copy the executables to the system $PATH or append /path/to/vasp.x.x.x/bin/ to the environment variable with
export PATH=$PATH:/path/to/vasp.x.x.x/bin
for instance in your ~/.bashrc.
Subdirectories in vasp.6.x.x
The build system of VASP (as of versions >= 5.4.1) comprises the following subdirectories:
                  vasp.x.x.x (root directory)
                               |
         ------------------------------------------------
        |        |        |         |          |         |
       arch     bin     build      src     testsuite   tools
                                    |
                              -------------
                             |      |      |      
                            lib   parser  fftlib
/path/to/vasp.x.x.x/
Holds the high-level makefile and several subdirectories.
/path/to/vasp.x.x.x/src
Holds the source files of VASP and a low-level makefile.
/path/to/vasp.x.x.x/src/lib
Holds the source of the VASP library (used to be vasp.X.lib) and a low-level makefile.
/path/to/vasp.x.x.x/src/parser
Holds the source of the LOCPROJ parser (as of versions >= 5.4.4) and a low-level makefile.
/path/to/vasp.x.x.x/src/fftlib
Holds the source of the fftlib library that may be used to cache fftw plans.
/path/to/vasp.x.x.x/arch
Holds a collection of makefile.include.* files.
/path/to/vasp.x.x.x/build
The different versions of VASP, i.e., the standard, gamma-only, non-collinear versions will be built in separate subdirectories of this directory.
/path/to/vasp.x.x.x/bin
Here make will store the executables.
/path/to/vasp.x.x.x/testsuite
Holds a suite of correctness tests to check your build.
/path/to/vasp.x.x.x/tools
Holds several python scripts related to the use of HDF5 input/output files.
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 A宝禄计算 的主题更新
普通表情 高级回复 (可上传附件)
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 330求调剂 +3 ?酱给调剂跪了 2026-03-13 3/150 2026-03-14 10:13 by JourneyLucky
[考研] 267求调剂,一志愿厦大0856,有竞赛有科研经历 +3 想上九八五 2026-03-07 4/200 2026-03-14 05:41 by JourneyLucky
[考研] 求调剂(070300) +3 很老实人 2026-03-07 3/150 2026-03-14 05:39 by JourneyLucky
[考研] 332分材料工程调剂 +3 莓好时光海苔 2026-03-09 3/150 2026-03-14 02:03 by JourneyLucky
[考研] 0703求调剂 +7 jtyq001 2026-03-10 7/350 2026-03-14 01:06 by JourneyLucky
[基金申请] 现在如何回避去年的某一个专家,不知道名字 10+3 zk200107 2026-03-12 5/250 2026-03-14 00:38 by zhanghaozhu
[考研] 求调剂,一志愿江南大学环境工程085701 +3 Djdjj12 2026-03-10 4/200 2026-03-14 00:31 by JourneyLucky
[考研] 材料与化工(0856)304求B区调剂 +6 邱gl 2026-03-12 7/350 2026-03-13 23:24 by 邱gl
[考研] 085600材料与化工 求调剂 +7 enenenhui 2026-03-13 8/400 2026-03-13 22:19 by 星空星月
[考研] 0856材料与化工301求调剂 +5 奕束光 2026-03-13 5/250 2026-03-13 22:00 by 星空星月
[考研] 315求调剂 +9 小羊小羊_ 2026-03-11 10/500 2026-03-13 21:13 by SXNU李老师
[考研] 材料与化工085600调剂求老师收留 +9 jiaanl 2026-03-11 9/450 2026-03-13 20:22 by JourneyLucky
[考研] 化学学硕求调剂 +8 努力奋斗112 2026-03-12 9/450 2026-03-13 15:41 by JourneyLucky
[考研] 一志愿华中师范071000,325求调剂 +5 RuitingC 2026-03-12 5/250 2026-03-13 10:43 by hyswxzs
[考研] 材料专硕274一志愿陕西师范大学求调剂 +4 薛云鹏 2026-03-13 4/200 2026-03-13 10:40 by 学员8dgXkO
[考研] 一志愿河海大学085900土木水利专硕279求调剂不挑专业 +4 SunWwWwWw 2026-03-10 8/400 2026-03-13 02:23 by SunWwWwWw
[考研] 材料工程307,求调剂 +7 我要燃烧你的梦 2026-03-08 7/350 2026-03-11 09:09 by 剑诗杜康
[考研] 材料与化工求调剂 +11 与冬清宁 2026-03-07 14/700 2026-03-10 14:23 by Linda Hu
[硕博家园] 木虫好像不热闹了,是不是? +4 偏振片 2026-03-10 4/200 2026-03-10 09:51 by longwave
[教师之家] 交大前校长王树国:现在最先进的科技并不在大学实验室,而是在企业研究院 +4 zju2000 2026-03-08 6/300 2026-03-08 19:15 by zju2000
信息提示
请填处理意见