vasp


vasp需要parallel_studio_xe_2018_update4_cluster_edition.tgz的intel mpi支持,openMPI需要更改makefile參數,麻煩
/etc/profile.d/intel.sh --> source /etc/profile.d/intel.sh ifort --version
source /opt/intel/bin/compilervars.sh intel64 也是鏈接文件
source /opt/intel/compilers_and_libraries/linux/mkl/bin/mklvars.sh intel64


icpc: error #10417: Problem setting up the Intel(R) Compliler compilation environment, Requires 'install path' setting gatherd from 'g++'
yum install gcc gcc-c++
linux 默認無g++ gcc-c++ :c++ support for GCC

編譯gpu版本的vasp需要cuda
makefile.include配置文件中:

FFLAGS = -assume byterecl -w -xHOST 改為 FFLAGS = -assume byterecl -w -heap-arrays 64

CUDA_ROOT ?= /usr/local/cuda cuda的默認路徑,為一個鏈接,一般不用改

GENCODE_ARCH := -gencode=arch=compute_30,code=\"sm_30,compute_30\" 根據顯卡算力值修改數值 30為顯卡算例*10

運行算例:
進到算例目錄,nohup mpirun -np 96 vasp_std > out & ##### cpu跑的

gpu跑算例:
1. nohup vasp_gpu > out & 單gpu跑
2. nohup mpirun -np 5 -genv CUDA_VISIBLE_DEVICES=0,1,2,3,4,5 vasp_gpu > out & 用mpi,cuda多顯卡跑

算例中:
INCARS LREAL = Auto 才能用gpu,否則報錯
KPOINTS 9 9 1 調低,算例變小,前兩個一般相同

nvidia-smi [-L]
nvcc --version nvidia cuda compiler

在vasp運行過程中,INCARS KPOINTS POSCAR POTCAR四個原文件不會發生改變,算例不同,可能能使用的顯卡數目不同,跟INCARS中參數有關


Gaussian

export g16root=/opt/ohpc/pub/apps
export GAUSS_SCRDIR=/data/tmp 必須存在此目錄
source $g16root/g16/bsd/g16.profile g16為解壓后的Gaussian根目錄
export PATH=$g16root/g16:$PATH

/opt/ohpc/pub/apps/g16/bsd/install

g16 < $g16root/tests/com/*.com > out g16/tests/com 目錄下有算例

結合PBS
#PBS -N NAME
#PBS -o test.out
#PBS -e test.err
#PBS -l select=host=cn4:ncpus=20
export GAUSS_EXEDIR='/opt/ohpc/pub/apps/g16:/opt/ohpc/pub/apps/g16/bsd'
export GAUSS_PDEF='37'
/opt/ohpc/pub/apps/g16/g16 test.com

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM