




已阅读5页,还剩12页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
一、 背景介绍简介:用密度泛函理论计算固体的电子结构。它基于键结构计算最准确的方案完全势能(线性)增广平面波(L)APW)+局域轨道(lo)方法。在密度泛函中可以使用局域(自旋)密度近似(LDA)或广义梯度近似(GGA)。WIEN 2000使用全电子方案,包含相对论影响。 功能:计算固体特性。键能和态密度,电子密度和自旋密度,X射线结构因子,Baders的“分子中的原子”概念,总能量,力,平衡结构,结构优化,分子动力学,电场梯度,异构体位移,超精细场,自旋极化(铁磁性和反铁磁性结构),自旋-轨道耦合,X射线发射和吸收谱,电子能量损失谱计算固体的光学特性费米表面LDA,GGA,meta-GGA,LDA+U,轨道极化中心对称和非中心对称晶格,内置230个空间群图形用户界面和用户指南友好的用户环境W2web (WIEN to WEB)可以很容易的产生和修改输入文件。它还能帮助用户执行各种任务(如电子密度,态密度,等)。 平台:unix /linux二、 软件的安装设置1、硬件环境Shanghai/Suse 10u22、软件版本Ver:wien2k093、安装Intel 编译器ifort/iccVer:11.0834、安装Intel的MKLVer:245、安装mpich v1.2.7./configure -c+=icpc -cc=icc -f77=ifort -f90=ifort -prefix=/home/soft/mpi/mpich-1.2.7-intelmakemake install6、设置环境变量vi /.bashrc添加如下:#MPICH#export PATH=/home/soft/mpi/mpich-1.2.7-intel/bin:$PATH#intel compiler#. /home/soft/intel/Compiler/11.0/083/bin/intel64/ifortvars_intel64.sh. /home/soft/intel/Compiler/11.0/083/bin/intel64/iccvars_intel64.sh#intel mkl#export LD_LIBRARY_PATH=/home/soft/intel/mkl/24/lib/em64t/:$LD_LIBRARY_PATH7、安装fftw库tar zxf fftw-2.1.5.tar.gzcd fftw-2.1.5/export F77=ifortexport CC=icc./configure -prefix=/home/soft/mathlib/fftwv215-mpich -enable-mpimakemake install8、创建编译目录进入安装用户目录su - mjhemkdir /WIEN2k_09cp WIEN_2k.tar /WIEN2k_099、将压缩包解开cd /WIEN2k_09tar xf WIEN2k_09.tar./expand_lapw10、 编译./siteconfig_lapw其中几个编译参数需要修改: (可以参考如下)specify a systemK Linux (Intel ifort 10.1 compiler + mkl 10.0 )specify compilerCurrent selection: ifortCurrent selection: iccspecify compiler options, BLAS and LAPACKCurrent settings:O Compiler options: -FR -mp1 -w -prec_div -pc80 -pad -align -DINTEL_VML -tracebackL Linker Flags: $(FOPT) -L/home/soft/intel/mkl/24/lib/em64t/ -pthread -i-staticP Preprocessor flags -DParallelmkl的库用静态的:R R_LIB (LAPACK+BLAS): /home/soft/intel/mkl/24/lib/em64t/libmkl_lapack.a /home/soft/intel/mkl/24/lib/em64t/libguide.a /home/soft/intel/mkl/24/lib/em64t/libmkl_core.a /home/soft/intel/mkl/24/lib/em64t/libmkl_em64t.aconfigure Parallel executionShared Memory Architecture? (y/n):nRemote shell (default is ssh) = sshDo you have MPI and Scalapack installed and intend to runfinegrained parallel? (This is usefull only for BIG cases)! (y/n) nCurrent selection: mpiifortCurrent settings:采用静态库RP RP_LIB(SCALAPACK+PBLAS): -lmkl_intel_lp64 /home/soft/intel/mkl/24/lib/em64t/libmkl_scalapack_lp64.a /home/soft/intel/mkl/24/lib/em64t/libmkl_sequential.a /home/soft/intel/mkl/24/lib/em64t/libmkl_blacs_lp64.a /home/soft/mathlib/fftwv215-mpich/lib/libfftw_mpi.a /home/soft/mathlib/fftwv215-mpich/lib/libfftw.a -lmkl /home/soft/intel/mkl/24/lib/em64t/libguide.a/RP RP_LIB(SCALAPACK+PBLAS): -lmkl_intel_lp64 /home/soft/intel/mkl/24/lib/em64t/libmkl_scalapack_lp64.a /home/soft/intel/mkl/24/lib/em64t/libmkl_sequential.a /home/soft/intel/mkl/24/lib/em64t/libmkl_blacs_lp64.a -L/data1/soft/lib/lib/ -lfftw_mpi -lfftw -lmkl /data1/soft/intel/mkl/20/lib/em64t/libguide.aFP FPOPT(p.options): $(FOPT)MP MPIRUN commando : mpirun -np _NP_ -machinefile _HOSTS_ _EXEC_Dimension Parameters该部分可以采用默认值,也可以设置为(4GB以上内存)PARAMETER (NMATMAX= 30000)PARAMETER (NUME= 1000)进入编译部分:Compile/RecompileA Compile all programs (suggested)主要在编译mpi并行版本的5个可执行文件时会出错,因此编译后需要检查以下文件是否存在:./SRC_lapw0/lapw0_mpi./SRC_lapw1/lapw1_mpi./SRC_lapw1/lapw1c_mpi./SRC_lapw2/lapw2_mpi./SRC_lapw2/lapw2c_mpi11、 安装后设置./userconfig_lapweditor shall be: vi其余都回车修改.bashrc,注释以下这行:#ulimit -s unlimited修改parallel_optionssetenv WIEN_MPIRUN “mpirun -machinefile _HOSTS_ -np _NP_ _EXEC_”12、 配置web界面用root用户打开apache服务service apache2 start在普通用户下执行w2web将打开7890端口作为wien2k的web界面13、 算例测试进行串行计算:以系统自带算例TiC为例:cd TiCmkdir TiCcp ./TiC.struct . 生成原子信息:instgen_lapw初始化算例:init_lapw b计算:run_lapw可以看到程序的输出结果在*.output中,如有错误可以在TiC.dayfile中查询。进行并行计算:测试并行环境是否设置:testpara_lapw测试算例计算状态:testpara1_lapwtestpara2_lapw根据.machines文件不同决定进行k点或mpi并行计算:K点:granularity:11:node31:11:node31:11:node32:11:node32:1lapw0:node31:2 node32:2extrafine:1mpi:granularity:11:node31:21:node32:2lapw0:node31:2 node32:2extrafine:1计算:run_lapw -p14、 采用作业调度提交作业cat wien2k.pbs# # Script for submitting parallel wien2k_09 jobs to Dawning cluster. # # Lines that begin with #PBS are PBS directives (not comments).# True comments begin with # (i,e., # followed by a space).#PBS -S /bin/bash#PBS -N TiO2#PBS -j oe#PBS -l nodes=1:ppn=8#PBS -V# -S: shell the job will run under# -o: name of the queue error filename# -j: merges stdout and stderr to the same file# -l: resources required by the job: number of nodes and processors per node# -l: resources required by the job: maximun job time length#parallel mode is mpi/kpoint#PARALLEL=mpi /表示采用mpi并行或k点并行echo $PARALLEL#NP=cat $PBS_NODEFILE | wc -lNODE_NUM=cat $PBS_NODEFILE|uniq |wc -lNP_PER_NODE=expr $NP / $NODE_NUMusername=whoamiexport WIENROOT=/home/users/mjhe/wien2k_09/export PATH=$PATH:$WIENROOT:.WIEN2K_RUNDIR=/scratch/$username.$PBS_JOBIDexport SCRATCH=$WIEN2K_RUNDIR#creat scratch dirif ! -a $WIEN2K_RUNDIR ; then echo Scratch directory $WIEN2K_RUNDIR created. mkdir -p $WIEN2K_RUNDIRficd $PBS_O_WORKDIR#creating .machines#case $PARALLEL inmpi) echo granularity:1 .machines for i in cat $PBS_NODEFILE |uniq do echo 1:$i:$NP_PER_NODE .machines done printf lapw0: .machines#lapw0 用mpi并行# for i in cat $PBS_NODEFILE|uniq do printf $i:$NP_PER_NODE .machines done#lapw0用mpi并行 报错的算例用以下 mpi error lapw0# printf cat $PBS_NODEFILE|uniq|head -1:1.machines#end# printf n .machines echo extrafine:1.machines ;kpoint) echo granularity:1 .machines for i in cat $PBS_NODEFILE do echo 1:$i:1 .machines done printf lapw0: .machines#lapw0 用mpi并行# for i in cat $PBS_NODEFILE|uniq do printf $i:$NP_PER_NODE .machines done#lapw0用mpi并行 报错的算例用以下 mpi error lapw0# printf cat $PBS_NODEFILE|uniq|head -1:1.machines#end# printf n .machines echo extrafine:1.machines ;esac#end creating# Run the parallel executable WIEN2K#instgen_lapwinit_lapw -bclean -secho #start time is date#run_lapw -pecho #end time is date#rm -rf $WIEN2K_RUNDIR#END#一般需要修改的地方已用红字标出该脚本可以实现算例的初始化,必须在存在*.struct的前提下进行。15、 性能benchmarkCB65Shanghai 2382:16GB 147GB SAS1000Gb/mpich v1.2.7TiO2算例:NMATMAX=300002进程k点,mpi并行lapw0、k点并行lapw1、lapw2模块4m44s4进程k点,mpi并行lapw0、k点并行lapw1、lapw2模块4m30s8进程k点,mpi并行lapw0、k点并行lapw1、lapw2模块6m29s2进程mpi,mpi并行lapw0、lapw1、lapw2模块7m53s4进程mpi,mpi并行lapw0、lapw1、lapw2模块6m56s8进程mpi,mpi并行lapw0、lapw1、lapw2模块9m5s标准测试算例:官方提供的测试算例:串行:test_caseexport OMP_NUM_THREADS=1time x lapw1 cSUM OF WALL CLOCK TIMES: 135.0 (INIT = 1.0 + K-POINTS = 133.9)export OMP_NUM_THREADS=4time x lapw1 cSUM OF WALL CLOCK TIMES: 62.0 (INIT = 1.0 + K-POINTS = 61.0)export OMP_NUM_THREADS=8time x lapw1 cSUM OF WALL CLOCK TIMES: 56.2 (INIT = 1.0 + K-POINTS = 55.2)并行:time x lapw1 ptest_case2 kpoint:test_case.output1: SUM OF WALL CLOCK TIMES: 62.0 (INIT = 1.0 + K-POINTS = 61.0)test_case.output1_1: SUM OF WALL CLOCK TIMES: 138.5 (INIT = 1.0 + K-POINTS = 137.5)4 kpoint:test_case.output1: SUM OF WALL CLOCK TIMES: 62.0 (INIT = 1.0 + K-POINTS = 61.0)test_case.output1_1: SUM OF WALL CLOCK TIMES: 134.9 (INIT = 1.0 + K-POINTS = 133.9)mpi-benchmark2process:mpi-benchmark.output1_1: TIME HAMILT (CPU) = 134.1, HNS = 116.4, HORB =0.0, DIAG=697.5mpi-benchmark.output1_1: TOTAL CPU TIME: 950.0 (INIT = 1.9 + K-POINTS = 948.1)mpi-benchmark.output1_1: SUM OF WALL CLOCK TIMES: 1138.9 (INIT =2.2 + K-POINTS =1136.7)4process:mpi-benchmark.output1_1: TIME HAMILT (CPU) = 67.8, HNS = 70.5, HORB = 0.0, DIAG = 420.6mpi-benchmark.output1_1: TOTAL CPU TIME: 560.7 (INIT = 1.8 + K-POINTS = 558.9)mpi-benchmark.output1_1: SUM
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年网络文学IP版权授权与游戏改编及衍生品开发合同
- 2025年绿色建筑BIM模型制作与分包合作协议
- 2025年医疗机构儿童营养餐品开发与配送服务合同
- 海图制图基础知识培训班课件
- 2025年新能源汽车钣金部件制造与安装服务合同模板
- 2025年文化创意产业应收账款质押融资管理合同
- 影视剧本原创授权与改编合作合同-2025年度项目
- 2025年度水资源保护技术研发合同
- 2025年智能环保设备长期租赁服务协议书
- 2025年新型节能玻璃隔断工程承包与监理技术服务合同
- 建筑公司分包合同管理办法
- 2025至2030苏打水行业发展趋势分析与未来投资战略咨询研究报告
- 2025年秋季学期德育工作计划:向下扎根向上开花
- 2025-2030中国家政服务行业信用体系建设与服务质量监管报告
- 2025年安徽省普通高中学业水平选择性考试(物理)科目高考真题+(答案解析版)
- 2025年成都东部集团有限公司及下属企业招聘考试笔试试卷【附答案】
- 各分项工程质量保证措施
- 国税编制管理办法
- 特种畜禽管理办法
- 消防员心理健康教育课件教学
- 医院学术委员会组织职责
评论
0/150
提交评论