您的访问可能来自境外运营商(US),建议使用bbs4地址提升访问体验
今日: 2208|昨日: 2922|帖子: 16490656|会员: 477574|欢迎新会员: 2248735177
查看: 5037|回复: 7
|
[原创]
编译GAMESS(US)
[复制链接]
|
|
本帖最后由 yx_wh 于 2012-12-6 21:49 编辑
配置gamess
GAMESS(不是GAMES)的简介:
https://en.wikipedia.org/wiki/GAMESS_(US)
GAMESS的source
code是可以免费取得的,不过在distribution上有限制,所以不叫自由开源。在以下页面填入自己的邮件地址取得下载密码:
http://www.msg.chem.iastate.edu/GAMESS/download/register/
这里有一个说明:
http://www.msg.chem.iastate.edu/GAMESS/download/dist.source.shtml
需要安装
- sudo aptitude install tcsh gfortran
- sudo aptitude install libatlas-base-dev
复制代码 解压缩
- tar -xzvf gamess-current.tar.gz
复制代码 遵循gamess/machines/readme.unix的指示。不过注意:有个选择gfortran版本的地方,即使是4.7的gfortran也请选择输入4.6。看./config的代码可知:
- switch ($GMS_GFORTRAN_VERNO)
- case 4.1:
- case 4.2:
- case 4.3:
- case 4.4:
- case 4.5:
- echo " Alas, your version of gfortran does not support REAL*16,"
- echo " so relativistic integrals cannot use quadruple precision."
- echo " Other than this, everything will work properly."
- breaksw
- case 4.6:
- echo " Good, the newest gfortran can compile REAL*16 data type."
- breaksw
- default:
- echo "The gfortran version number is not recognized."
- echo "It should only have one decimal place, such as 4.x"
- exit 4
- breaksw
复制代码 之后有个选择math library的地方,选择atlas。填入libatlas.so所在地(/usr/lib/atlas-base)。
编译DDI
- cd ddi
- ./compddi >& compddi.log
- mv ddikick.x ..
复制代码 编译
- cd ..
- ./compall >& compall.log
复制代码 链接
- ./lked gamess 01 >& lked.log
复制代码 这个时候要改一下内核shmget的数值:
- sudo vim /etc/sysctl.conf
复制代码 加入:
- kernel.shmmax = 3064372224
- kernel.shmall = 748137
复制代码 For example, on a machine with 4GB of memory, you might add these to /etc/sysctl.conf:
- # cat /etc/sysctl.conf | grep shm
- kernel.shmmax = 3064372224
- kernel.shmall = 748137
复制代码 Then set the new settings like so:Since they are in /etc/sysctl.conf, they will automatically be set each time the system is booted.
rungms开头部分改为
- mkdir /tmp/$USER
- set TARGET=sockets
- set SCR=/tmp/$USER
- set USERSCR=~$USER/scr
- set GMSPATH=~$USER/git/gamess
复制代码 另外
NCPUS
改成你计算机有的核心数目。
- if (null$NCPUS == null) set NCPUS=2
复制代码 并在
- if ($NCPUS > 1) then
- switch (`hostname`)
复制代码 一段后加入你的hostname作为case选择支之一。
- case athlonX2:
- if ($NCPUS > 2) set NCPUS=2
- set NNODES=1
- set HOSTLIST=(`hostname`:cpus=$NCPUS)
- breaksw
复制代码 然后测试。
- ./runall 01 >& runall.log &
复制代码 之后查看运行成果。
可以使用avogadro生成GAMESS的输入文件。
- sudo aptitude install avogadro
复制代码 执行使用:
- ~/git/gamess/rungms SF6.inp 01 2 > SF6.log
复制代码
- yx@athlonX2 ~/git/gamess % cd ~/gamess
- yx@athlonX2 ~/gamess % ~/git/gamess/rungms SF6.inp 01 2 > SF6.log
- mkdir: cannot create directory `/tmp/yx': File exists
- cp SF6.inp /tmp/yx/SF6.F05
- unset echo
- /home/yx/git/gamess/ddikick.x /home/yx/git/gamess/gamess.01.x SF6 -ddi 1 2 athlonX2:cpus=2 -scr /tmp/yx
复制代码 |
|
|
|
|
|
|
|
发表于 2012-12-6 22:13:57
|
显示全部楼层
神马东西,好像很厉害的样子 |
|
|
|
|
|
|
|
发表于 2012-12-6 22:35:22
|
显示全部楼层
|
|
|
|
|
|
|
发表于 2012-12-6 23:10:49
|
显示全部楼层
|
|
|
|
|
|
|
发表于 2012-12-7 00:26:29
|
显示全部楼层
|
|
|
|
|
|
|
楼主 |
发表于 2012-12-7 03:06:31
|
显示全部楼层
回复 4# October丨十月
确实……偶同学都是使用ChemOffice里面自带的编译好了的二进制包的~
本来只是作为个人备忘用~ |
|
|
|
|
|
|
|
发表于 2012-12-9 23:58:45
|
显示全部楼层
|
|
|
|
|
|
|
发表于 2015-11-8 01:39:49
|
显示全部楼层
[幸运际遇] 在一个漆黑的夜晚,镜花水月迷人眼小心谨慎的对妹子说:要射了。妹子有点紧张,但脸上依然露出了些许的喜色。于是镜花水月迷人眼将烟花点燃发射了出去,整个天空被烟花点亮。这时妹子对镜花水月迷人眼露出了灿烂的笑容。镜花水月迷人眼心想,不愧是花去2 星空币买回来的烟花,效果就系不一样。 |
幸运榜 / 衰神榜 |
|
|
|
|
|
|
小黑屋|Archiver|星空网
Powered by Discuz! , Design by Seraphoenix && 北北″.
GMT+8, 2024-11-21 20:31
, Processed in 26 ms, 15 queries, 0.22 loads
, Redis On.
Copyright © 2009-2024 Seikuu. All Rights Reserved.