• 回答数

    4

  • 浏览数

    1863

  • 收藏数

    0

作者:愛上自己的影子 发表于 2018-11-19 16:14:46
跳转到指定楼层
当我并行运算的时候,将CPU的数量翻倍,会将每个CPU上所需的内存减半。我运行例子中的IN.MELT时的确如此。可见并行是成功地。但当我使用自己编写的in.BiTiO时,翻倍CPU数量,则每个CPU的内存几乎没有变化。这意味着我无法计算更大的系统。不知道是不是因为我使用了KSPACE EWALD,少安装了某个PACKAGE或者其他什么原因,求高人指点,万分感激
#Initialization
atom_style full
units metal
dimension 3
newton on on
boundary p p p
read_data BiTiO333
#setting
kspace_style ewald 1.0e-6
pair_style buck/coul/long10
#Potential set A
pair_coeff * * 0 0.3010 0
pair_coeff 1 3 49529.35 0.2223 0
pair_coeff 3 3 24244.50 0.3284 0   
pair_coeff 1 1 9547.960.2192 32.00         
pair_coeff 1 2 2549.4 0.2989 0
run_style verlet
velocity all create 300.0 539   #assign the initial velcocity at 300K
#start the loop and output
include tempfile1
reset_timestep 0
variable  i loop 5    #make 5 loops
label   loopa
#Equilibrate at certain temperature
reset_timestep 0
fix npt all npt temp ${mytemp1} ${mytemp1} 0.1 aniso 0.0 0.0 0.1#the damping parmeter 0.05 here specifies that tempreature/pressure shall relax in 0.1 time unit
run 5000
reset_timestep 0
#Obtain cell information
thermo_style custom step temp vol ke pe lx ly lz etotal press
thermo 100
variable lx equal lx
variable ly equal ly
variable lz equal lz
variable vol equal vol
variable press equal press
fix time_average all ave/time 1 500 500 c_thermo_temp v_lx v_ly v_lz v_vol v_press file output${mytemp1}.txt #Take time average of the results
run 500
unfix npt
unfix time_average
write_restart ${mytemp1}.equil
next mytemp1
next i
jump in.BiTiO loopa

分享:
回复

使用道具

该用户从未签到

新手上路

Rank: 1

积分
16
极客币
42
主题
6
帖子
22
注册时间
2018-11-5
在线时间
1 小时
性别
保密
发表于 2018-11-19 16:15:00 | 显示全部楼层
没遇到过这问题 等高人解答
回复

使用道具 举报

该用户从未签到

新手上路

Rank: 1

积分
15
极客币
40
主题
7
帖子
19
注册时间
2018-11-5
在线时间
1 小时
性别
保密
发表于 2018-11-19 16:15:12 | 显示全部楼层
同上,等待高人解答
回复

使用道具 举报

该用户从未签到

新手上路

Rank: 1

积分
16
极客币
42
主题
6
帖子
22
注册时间
2018-11-5
在线时间
1 小时
性别
保密
发表于 2018-11-19 16:15:17 | 显示全部楼层
内存不可能减半的,因为本cpu上存储的原子nmax包含属于本cpu的原子nlocal和附近cpu发送过来的原子nghost.可能与势能截断半径有关,导致nghost很大。
回复

使用道具 举报

该用户从未签到

新手上路

Rank: 1

积分
16
极客币
43
主题
7
帖子
22
注册时间
2018-11-5
在线时间
1 小时
性别
保密
 楼主| 发表于 2018-11-19 16:15:24 | 显示全部楼层
回复

使用道具 举报

高级模式 评论
您需要登录后才可以回帖 登录 | 立即注册 微信登录
关于作者
愛上自己的影子

用户组:新手上路

  • 主题

    7

  • 帖子

    22

  • 关注者

    1